/* ====================================================================
   GlobalLawGuide.com — Unified Theme (extracted from present-v2.html)
   Префикс .t-* — design-system theme. Поверх main.css/styles.css.
   Не переопределяет существующие классы (.flex, .container, .info-card).
   ==================================================================== */

:root {
    /* Brand colors */
    --t-primary:        #2c7ec0;
    --t-primary-light:  #68a5db;
    --t-primary-dark:   #1a5c92;
    --t-accent:         #ffb347;
    --t-accent-strong:  #ff8c42;
    --t-success:        #4ade80;
    --t-danger:         #ff6b6b;

    /* Surfaces */
    --t-dark:           #0a0e1a;
    --t-dark-2:         #131826;
    --t-dark-3:         #1a2332;
    --t-bg:             #ffffff;
    --t-bg-soft:        #f5f9fd;
    --t-bg-soft-2:      #eef4fa;

    /* Text */
    --t-text:           #1a2332;
    --t-text-soft:      #2c3e50;
    --t-muted:          #6b7c8f;
    --t-muted-2:        #8a99ad;

    /* Borders */
    --t-border:         #e3ecf5;
    --t-border-strong:  #d3e3ee;

    /* Shadows */
    --t-shadow-sm:  0 1px 3px rgba(0,0,0,0.05);
    --t-shadow:     0 4px 14px rgba(0,0,0,0.08);
    --t-shadow-md:  0 12px 32px rgba(44, 126, 192, 0.12);
    --t-shadow-lg:  0 20px 50px rgba(44, 126, 192, 0.18);
    --t-shadow-xl:  0 30px 80px rgba(44, 126, 192, 0.22);
    --t-shadow-accent: 0 12px 32px rgba(255, 140, 66, 0.45);

    /* Radius */
    --t-radius-sm:  6px;
    --t-radius:     10px;
    --t-radius-md:  14px;
    --t-radius-lg:  20px;
    --t-radius-xl:  24px;
    --t-radius-pill: 100px;

    /* Spacing scale */
    --t-space-1:  4px;
    --t-space-2:  8px;
    --t-space-3:  12px;
    --t-space-4:  16px;
    --t-space-5:  20px;
    --t-space-6:  24px;
    --t-space-8:  32px;
    --t-space-10: 40px;
    --t-space-12: 48px;
    --t-space-16: 64px;
    --t-space-20: 80px;

    /* Typography */
    --t-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Transitions */
    --t-trans:      0.25s ease;
    --t-trans-slow: 0.5s ease;

    /* Z-layers */
    --t-z-progress: 9999;
    --t-z-sticky:   1000;
    --t-z-modal:    2000;
}

/* ============ TYPOGRAPHY HELPERS ============ */
.t-font          { font-family: var(--t-font); }
.t-text          { color: var(--t-text); }
.t-muted         { color: var(--t-muted); }
.t-text-light    { color: rgba(255,255,255,0.85); }
.t-text-muted-d  { color: rgba(255,255,255,0.6); }

.t-title-xl      { font-size: 84px; font-weight: 800; line-height: 0.98; letter-spacing: -2.5px; margin: 0; }
.t-title-lg      { font-size: 64px; font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin: 0; }
.t-title         { font-size: 52px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; margin: 0; }
.t-title-md      { font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; margin: 0; }
.t-title-sm      { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0; }

.t-lead          { font-size: 20px; color: var(--t-muted); line-height: 1.55; }
.t-body          { font-size: 16px; color: var(--t-text); line-height: 1.6; }
.t-small         { font-size: 13px; color: var(--t-muted); }

.t-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--t-space-5);
    padding: 6px 14px;
    border-radius: var(--t-radius-pill);
    background: rgba(44, 126, 192, 0.12);
    color: var(--t-primary);
}
.t-section--dark .t-eyebrow {
    background: rgba(255, 179, 71, 0.15);
    color: var(--t-accent);
}

