/* Core Layout */
body {
  --bg-drift-y: 0px;
  background-color: #0d1322;
  color: #dde2f8;
  font-family: 'Inter', sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -12% -8% auto -8%;
  height: 58vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 58% at 18% 22%, rgba(85, 137, 203, 0.16), rgba(85, 137, 203, 0) 72%),
    radial-gradient(42% 52% at 82% 10%, rgba(53, 86, 149, 0.13), rgba(53, 86, 149, 0) 74%);
  transform: translate3d(0, var(--bg-drift-y), 0);
  will-change: transform;
  transition: transform 120ms linear;
}

/* Typography */
.mono { font-family: 'JetBrains Mono', monospace; }

/* Components */
.glass { background: rgba(21, 27, 43, 0.8); backdrop-filter: blur(12px); }
.tonal-nesting { background-color: #151b2b; }
.surface-card { background-color: #242a3a; }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Buttons & Inputs */
button:not(.rounded-full),
input:not([type="checkbox"]):not([type="radio"]),
.surface-card,
.faq-item,
.legal-link-card,
.hero-analytics-card,
.hero-analytics-panel,
.cta-shell,
.cta-field-shell {
    border-radius: 6px !important;
}

.secondary-cta {
    background: transparent !important;
    border: none !important;
    color: #5589cb !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.secondary-cta:hover {
    color: #dde2f8 !important;
    background: transparent !important;
}

.secondary-cta .material-symbols-outlined {
    color: #5589cb !important;
}

.secondary-cta:hover .material-symbols-outlined {
    color: #dde2f8 !important;
}

.primary-filled {
    background-image: none;
    background-color: #2563eb !important;
}

.primary-filled:hover {
    background-image: none;
    background-color: #1d4ed8 !important;
}

/* Form Fields */
.cta-field-shell {
    background: rgba(14, 22, 38, 0.38);
    border: 1px solid rgba(221, 226, 248, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -8px 18px rgba(7, 12, 24, 0.18);
}

.cta-field-shell:focus-within {
    border-color: rgba(85, 137, 203, 0.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -10px 22px rgba(7, 12, 24, 0.24), 0 0 0 1px rgba(85, 137, 203, 0.22);
}

.cta-title {
    line-height: 1.08;
}

.cta-subtitle {
    line-height: 1.55;
}

.hero-title {
    line-height: 1.02;
}

.hero-subtitle {
    line-height: 1.62;
}

.top-nav-menu {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.012em;
}

.top-nav-link,
.top-nav-login {
    color: rgba(221, 226, 248, 0.84);
}

.top-nav-link:hover,
.top-nav-login:hover {
    color: rgba(238, 242, 255, 0.98);
}

.section-heading {
    line-height: 1.12;
    text-wrap: balance;
}

/* Grids */
.official-sources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    align-items: start;
}

.official-sources-item {
    width: 100%;
    max-width: 132px;
}

.official-sources-ticker {
    display: none;
}

.official-sources-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
}

.official-sources-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: officialSourcesTicker 22s linear infinite;
}

.official-sources-track--reverse {
    animation-direction: reverse;
    animation-duration: 26s;
}

.official-sources-pill {
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(221, 226, 248, 0.58);
    white-space: nowrap;
}

.official-sources-pill img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.55;
    filter: grayscale(1) brightness(1.2);
}

.official-sources-pill span {
    font-size: 0.8rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: -0.02em;
    line-height: 1;
}

@keyframes officialSourcesTicker {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-50% - 0.5rem), 0, 0);
    }
}

