/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', -apple-system, sans-serif;
    background-color: #f5f4f1;
    color: #1a1a1a;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===== ШАПКА ===== */
.main-header {
    background-color: rgba(245,244,241,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s, box-shadow 0.3s;
}
.main-header.scrolled {
    background-color: rgba(245,244,241,0.97);
    box-shadow: 0 2px 30px rgba(0,0,0,0.07);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1260px;
    margin: 0 auto;
    height: 68px;
    padding: 0 24px;
}

/* ЛОГОТИП */
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}
.logo-main { display: flex; align-items: center; gap: 0; }
.site-logo {
    height: 26px !important;
    width: auto !important;
    position: relative;
    top: 0;
    margin-right: 0px;
    display: block;
    vertical-align: middle;
}
/* Буква D — скрыта когда логотип загружен, видна как fallback */
.logo-d-fallback { display: none; }
.site-logo[style*="display: none"] ~ .site-title .logo-d-fallback,
.site-logo[style*="display:none"] ~ .site-title .logo-d-fallback { display: inline; }
.site-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.55rem;
    color: #0a0a0a;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}
.tagline-stepper {
    height: 11px;
    overflow: visible;
    margin-left: 30px;
    position: relative;
}
.tagline-list {
    display: block;
    position: relative;
    height: 11px;
}
.tagline-list > span {
    height: 11px;
    line-height: 11px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 700;
    display: block;
    position: absolute;
    top: 0; left: 0;
    white-space: nowrap;
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.8s ease, filter 0.8s ease;
}
.tagline-list > span.tag-active {
    opacity: 1;
    filter: blur(0px);
}
/* МЕНЮ */
.top-menu { display: flex; gap: 2px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
    font-size: 0.82rem; font-weight: 600; color: #555;
    text-decoration: none; padding: 6px 12px; border-radius: 50px;
    transition: all 0.2s; display: flex; align-items: center;
    gap: 3px; white-space: nowrap; cursor: pointer;
}
.nav-link:hover { color: #000; background: rgba(0,0,0,0.06); }
.nav-chevron {
    font-size: 1rem; color: #bbb;
    transition: transform 0.25s, color 0.2s;
    display: inline-block; margin-top: -1px;
}
.nav-item:hover .nav-chevron { transform: rotate(90deg); color: #555; }

/* Мост между кнопкой и дропдауном — чтобы не исчезал */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: 14px;
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    padding: 16px; display: flex; gap: 8px;
    min-width: 220px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 2000;
}
.nav-dropdown::before {
    content: ''; position: absolute; top: -6px; left: 50%;
    transform: translateX(-50%); width: 12px; height: 12px;
    background: #fff; border-left: 1px solid rgba(0,0,0,0.07);
    border-top: 1px solid rgba(0,0,0,0.07); rotate: 45deg; border-radius: 2px 0 0 0;
}
.nav-item:hover .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-col { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.dropdown-group-label {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: #bbb; padding: 4px 10px 8px;
}
.dropdown-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px;
    text-decoration: none; transition: background 0.15s;
}
.dropdown-link:hover { background: rgba(0,0,0,0.04); }
.dlink-icon {
    width: 30px; height: 30px; background: rgba(0,0,0,0.04);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; font-size: 0.85rem; flex-shrink: 0;
    transition: background 0.15s;
}
.dropdown-link:hover .dlink-icon { background: rgba(0,0,0,0.08); }
.dlink-text { display: flex; flex-direction: column; gap: 1px; }
.dlink-text strong { font-size: 0.82rem; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.dlink-text em { font-size: 0.72rem; color: #aaa; font-style: normal; line-height: 1.2; }

/* Lucide иконки в меню */
.li { width: 15px; height: 15px; stroke: #1a1a1a; stroke-width: 1.8; }

/* ПРАВАЯ ЧАСТЬ */
.header-right { display: flex; align-items: center; gap: 10px; }

/* ===== ПОИСК — только иконка, раскрывается влево ===== */
.search-container {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    background: transparent;
    border-radius: 50px;
    width: 36px;
    height: 36px;
    overflow: visible;
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1), background 0.3s;
    position: relative;
}
.search-container.active {
    width: 250px;
    background: #1a1a1a;
    padding: 3px 3px 3px 0;
    overflow: hidden;
}
.search-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.88rem;
    font-family: 'Manrope', sans-serif;
    padding: 0 0 0 14px;
    width: 0;
    opacity: 0;
    transition: opacity 0.3s, width 0.4s;
    white-space: nowrap;
}
.search-container.active .search-input { width: 100%; opacity: 1; }

.search-trigger {
    background: none;
    border: none;
    cursor: pointer;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
    transition: background 0.2s;
}
.search-trigger:hover { background: rgba(0,0,0,0.07); }
.search-container.active .search-trigger:hover { background: rgba(255,255,255,0.1); }

.search-icon {
    width: 18px; height: 18px;
    display: block;
    color: #1a1a1a;
    stroke: #1a1a1a;
}
.search-container.active .search-icon { color: #fff; stroke: #fff; }

/* БУРГЕР */
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.burger-btn span {
    display: block;
    width: 22px; height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s;
}

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 24px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 0.95rem; font-weight: 600; color: #444; text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.04); transition: color 0.2s; }
.mobile-nav a:hover { color: #000; }
.mobile-nav a.mob-sub { padding: 8px 12px; font-size: 0.88rem; color: #666; border-bottom: none; display: flex; align-items: center; gap: 8px; }

/* ===== HERO ===== */
.hero {
    min-height: 68vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px 48px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
}
.hero-orb-1 { display: none; }
.hero-orb-2 { display: none; }
.hero-orb-3 { display: none; }
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-content {
    max-width: 1260px; margin: 0 auto; width: 100%;
    position: relative; z-index: 1;
}
.hero-badge {
    overflow: hidden; max-width: 420px;
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px; padding: 6px 14px;
    font-size: 0.78rem; font-weight: 600; color: #555;
    text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 28px;
    animation: fadeUp 0.8s ease both;
}
.badge-dot { width: 7px; height: 7px; background: #1a1a1a; border-radius: 50%; animation: pulse 2s infinite; }
.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 7.5vw, 6rem);
    line-height: 0.92; letter-spacing: -1px; color: #0a0a0a; margin-bottom: 28px;
}
.hero-line { display: block; animation: fadeUp 0.8s ease both; }
.hero-line:nth-child(2) { animation-delay: 0.1s; }
.hero-line:nth-child(3) { animation-delay: 0.2s; }
.hero-accent {
    color: transparent;
    -webkit-text-stroke: 2px #0a0a0a;
    overflow: hidden;
    display: block;
    height: 1.05em;
    position: relative;
    min-width: 0;
    white-space: nowrap;
}
.hero-sub { font-size: 1.05rem; color: #555; max-width: 520px; line-height: 1.7; margin-bottom: 36px; font-weight: 500; animation: fadeUp 0.8s 0.3s ease both; }
.hero-cta { display: flex; gap: 12px; align-items: center; margin-bottom: 52px; animation: fadeUp 0.8s 0.4s ease both; flex-wrap: wrap; }

.btn-primary {
    background: #1a1a1a; color: #fff; padding: 14px 28px; border-radius: 50px;
    font-weight: 700; font-size: 0.92rem; text-decoration: none; transition: all 0.25s; display: inline-block;
}
.btn-primary:hover { background: #333; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-primary.btn-large { padding: 16px 36px; font-size: 1rem; }
.btn-ghost {
    color: #1a1a1a; padding: 14px 28px; border-radius: 50px;
    font-weight: 700; font-size: 0.92rem; text-decoration: none;
    border: 2px solid rgba(0,0,0,0.12); transition: all 0.25s; display: inline-block;
}
.btn-ghost:hover { border-color: #1a1a1a; background: rgba(0,0,0,0.04); }

.hero-stats { display: flex; gap: 0; align-items: center; animation: fadeUp 0.8s 0.5s ease both; }
.stat { display: flex; flex-direction: column; padding: 0 24px; }
.stat:first-child { padding-left: 0; }
.stat strong { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; line-height: 1; color: #0a0a0a; }
.stat span { font-size: 0.75rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.stat-sep { width: 1px; height: 36px; background: rgba(0,0,0,0.1); }

.hero-scroll-hint {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: #aaa; font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    animation: fadeIn 1.5s 1s ease both;
}
.scroll-arrow { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent); animation: scrollPulse 2s infinite; transform-origin: top; }

/* ===== БЕГУЩАЯ СТРОКА ===== */
.ticker-wrap { overflow: hidden; background: #1a1a1a; padding: 14px 0; white-space: nowrap; }
.ticker-track {
    display: inline-flex; align-items: center; gap: 24px;
    animation: ticker 25s linear infinite;
    font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: rgba(255,255,255,0.9); letter-spacing: 1px;
}
.ticker-dot { color: rgba(255,255,255,0.35); font-size: 0.8rem; }

/* ===== УСЛУГИ ===== */
.content-wrapper { max-width: 1260px; margin: 0 auto; padding: 90px 24px 60px; }
.section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: #aaa; margin-bottom: 12px; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: 0.5px; color: #0a0a0a; margin-bottom: 48px; line-height: 1; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* КАРТОЧКА */
.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 90px;
    min-height: 220px;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.11);
}
.service-card--wide { grid-column: span 2; }

/* ВЕРХ КАРТОЧКИ */
.card-front {
    padding: 28px 28px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-number { font-family: 'Bebas Neue', sans-serif; font-size: 0.95rem; color: rgba(0,0,0,0.12); letter-spacing: 1px; margin-bottom: 16px; }
.card-icon-wrap { margin-bottom: 14px; }
.category-icon { height: 30px; width: auto; object-fit: contain; }
.service-card h3 { font-size: 1.12rem; font-weight: 800; color: #0a0a0a; margin-bottom: 8px; line-height: 1.25; letter-spacing: -0.3px; }
.card-short-desc { font-size: 0.87rem; color: #777; line-height: 1.6; flex: 1; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card-tags span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; background: rgba(0,0,0,0.05); color: #666; padding: 4px 10px; border-radius: 50px; }

.card-arrow { position: absolute; top: 22px; right: 24px; font-size: 1.1rem; color: rgba(0,0,0,0.15); transition: transform 0.3s, color 0.3s; font-family: monospace; }
.service-card:hover .card-arrow { transform: translate(3px,-3px); color: rgba(0,0,0,0.5); }

/* ДЕТАЛИ ПРИ НАВЕДЕНИИ */
.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.35s;
    opacity: 0;
    border-top: 1px solid transparent;
}
.service-card:hover .card-details {
    max-height: 600px;
    opacity: 1;
    border-top-color: rgba(0,0,0,0.05);
}
.card-details-inner { padding: 16px 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.detail-item { display: flex; flex-direction: column; gap: 2px; }
.detail-item strong { font-size: 0.8rem; font-weight: 700; color: #1a1a1a; }
.detail-item span { font-size: 0.82rem; color: #666; line-height: 1.55; }

/* ===== CTA БАННЕР ===== */
.cta-banner {
    background: #1a1a1a;
    border-radius: 28px; padding: 80px 60px; text-align: center;
    position: relative; overflow: hidden;
    max-width: 1212px; margin-left: auto; margin-right: auto;
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.cta-banner-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem, 6vw, 5rem); color: #fff; line-height: 1; margin-bottom: 36px; }
.cta-banner-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.05); }
.deco-ring-1 { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.deco-ring-2 { width: 900px; height: 900px; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* ===== ПОДВАЛ ===== */
.site-footer { background: #0f0f0f; color: #fff; padding: 70px 24px 0; margin-top: 80px; }
.footer-inner { max-width: 1260px; margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo .site-title { color: #fff; }
.footer-logo .site-logo { filter: invert(1); }
.footer-logo .tagline-list span { color: rgba(255,255,255,0.35); }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-top: 16px; margin-bottom: 24px; }

/* Только Telegram */
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.75);
    text-decoration: none; padding: 10px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.08);
}
.social-btn:hover { background: rgba(255,255,255,0.14); color: #fff; transform: translateY(-1px); }

.footer-links-group h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links-group ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.footer-links-group ul li a:hover { color: #fff; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.footer-made { font-weight: 600; }

/* ===== КНОПКА НАВЕРХ ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    z-index: 999;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top-btn:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}

/* ===== АНИМАЦИИ ===== */
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-40px,30px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-40px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.85)} }
@keyframes scrollPulse { 0%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(0);opacity:0} }

/* ===== АДАПТИВ ===== */
@media(max-width:1100px){
    .top-menu{display:none}
    .burger-btn{display:flex}
    .footer-top{grid-template-columns:1fr 1fr;gap:36px}
}
/* Мобильное меню — подкатегории */
.mobile-nav .mob-section { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #bbb; padding: 14px 0 4px; }
.mobile-nav a.mob-sub { padding: 8px 12px; font-size: 0.88rem; color: #666; border-bottom: none; display: flex; align-items: center; gap: 8px; }
@media(max-width:768px){.services-grid{grid-template-columns:1fr}.service-card--wide{grid-column:span 1}.hero-title{font-size:clamp(2.8rem, 7.5vw, 6rem)}.stat{padding:0 16px}.cta-banner{padding:52px 32px}.footer-top{grid-template-columns:1fr;gap:32px}.footer-bottom{flex-direction:column;gap:6px;text-align:center}.cta-button-fixed{padding:12px 18px;font-size:0.82rem}}
@media(max-width:480px){.hero{padding-top:120px}.content-wrapper{padding:60px 16px 40px}.site-footer{padding:50px 16px 0}.hero-cta{flex-direction:column;align-items:flex-start}}
/* ===== BADGE TICKER ===== */
.badge-ticker-wrap {
    overflow: hidden;
    max-width: 340px;
}
.badge-ticker {
    display: flex;
    flex-direction: column;
    animation: badge-slide 27s infinite;
}
.badge-ticker span {
    display: block;
    height: 20px;
    line-height: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
    color: inherit;
}
@keyframes badge-slide {
    0%      { transform: translateY(0); }
    8%      { transform: translateY(0); }
    11.1%   { transform: translateY(-20px); }
    19.1%   { transform: translateY(-20px); }
    22.2%   { transform: translateY(-40px); }
    30.2%   { transform: translateY(-40px); }
    33.3%   { transform: translateY(-60px); }
    41.3%   { transform: translateY(-60px); }
    44.4%   { transform: translateY(-80px); }
    52.4%   { transform: translateY(-80px); }
    55.5%   { transform: translateY(-100px); }
    63.5%   { transform: translateY(-100px); }
    66.6%   { transform: translateY(-120px); }
    74.6%   { transform: translateY(-120px); }
    77.7%   { transform: translateY(-140px); }
    85.7%   { transform: translateY(-140px); }
    88.8%   { transform: translateY(-160px); }
    96.8%   { transform: translateY(-160px); }
    100%    { transform: translateY(0); }
}

/* ===== ACCENT SLIDER ===== */
.accent-slider {
    display: flex;
    flex-direction: column;
    animation: accent-cycle 22s cubic-bezier(0.77,0,0.18,1) infinite;
    position: absolute;
    left: 0;
}
.accent-slider span {
    display: block;
    height: 1.05em;
    line-height: 1.05;
    color: transparent;
    -webkit-text-stroke: 2px #0a0a0a;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    white-space: nowrap;
}
@keyframes accent-cycle {
    0%,    9%    { transform: translateY(0); }
    11%,   20%   { transform: translateY(-1.05em); }
    22%,   31%   { transform: translateY(-2.1em); }
    33%,   42%   { transform: translateY(-3.15em); }
    44%,   53%   { transform: translateY(-4.2em); }
    55%,   64%   { transform: translateY(-5.25em); }
    66%,   75%   { transform: translateY(-6.3em); }
    77%,   86%   { transform: translateY(-7.35em); }
    88%,   97%   { transform: translateY(-8.4em); }
    99%,  100%   { transform: translateY(0); }
}
/* ============================================
   ПОПУЛЯРНОЕ / РЕЙТИНГ / БАЗАР
   ============================================ */
.pop-section, .rat-section, .baz-section { padding: 70px 0 50px; }
.pop-section { background: #f5f4f1; }
.rat-section  { background: #fff; }
.baz-section  { background: #f5f4f1; }

.pop-inner { max-width: 1260px; margin: 0 auto; padding: 0 24px; }

/* ПОПУЛЯРНОЕ */
.pop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
}
.pop-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 22px 20px 18px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.pop-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.pop-rank { position: absolute; top: 16px; right: 18px; font-size: 11px; font-weight: 800; color: rgba(0,0,0,0.18); }
.pop-rank--gold   { color: #b8860b; }
.pop-rank--silver { color: #888; }
.pop-rank--bronze { color: #a0522d; }
.pop-card-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #f0efec; }
.pop-card-title { font-size: 14px; font-weight: 800; color: #0a0a0a; line-height: 1.3; }
.pop-card-views { font-size: 11px; color: #aaa; display: flex; align-items: center; gap: 5px; font-weight: 600; }
.pop-bar { height: 3px; background: rgba(0,0,0,0.07); border-radius: 3px; overflow: hidden; margin-top: 2px; }
.pop-bar-fill { height: 100%; background: #1a1a1a; border-radius: 3px; }

/* РЕЙТИНГ */
.rat-list { display: flex; flex-direction: column; gap: 8px; margin-top: 36px; }
.rat-row {
    display: flex; align-items: center; gap: 16px;
    background: #f5f4f1; border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px; padding: 14px 20px;
    text-decoration: none; color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rat-row:hover { border-color: rgba(0,0,0,0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.rat-pos { font-size: 13px; font-weight: 800; width: 28px; text-align: center; color: rgba(0,0,0,0.2); flex-shrink: 0; }
.rat-pos--gold   { color: #b8860b; }
.rat-pos--silver { color: #888; }
.rat-pos--bronze { color: #a0522d; }
.rat-img { width: 42px; height: 42px; border-radius: 20px; object-fit: cover; background: #e8e7e4; flex-shrink: 0; }
.rat-info { flex: 1; }
.rat-name { font-size: 14px; font-weight: 700; color: #0a0a0a; }
.rat-cat  { font-size: 11px; color: #aaa; margin-top: 2px; font-weight: 600; }
.rat-stars { display: flex; gap: 2px; flex-shrink: 0; }
.rat-stars span { font-size: 15px; color: rgba(0,0,0,0.12); }
.rat-stars span.lit { color: #f0b429; }
.rat-score { font-size: 14px; font-weight: 800; color: #0a0a0a; min-width: 34px; text-align: right; flex-shrink: 0; }

/* БАЗАР */
.baz-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.baz-info-wrap { position: relative; padding-top: 8px; }
.baz-info-btn {
    display: flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50px; padding: 8px 18px;
    font-size: 13px; font-weight: 600; color: #555;
    cursor: pointer; transition: border-color 0.2s, color 0.2s;
    font-family: 'Manrope', sans-serif;
}
.baz-info-btn:hover { border-color: #1a1a1a; color: #1a1a1a; }
.baz-tooltip {
    display: none; position: absolute; right: 0; top: calc(100% + 10px);
    background: #fff; border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px; padding: 20px; width: 290px;
    z-index: 200; box-shadow: 0 16px 50px rgba(0,0,0,0.12);
}
.baz-tooltip.show { display: block; }
.baz-tooltip p { font-size: 13px; color: #555; margin-bottom: 10px; line-height: 1.6; }
.baz-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-top: 36px;
}
.baz-card {
    background: #fff; border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px; padding: 22px;
    display: flex; flex-direction: column; gap: 10px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.baz-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.baz-badge {
    display: inline-block; background: rgba(0,0,0,0.05);
    border-radius: 6px; padding: 3px 10px;
    font-size: 11px; font-weight: 700; color: #444;
    letter-spacing: 0.5px; text-transform: uppercase; width: fit-content;
}
.baz-badge--tg  { background: #e3f2fd; color: #1565c0; }
.baz-badge--app { background: #f3e5f5; color: #6a1b9a; }
.baz-card h4 { font-size: 15px; font-weight: 800; color: #0a0a0a; margin: 0; line-height: 1.3; }
.baz-card p  { font-size: 13px; color: #777; line-height: 1.6; flex: 1; margin: 0; }
.baz-footer  { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.baz-price   { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: #0a0a0a; letter-spacing: 0.5px; }
.baz-card--add {
    border: 2px dashed rgba(0,0,0,0.1); background: transparent;
    align-items: center; text-align: center; justify-content: center;
}
.baz-card--add:hover { border-color: rgba(0,0,0,0.25); }
.baz-add-icon {
    width: 50px; height: 50px; border-radius: 50%;
    border: 2px dashed rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #bbb; margin-bottom: 4px;
}
.baz-card--add h4 { color: #888; }
.baz-card--add p  { text-align: center; }

@media (max-width: 900px) {
    .pop-grid { grid-template-columns: repeat(2, 1fr); }
    .baz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .pop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .baz-grid { grid-template-columns: 1fr; }
    .rat-row  { padding: 12px 14px; gap: 10px; }
    .baz-header-row { flex-direction: column; }
    .baz-tooltip { right: auto; left: 0; width: 260px; }
}

/* Иконка перед подписью секции */
.section-label {
    display: flex;
    align-items: center;
    gap: 7px;
}
.section-icon-sm {
    height: 16px;
    width: auto;
    display: block;
    flex-shrink: 0;
    opacity: 0.75;
}
/* ===== РЕЙТИНГ ИНФО КНОПКА ===== */
.rat-header-row {
    position: relative;
}
.rat-info-btn {
    position: absolute;
    top: -52px;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.15);
    background: #fff;
    color: #aaa;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    font-family: 'Manrope', sans-serif;
}
.rat-info-btn:hover { border-color: #1a1a1a; color: #1a1a1a; }
.rat-tooltip {
    display: none;
    position: absolute;
    right: 0;
    top: auto;
    bottom: calc(100% + 10px);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 16px;
    padding: 20px;
    width: 280px;
    z-index: 300;
    box-shadow: 0 16px 50px rgba(0,0,0,0.11);
}
.rat-tooltip.show { display: block; }
.rat-tooltip strong { font-size: 13px; color: #0a0a0a; display: block; margin-bottom: 8px; }
.rat-tooltip p { font-size: 12px; color: #777; line-height: 1.7; margin: 0; }
/* ===== КОМПАКТНЫЙ ФУТЕР ===== */
.site-footer { background: #0f0f0f; color: #fff; padding: 24px 24px 20px; margin-top: 80px; }
.footer-inner { max-width: 1260px; margin: 0 auto; }
.footer-compact { display: flex; flex-direction: column; gap: 16px; }

/* РЯД 1 — копирайт + языки */
.footer-row-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
    gap: 12px;
}
/* РЯД 2 — юридика + статус + поддержка */
.footer-row-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.legal-link {
    background: none; border: none; cursor: pointer;
    font-size: 0.75rem; color: rgba(255,255,255,0.3);
    font-family: 'Manrope', sans-serif; padding: 0;
    transition: color 0.2s;
}
.legal-link:hover { color: #fff; }
.footer-right-2 { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-support { font-size: 0.72rem; color: rgba(255,255,255,0.25); font-weight: 600; }
.footer-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.72rem; color: rgba(255,255,255,0.3); font-weight: 600;
}
.status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4ade80; box-shadow: 0 0 6px #4ade80;
    animation: pulse 2s infinite; flex-shrink: 0;
}
.footer-version { font-size: 0.72rem; color: rgba(255,255,255,0.15); font-weight: 600; letter-spacing: 1px; }
.footer-made { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.25); display: flex; align-items: center; gap: 5px; }
.footer-langs { display: flex; gap: 4px; }
.lang-btn {
    background: none; border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.3); font-size: 0.68rem; font-weight: 700;
    padding: 3px 8px; border-radius: 6px; cursor: pointer;
    font-family: 'Manrope', sans-serif; transition: all 0.2s; letter-spacing: 0.5px;
}
.lang-btn:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.7); }
.lang-btn.active { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ===== МОДАЛКИ ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 24px;
}
.modal-overlay.open {
    opacity: 1; visibility: visible; pointer-events: auto;
}
.modal-box {
    background: #fff; border-radius: 24px;
    max-width: 640px; width: 100%;
    max-height: 80vh; overflow-y: auto;
    padding: 48px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(0,0,0,0.06); border: none; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 14px; color: #555;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.12); }
.modal-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem; color: #0a0a0a;
    margin-bottom: 6px; letter-spacing: 0.5px;
}
.modal-content h3 {
    font-size: 0.85rem; font-weight: 700; color: #0a0a0a;
    margin: 20px 0 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.modal-content p {
    font-size: 0.88rem; color: #555; line-height: 1.8; margin-bottom: 4px;
}
.modal-content em { color: #aaa; font-style: normal; font-size: 0.8rem; }
.modal-icon {
    height: 18px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
    position: relative;
    top: -1px;
    opacity: 0.85;
}
/* ===== ФУТЕР ДОП ===== */
.footer-version {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.2);
    font-weight: 600;
    letter-spacing: 1px;
}
.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
.footer-support {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    font-weight: 600;
}
.footer-langs {
    display: flex;
    gap: 4px;
}
.lang-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.3);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.lang-btn:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.7); }
.lang-btn.active { border-color: rgba(255,255,255,0.5); color: #fff; }