.t-highlight       { color: var(--t-primary); }
.t-highlight-accent {
    background: linear-gradient(135deg, var(--t-accent), #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.t-highlight-gradient {
    background: linear-gradient(135deg, var(--t-primary), var(--t-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============ LAYOUT ============ */
.t-page {
    font-family: var(--t-font);
    color: var(--t-text);
    line-height: 1.55;
    background: var(--t-bg);
}

.t-section {
    padding: var(--t-space-20) var(--t-space-6);
    position: relative;
}
.t-section--alt   { background: var(--t-bg-soft); }
.t-section--dark  { background: var(--t-dark); color: #fff; }
.t-section--dark .t-title,
.t-section--dark .t-title-lg,
.t-section--dark .t-title-md,
.t-section--dark .t-title-sm { color: #fff; }
.t-section--full  { min-height: 100vh; display: flex; align-items: center; }

.t-container        { width: 100%; max-width: 1200px; margin: 0 auto; }
.t-container-narrow { width: 100%; max-width: 900px; margin: 0 auto; }
.t-container-tight  { width: 100%; max-width: 700px; margin: 0 auto; }
.t-text-center      { text-align: center; }

/* ============ BUTTONS ============ */
.t-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--t-radius-md);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--t-trans);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--t-font);
    line-height: 1;
}
.t-btn-sm {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: var(--t-radius);
}
.t-btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

.t-btn-primary {
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-strong) 100%);
    color: var(--t-dark-3);
    box-shadow: var(--t-shadow-accent);
}
.t-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(255, 140, 66, 0.6);
    color: var(--t-dark-3);
}

.t-btn-blue {
    background: var(--t-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(44, 126, 192, 0.3);
}
.t-btn-blue:hover {
    background: var(--t-primary-dark);
    transform: translateY(-2px);
    color: #fff;
}

.t-btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.t-btn-ghost:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
    color: #fff;
}

.t-btn-outline {
    background: transparent;
    color: var(--t-primary);
    border-color: var(--t-primary);
}
.t-btn-outline:hover {
    background: var(--t-primary);
    color: #fff;
    transform: translateY(-2px);
}

.t-btn-link {
    color: var(--t-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--t-trans);
}
.t-btn-link:hover { gap: 12px; color: var(--t-primary-dark); }

.t-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--t-bg-soft);
    border: 1px solid var(--t-border);
    color: var(--t-text);
    cursor: pointer;
    transition: all var(--t-trans);
}
.t-btn-icon:hover {
    background: var(--t-primary);
    color: #fff;
    border-color: var(--t-primary);
}

/* ============ CARDS ============ */
.t-card {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-md);
    padding: var(--t-space-8) var(--t-space-6);
    box-shadow: var(--t-shadow-sm);
    transition: transform var(--t-trans), box-shadow var(--t-trans), border-color var(--t-trans);
}
.t-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t-shadow-md);
    border-color: var(--t-primary-light);
}

.t-card-accent {
    position: relative;
    overflow: hidden;
}
.t-card-accent::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--t-primary), var(--t-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-trans-slow);
}
.t-card-accent:hover::before { transform: scaleX(1); }

.t-card-dark {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--t-radius-md);
    padding: var(--t-space-8) var(--t-space-6);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--t-trans);
}
.t-card-dark:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,179,71,0.4);
    transform: translateY(-4px);
}

.t-card-glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(245,249,253,0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    padding: var(--t-space-10);
    box-shadow: var(--t-shadow-lg);
}

/* ============ GRIDS ============ */
.t-grid           { display: grid; gap: var(--t-space-6); }
.t-grid-2         { grid-template-columns: repeat(2, 1fr); }
.t-grid-3         { grid-template-columns: repeat(3, 1fr); }
.t-grid-4         { grid-template-columns: repeat(4, 1fr); }
.t-grid-auto      { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.t-grid-auto-lg   { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ============ FORMS ============ */
.t-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--t-space-2);
    margin-bottom: var(--t-space-5);
}
.t-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--t-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.t-input,
.t-textarea,
.t-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    font-size: 15px;
    font-family: var(--t-font);
    color: var(--t-text);
    background: #fff;
    transition: border-color var(--t-trans), box-shadow var(--t-trans);
    box-sizing: border-box;
}
.t-input:focus,
.t-textarea:focus,
.t-select:focus {
    outline: none;
    border-color: var(--t-primary);
    box-shadow: 0 0 0 4px rgba(44, 126, 192, 0.12);
}
.t-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

.t-form {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    padding: var(--t-space-10);
    box-shadow: var(--t-shadow);
}
.t-form-dark {
    background: var(--t-dark-2);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}
.t-form-dark .t-label { color: rgba(255,255,255,0.85); }
.t-form-dark .t-input,
.t-form-dark .t-textarea,
.t-form-dark .t-select {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}
.t-form-dark .t-input::placeholder,
.t-form-dark .t-textarea::placeholder { color: rgba(255,255,255,0.4); }