@media (min-width: 768px) {
    .official-sources-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .official-sources-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    main {
        padding-top: 5rem !important;
    }

    .top-nav {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .top-nav-actions {
        gap: 0.25rem !important;
    }

    .top-nav-login {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .top-nav-cta {
        background: transparent !important;
        color: rgba(221, 226, 248, 0.92) !important;
        border: 1px solid rgba(221, 226, 248, 0.18) !important;
        box-shadow: none !important;
        padding: 0.55rem 0.85rem !important;
    }

    .top-nav-cta:hover {
        background: rgba(255, 255, 255, 0.04) !important;
    }

    .hero-section {
        padding-top: 1.5rem !important;
    }

    .hero-copy {
        gap: 1.6rem !important;
    }

    .hero-badge {
        padding: 0 !important;
        background: transparent !important;
        border-color: rgba(221, 226, 248, 0.08) !important;
        gap: 0.55rem !important;
        box-shadow: none !important;
    }

    .hero-badge span:last-child {
        font-size: 0.72rem !important;
        letter-spacing: 0.12em !important;
    }

    .hero-title {
        line-height: 1.12;
        letter-spacing: -0.045em;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.72;
        opacity: 0.82;
    }

    .hero-actions {
        gap: 0.9rem !important;
        padding-top: 0.35rem !important;
    }

    .hero-primary-cta .material-symbols-outlined {
        width: 1.15rem;
        height: 1.15rem;
    }

    .hero-demo-link {
        font-size: 1rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.01em;
        color: rgba(85, 137, 203, 0.96) !important;
    }

    .hero-demo-link .material-symbols-outlined {
        width: 1.2rem;
        height: 1.2rem;
    }

    .hero-footnote {
        padding-top: 1.2rem !important;
    }

    #cta {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-bottom: 1rem;
    }

    .cta-shell {
        margin-left: auto;
        margin-right: auto;
        padding: 2.5rem 1.5rem !important;
        border-radius: 20px !important;
    }

    .cta-shell .space-y-8 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1.5rem;
    }

    .cta-title {
        max-width: 11ch;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(2.5rem, 9vw, 3.25rem);
        line-height: 1.2;
        letter-spacing: -0.04em;
    }

    .cta-subtitle {
        max-width: 17rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.05rem;
        line-height: 1.65;
        opacity: 0.8;
    }

    .cta-field-shell {
        width: 100%;
        max-width: none !important;
        padding: 0.75rem !important;
        gap: 0.75rem !important;
        border-radius: 20px !important;
    }

    .cta-search-input,
    .cta-search-button {
        width: 100%;
        min-height: 56px;
    }

    .cta-search-input {
        padding: 0 1.25rem !important;
        font-size: 1rem;
        border-radius: 14px !important;
    }

    .cta-search-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 1.25rem !important;
        font-size: 1rem;
        border-radius: 14px !important;
    }
}

/* Reviews */
.testimonials-shell {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 7vw 0.75rem;
    margin: 0 -1.5rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 7vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    display: flex;
    flex-direction: column;
    min-width: 86vw;
    flex: 0 0 86vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    padding: 1rem !important;
}

.review-summary {
    display: none;
    margin-bottom: 0;
    color: rgba(221, 226, 248, 0.7);
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.review-stars {
    gap: 0.2rem;
    margin-bottom: 0.4rem;
    color: rgba(221, 226, 248, 0.42);
}

.review-stars .material-symbols-outlined {
    width: 0.68rem;
    height: 0.68rem;
}

.review-quote {
    margin: 0;
    color: rgba(241, 245, 255, 0.96);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 0.9rem;
    min-height: 3.6rem;
}

.review-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.review-author-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 2.6rem;
}

.review-author-line {
    color: rgba(241, 245, 255, 0.96);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
}

.review-company-line {
    margin-top: 0.2rem;
    color: rgba(221, 226, 248, 0.72);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reviews-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.reviews-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border-radius: 999px !important;
    border: none !important;
    background: rgba(221, 226, 248, 0.2);
    transition: transform 180ms ease, background-color 180ms ease, width 180ms ease;
}

.reviews-dot.is-active {
    width: 1.5rem;
    background: #2563eb;
}

@media (min-width: 768px) {
    .testimonials-track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        overflow: visible;
        padding: 0;
        margin: 0;
        scroll-snap-type: none;
    }

    .review-card {
        min-width: 0;
        flex: initial;
        padding: 1rem !important;
    }

    .reviews-dots {
        display: none;
    }
}

/* Footer */
footer .footer-shell {
    max-width: min(1320px, calc(100vw - 64px));
    margin: 0 auto;
}

footer .footer-main-grid {
    grid-template-columns: minmax(400px, 2fr) minmax(170px, 0.9fr) minmax(320px, 1.15fr);
    justify-content: start;
    justify-items: start;
    align-items: start;
    column-gap: clamp(2.25rem, 3.2vw, 3.5rem);
    row-gap: 2rem;
    width: 100%;
}

footer .footer-brand-col {
    min-width: 0;
}

footer .footer-brand-col > div {
    max-width: 360px;
}

footer .footer-main-grid > div:last-child {
    max-width: 320px;
}

footer .footer-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

