/* Afacerver — оформление внутренних страниц в стиле index.html
   Классы страниц (.wrap, .intro, .faq, .cta) переведены на палитру и
   компоненты главной. Шапка и подвал используют разметку index.html. */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a2b4a;
    background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ============ ШАПКА (как в index.html) ============ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.2rem; color: #0f2b5e;
}
.logo img { height: 34px; width: auto; display: block; order: 2; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-flags { display: flex; align-items: center; gap: 6px; padding-right: 10px; border-right: 1px solid #e9ecef; }
.header-flags a { display: flex; border-radius: 3px; overflow: hidden; opacity: .75; transition: opacity .15s; }
.header-flags a:hover { opacity: 1; }
.header-flags img { width: 32px; height: 32px; object-fit: cover; display: block; transition: transform .6s ease; }
.header-flags a:hover img { transform: rotate(360deg); }
.header-icons { display: flex; align-items: center; gap: 8px; }
.header-icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #f8f9fa; color: #1e66ff; transition: background .15s, transform .15s;
}
.header-icon-btn:hover { background: #eef0ff; transform: translateY(-1px); }
.header-icon-btn svg { width: 18px; height: 18px; }
.burger-btn {
    display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 40px; height: 40px; background: #f8f9fa; border: none; border-radius: 10px;
    cursor: pointer; padding: 0; flex-shrink: 0;
}
.burger-btn span {
    display: block; width: 20px; height: 2px; background: #0f2b5e; border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
    display: none; max-height: 0; overflow: hidden; background: #fff;
    border-top: 1px solid #eee; transition: max-height .3s ease;
}
.mobile-menu.open { max-height: 560px; }
.mobile-menu-flags {
    display: flex; flex-direction: column; padding: 14px 24px; gap: 4px;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-flags a {
    display: flex; align-items: center; gap: 10px; padding: 10px 4px;
    font-size: .95rem; color: #1a2b4a; font-weight: 500;
}
.mobile-menu-flags img { width: 32px; height: 32px; object-fit: cover; border-radius: 3px; }
.mobile-menu-links { display: flex; flex-direction: column; padding: 10px 24px 18px; gap: 2px; }
.mobile-menu-links a {
    display: flex; align-items: center; gap: 12px; padding: 12px 4px;
    font-size: .95rem; color: #1a2b4a; font-weight: 600;
}
.mobile-menu-links a svg { width: 20px; height: 20px; color: #1e66ff; flex-shrink: 0; }
.mobile-menu-links a.mobile-menu-cta { color: #1e66ff; }

/* ============ СОДЕРЖИМОЕ СТРАНИЦЫ ============ */
.wrap { max-width: 960px; margin: 0 auto; padding: 0; }

/* Синяя шапка страницы: крошки + заголовок + обещание.
   Фон растягивается тенью — без 100vw, поэтому нет белой полосы
   у скроллбара и нет шва между блоками. */
.wrap > .crumb,
.wrap > header.intro {
    position: relative;
    background: #143467;
    color: #fff;
    box-shadow: 0 0 0 100vmax #143467;
    clip-path: inset(0 -100vmax);
}
.wrap > .crumb {
    padding: 30px 24px 0;
    font-size: .85rem;
    color: #b9cdf0;
}
.wrap > .crumb a { color: #cfe0ff; text-decoration: underline; }
.wrap > header.intro { padding: 16px 24px 52px; }
.wrap > header.intro:first-child { padding-top: 52px; }
header.intro h1 {
    font-size: clamp(1.7rem, 3.8vw, 2.5rem);
    font-weight: 800; line-height: 1.15; margin-bottom: 18px; color: #fff;
    max-width: 780px;
}
header.intro .lede {
    font-size: 1.05rem; opacity: .95; max-width: 700px;
    margin: 0 0 24px; line-height: 1.7;
}
header.intro .promise {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(124,185,255,.35);
    border-left: 4px solid #7cb9ff;
    border-radius: 14px;
    padding: 18px 22px;
    max-width: 760px;
    font-size: .98rem;
    line-height: 1.65;
}
header.intro .promise strong { color: #fff; }

/* Карточки разделов */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 20px;
    margin: 34px 0 0;
    max-width: 100%;
}
.card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(124,185,255,.3);
    border-radius: 16px;
    padding: 24px 22px;
    color: #fff;
    display: block;
    transition: all .3s ease;
    backdrop-filter: blur(10px);
}
.card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.14);
    border-color: rgba(124,185,255,.55);
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.card p { font-size: .92rem; color: #c9d8f0; line-height: 1.55; }

/* Текст в белой части */
.wrap > h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-weight: 800; color: #0f2b5e;
    margin: 54px auto 16px; padding: 0 24px; max-width: 820px;
}
.wrap > p:not(.crumb):not(.also), .wrap > ul {
    max-width: 820px; margin-left: auto; margin-right: auto; padding: 0 24px;
}
.wrap > p:not(.crumb):not(.also) { color: #46556e; font-size: 1rem; margin-bottom: 14px; line-height: 1.75; }
.wrap > p:not(.crumb) strong { color: #0f2b5e; }
.wrap > ul { list-style: none; margin-bottom: 20px; }
.wrap > ul li {
    font-size: .97rem; color: #46556e; padding: 7px 0 7px 26px;
    position: relative; line-height: 1.6;
}
.wrap > ul li::before {
    content: "✓"; position: absolute; left: 0; top: 7px;
    color: #1e66ff; font-weight: 700;
}
.wrap > ul li strong { color: #0f2b5e; }

/* Аккордеон вопросов */
.faq {
    max-width: 820px; margin: 18px auto 0; padding: 0 24px;
    display: grid; gap: 14px;
}
.faq details {
    background: #fff; border-radius: 14px; padding: 20px 24px;
    border: 1px solid rgba(30,102,255,.12); transition: all .3s ease;
}
.faq details:hover {
    border-color: rgba(30,102,255,.3);
    box-shadow: 0 4px 12px rgba(30,102,255,.1);
}
.faq summary {
    cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; color: #0f2b5e;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; font-size: 1.5rem; color: #1e66ff;
    transition: transform .3s ease; flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq summary:focus-visible { outline: 2px solid #1e66ff; outline-offset: 4px; border-radius: 4px; }
.answer { margin-top: 12px; }
.answer p { color: #6c757d; font-size: .95rem; margin-bottom: 12px; line-height: 1.65; }
.answer p:last-child { margin-bottom: 0; }
.fix { color: #0f2b5e; font-weight: 700; }

/* Блок заявки */
.cta {
    position: relative;
    background: #f4f8ff;
    box-shadow: 0 0 0 100vmax #f4f8ff;
    clip-path: inset(0 -100vmax);
    border-top: 1px solid #d5e3fd;
    border-bottom: 1px solid #d5e3fd;
    margin: 56px 0 0;
    padding: 46px 24px;
    text-align: center;
}
.cta h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 800; color: #0f2b5e; margin-bottom: 12px; }
.cta p { color: #6c757d; font-size: 1rem; max-width: 620px; margin: 0 auto 24px; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px;
    font-weight: 700; font-size: .95rem; transition: all .3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-main {
    background: linear-gradient(135deg, #25d366, #20b860); color: #fff;
    box-shadow: 0 4px 12px rgba(37,211,102,.3);
}
.btn-main:hover { box-shadow: 0 8px 24px rgba(37,211,102,.4); }
.btn-alt {
    background: linear-gradient(135deg, #1e66ff, #0f45c4); color: #fff;
    box-shadow: 0 4px 12px rgba(30,102,255,.3);
}
.btn-alt:hover { box-shadow: 0 8px 24px rgba(30,102,255,.4); }
.small { font-size: .85rem; color: #adb5bd; margin-top: 18px; }
.also {
    max-width: 820px; margin: 26px auto 46px; padding: 0 24px;
    text-align: center; font-size: .9rem; color: #6c757d;
}
.also a { color: #1e66ff; font-weight: 600; }

/* ============ ПОДВАЛ (как в index.html) ============ */
.footer {
    text-align: center; padding: 40px 0; color: #b8c5d6; font-size: .85rem;
    background: linear-gradient(135deg, #0f2b5e, #1a4d9e);
}
.footer a { color: #7cb9ff; transition: color .3s ease; }
.footer a:hover { color: #fff; }
.footer-menu { margin-bottom: 24px; }
.footer-nav {
    display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
    padding-bottom: 24px; border-bottom: 1px solid rgba(124,185,255,.2);
    margin-bottom: 24px;
}
.footer-link { color: #7cb9ff; font-weight: 500; transition: all .3s ease; font-size: .9rem; }
.footer-link:hover { color: #fff; }

/* ============ АДАПТИВ ============ */
@media (max-width: 820px) {
    .footer-nav { gap: 16px; }
}
@media (max-width: 560px) {
    .header-right { display: none; }
    .burger-btn { display: flex; }
    .mobile-menu { display: block; }
    .wrap > header.intro { padding-bottom: 36px; }
    .wrap > header.intro:first-child { padding-top: 36px; }
    header.intro h1 { font-size: 1.5rem; }
    .cards { grid-template-columns: 1fr; }
    .btn-row { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .footer-nav { gap: 10px; font-size: .8rem; }
    .footer-link { font-size: .8rem; }
}