/* ============ HERO ============ */
.t-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t-dark);
    color: #fff;
    overflow: hidden;
    padding: 120px 24px 80px;
}
.t-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, var(--t-dark) 0%, #1a3a5c 40%, var(--t-primary) 100%);
    z-index: 0;
}
.t-hero-bg::before,
.t-hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.t-hero-bg::before {
    width: 500px; height: 500px;
    background: var(--t-accent);
    top: -100px; left: -100px;
    animation: t-drift 14s ease-in-out infinite;
}
.t-hero-bg::after {
    width: 400px; height: 400px;
    background: var(--t-primary-light);
    bottom: -100px; right: -100px;
    animation: t-drift 18s ease-in-out infinite reverse;
}
@keyframes t-drift {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(80px, 60px) scale(1.15); }
}
.t-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,14,26,0.6), rgba(10,14,26,0.85));
    z-index: 1;
}
.t-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

/* Live status badge */
.t-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: var(--t-radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--t-success);
}
.t-live-dot {
    width: 8px;
    height: 8px;
    background: var(--t-success);
    border-radius: 50%;
    animation: t-pulse 2s infinite;
}
@keyframes t-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
    70%  { box-shadow: 0 0 0 14px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ============ STICKY ELEMENTS ============ */
.t-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--t-primary), var(--t-accent));
    z-index: var(--t-z-progress);
    transition: width 0.1s linear;
    pointer-events: none;
}

.t-sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--t-z-sticky);
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--t-accent) 0%, var(--t-accent-strong) 100%);
    color: var(--t-dark-3);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--t-radius-pill);
    box-shadow: var(--t-shadow-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.t-sticky-cta.is-visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.t-sticky-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(255, 140, 66, 0.55);
    color: var(--t-dark-3);
}

/* ============ SECTION TITLE ACCENT ============ */
.t-title-accent {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.t-title-accent::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px;
    height: 3px;
    background: var(--t-primary);
    border-radius: 2px;
}
.t-title-accent.t-text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============ ANIMATION HOOKS (used with JS IntersectionObserver) ============ */
.t-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}
.t-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.t-reveal-left  { transform: translateX(-30px); }
.t-reveal-right { transform: translateX(30px); }
.t-reveal-left.is-visible,
.t-reveal-right.is-visible { transform: translateX(0); }

.t-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.t-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}
.t-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.t-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.t-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.t-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.t-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.t-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }
.t-stagger.is-visible > *:nth-child(7) { transition-delay: 0.65s; }
.t-stagger.is-visible > *:nth-child(8) { transition-delay: 0.75s; }

/* ============ MISC UTILITIES ============ */
.t-divider {
    height: 1px;
    background: var(--t-border);
    margin: var(--t-space-8) 0;
}
.t-divider--dark { background: rgba(255,255,255,0.1); }

.t-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--t-radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.t-badge-blue    { background: rgba(44, 126, 192, 0.12); color: var(--t-primary); }
.t-badge-accent  { background: rgba(255, 179, 71, 0.15); color: var(--t-accent-strong); }
.t-badge-success { background: rgba(74, 222, 128, 0.12); color: #16a34a; }
.t-badge-danger  { background: rgba(255, 107, 107, 0.12); color: #e63939; }

.t-link {
    color: var(--t-primary);
    text-decoration: none;
    transition: color var(--t-trans);
}
.t-link:hover { color: var(--t-primary-dark); text-decoration: underline; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .t-section       { padding: 70px 20px; }
    .t-title-xl      { font-size: 48px; letter-spacing: -1px; }
    .t-title-lg      { font-size: 38px; letter-spacing: -1px; }
    .t-title         { font-size: 32px; }
    .t-title-md      { font-size: 26px; }
    .t-lead          { font-size: 17px; }
    .t-grid-2,
    .t-grid-3,
    .t-grid-4        { grid-template-columns: 1fr; }
    .t-grid-auto,
    .t-grid-auto-lg  { grid-template-columns: 1fr; }
    .t-form          { padding: var(--t-space-6); }
    .t-card-glass    { padding: var(--t-space-6); }
    .t-sticky-cta    { padding: 12px 18px; font-size: 13px; bottom: 16px; right: 16px; }
}
@media (max-width: 480px) {
    .t-title-xl      { font-size: 38px; }
    .t-title-lg      { font-size: 30px; }
    .t-title         { font-size: 26px; }
    .t-btn           { padding: 14px 24px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .t-reveal,
    .t-stagger > *,
    .t-hero-bg::before,
    .t-hero-bg::after,
    .t-live-dot,
    .t-progress,
    .t-sticky-cta {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