footer .footer-payments {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

footer .footer-payments img {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

footer .footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

footer .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

footer .footer-contact-icon,
footer .footer-social-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
}

footer .footer-contact-icon {
    margin-top: 0.28rem;
}

footer .footer-contact-text {
    line-height: 1.75;
}

footer .footer-bottom-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

footer .footer-legal-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

footer .footer-provider {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer .footer-provider-line {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    line-height: 1.6;
}

footer .footer-provider-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

footer .footer-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

footer .footer-social-link:hover {
    border-color: rgba(85, 137, 203, 0.35);
    background: rgba(85, 137, 203, 0.08);
}

footer .payment-logo-mir {
    width: 74px;
    height: 22px;
}

footer .payment-logo-visa {
    width: auto;
    height: 20px;
}

footer .payment-logo-mastercard {
    width: auto;
    height: 26px;
}

/* FAQ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.38s ease, opacity 0.26s ease, transform 0.26s ease;
}

.faq-item.is-open .faq-answer {
    opacity: 1;
    transform: translateY(0);
}

.faq-item button:hover {
    transform: none;
    box-shadow: none;
}

.faq-item button .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(141, 144, 160, 0.18);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.faq-item button:hover .material-symbols-outlined,
.faq-item.is-open button .material-symbols-outlined {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.faq-item.is-open button .material-symbols-outlined {
    transform: rotate(180deg);
}

/* SVG Icons */
.material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    color: currentColor;
    vertical-align: middle;
    line-height: 1;
    font-size: 0 !important;
    flex: 0 0 auto;
    overflow: hidden;
}

.material-symbols-outlined[data-svg-ready="true"] {
    width: 1em;
    height: 1em;
    font-size: inherit !important;
}

.material-symbols-outlined svg {
    width: 1em;
    height: 1em;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.material-symbols-outlined.fill svg {
    fill: currentColor;
    stroke: none;
}

/* Scroll Reveal Animations */
html.reveal-ready [data-reveal] {
    opacity: 0;
    will-change: opacity, transform, filter;
    transform: translate3d(0, 32px, 0) scale(0.985);
    filter: blur(10px);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        filter 0.72s ease var(--reveal-delay, 0ms);
}

html.reveal-ready [data-reveal="soft"] {
    transform: translate3d(0, 22px, 0);
    filter: blur(6px);
}

html.reveal-ready [data-reveal="left"] {
    transform: translate3d(-36px, 20px, 0);
    filter: blur(8px);
}

html.reveal-ready [data-reveal="right"] {
    transform: translate3d(36px, 20px, 0);
    filter: blur(8px);
}

html.reveal-ready [data-reveal].reveal-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

@media (max-width: 767px) {
    html.reveal-ready [data-reveal] {
        transform: translate3d(0, 18px, 0) scale(0.992);
        filter: blur(6px);
    }
    html.reveal-ready [data-reveal="left"],
    html.reveal-ready [data-reveal="right"] {
        transform: translate3d(0, 18px, 0) scale(0.992);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  body::before {
    transform: none;
    transition: none;
  }
    html.reveal-ready [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* Mobile Footer */
@media (max-width: 767px) {
    .official-sources-grid {
        display: none;
    }
    .official-sources-ticker {
        display: grid;
        gap: 0.85rem;
    }
    footer .footer-shell {
        max-width: none;
        width: auto;
    }
    footer .footer-main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 2rem;
    }
    footer .footer-brand-col {
        grid-column: span 2 / span 2;
    }
    footer .footer-brand-col > div {
        max-width: none;
        gap: 1rem;
    }
    footer .footer-main-grid > div:last-child {
        grid-column: span 2 / span 2;
        max-width: none;
    }
    footer .footer-legal-stack {
        gap: 1.5rem;
    }
    footer .footer-sub {
        align-items: flex-start;
    }
    footer .footer-bottom-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }
    footer .footer-payments {
        margin-left: 0;
        justify-content: flex-start;
        gap: 0.85rem;
    }
    footer .footer-socials {
        gap: 0.6rem;
    }
    footer .footer-social-link {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .official-sources-track,
    .official-sources-track--reverse {
        animation: none;
    }
}
.review-footer picture {
    display: flex;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
}

/* Тарифы: «Полное досье» + «Мониторинг» — рядом, в два столбца.
   Оба тарифа видны сразу, без прокрутки. На мобиле — стопка. */
.tariffs-duo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 62rem;
    margin-inline: auto;
    align-items: stretch;
    justify-items: stretch;
}
@media (min-width: 900px) {
    .tariffs-duo {
        grid-template-columns: 1fr 1fr;
    }
}
/* Одинаковая высота карточек: тянем на всю высоту ячейки грида,
   кнопка прижимается к низу (ul уже flex-grow). */
.tariffs-duo > div {
    height: 100%;
}

