/* ==========================================================
   Общие стили страниц «Я здесь Онлайн» (resources/views/pages2)
   Подключается на всех страницах: <link href="/css/pages.css">
   ========================================================== */

:root {
    --blue: #4CBCD1;
    --pink: #FA7463;
    --red: #E14242;
    --grey: #9A9C9D;
    --dark: #53535F;
    --lightgrey: #D0D0D0;
    --black: #252525;
    --thin: #F2F2F2;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================== Header (общая шапка) ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--thin);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1160px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    display: block;
}

.logo-text {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .2px;
}

.logo-text span.b {
    color: var(--blue);
}

.logo-text span.p {
    color: var(--pink);
}

.nav-cta {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: .25s;
    text-decoration: none;
}

.nav-cta:hover {
    background: #3ea8bc;
    color: #fff;
}

/* ===================== Hero ===================== */
.hero {
    padding: 64px 0 40px;
    text-align: center;
}

.hero .eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--thin);
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -.5px;
}

.hero p {
    color: var(--dark);
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
}

/* ===================== Заголовки секций ===================== */
.section-title {
    text-align: center;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: var(--dark);
    margin-bottom: 36px;
    font-size: 15px;
}

/* ===================== FAQ-аккордеон (<details>) ===================== */
.faq {
    padding: 70px 0;
}

.faq-item {
    border-bottom: 1px solid var(--thin);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 4px;
    font-weight: 700;
    font-size: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--thin);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dark);
    transition: .25s;
}

.faq-item[open] summary .icon {
    background: var(--blue);
    color: #fff;
    transform: rotate(45deg);
}

.faq-item .faq-body {
    padding: 0 4px 22px;
    color: var(--dark);
    font-size: 14.5px;
}

.faq-body p {
    margin: 0 0 10px;
}

.faq-body strong {
    color: var(--black);
}

/* ===================== Footer (общий подвал) ===================== */
.site-footer {
    background: var(--black);
    color: #fff;
    padding: 44px 0;
    text-align: center;
}

.site-footer .logo-text {
    color: #fff;
}

.site-footer .logo-text span.b {
    color: var(--blue);
}

.site-footer .logo-text span.p {
    color: var(--pink);
}

.site-footer .logo-img {
    height: 28px;
    margin: 0 auto 6px;
}

.site-footer p {
    color: var(--lightgrey);
    font-size: 13.5px;
    margin: 14px 0 0;
}

.site-footer a.mail {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

/* ===================== Адаптив ===================== */
@media (max-width: 640px) {
    .hero {
        padding: 44px 0 28px;
    }

    .header-inner {
        padding: 14px 16px;
    }
}
