﻿/* Lato local (TTF) */
@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Apply */
body {
    font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


:root { scroll-behavior: smooth; }
html, body { background: #043f7c; }

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* твой main (у тебя уже есть .page-main) */
.page-main {
    flex: 1 0 auto;
}

/* футер не сжимается */
.footer--site {
    flex-shrink: 0;
}



.title,
.subtitle,
.content,
.content p,
.content li,
.content strong {
    color: #fff !important;
    font-size: 1.1rem;
    line-height: 1.75;
}

a { color: #fff; text-decoration: underline; }
a:hover, a:focus { color: #fff; }

.section { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.anchor { scroll-margin-top: 5.5rem; }

.page-main { padding-top: 5.5rem; }

/* Navbar */
.navbar {

    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,0) 55%, rgba(255,255,255,.05));
    border-bottom: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(18px);


}
.navbar-item, .navbar-link { color: #fff !important; text-decoration: none; }
.navbar-item:hover { background: rgba(255,255,255,.08) !important; }
.navbar-burger span { background: #fff; }
.navbar-menu { background: #043f7c !important; display: none; }

/* Mobile header order: burger -> logo -> buttons */
.navbar-brand { width: 100%; }
.navbar-brand .brand-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.brand-row .navbar-burger { margin-left: 0; }
.brand-row .brand-logo { margin-right: auto; }
.brand-row .brand-actions { display: flex; gap: 0.5rem; }
.brand-row .button { text-decoration: none; }

.brand-row  .btn-cta--orange {
    background: #ff6a00 !important;
    color: #fff !important;
}
.brand-row  .btn-cta {
    font-weight: 800;
    border-radius: 16px ;
    padding: 0.85rem 1.25rem;
    border: 0 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.brand-row .button {
    border-radius: 16px !important;
    color: white !important;
    font-size: 80% !important;
    border: none !important;
}

    /* Buttons */
.button.is-primary-invert {
    background: #fff !important;
    color: #043f7c !important;
    border-color: transparent !important;
}

.button.is-ghost-invert {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.22) !important;
}

/* Surfaces */
.card, .box, details.faq-item, .table {
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: #fff !important;
    border-radius: 14px;
    box-shadow: none !important;
}

/* Tables */
.table thead th, .table tbody td {
    color: #fff !important;
    border-color: rgba(255,255,255,.18) !important;
}
.table.is-striped tbody tr:nth-child(even) { background: rgba(255,255,255,.06) !important; }
.table.is-hoverable tbody tr:hover { background: rgba(255,255,255,.10) !important; }

/* FAQ */
details.faq-item { padding: 0.9rem 1rem; }
details.faq-item summary { cursor: pointer; font-weight: 700; color: #fff !important; }
details.faq-item .content { margin-top: 0.75rem; }

/* TOC (collapsible) */
.toc-card { border-radius: 14px; overflow: hidden; }

.toc-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.95rem 3.25rem;
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.toc-title {
    margin: 0;
    font-weight: 800;
    color: #fff !important;
    text-align: center;
}

.toc-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.10);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
}

.toc-toggle:hover { background: rgba(255,255,255,.16); }

.toc-body { padding: 1rem 1rem 1.1rem; }
.toc-body.is-collapsed { display: none; }

.toc-links { column-count: 3; column-gap: 1.5rem; }

@media (max-width: 1023px) {
    .toc-links { column-count: 2; }
}

@media (max-width: 768px) {
    .toc-links { column-count: 1; }
    .title.is-2 {
        font-size: 2rem;
    }

    .media-frame--narrow {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .brand-actions {
        margin-right: 10px;
    }
}

.toc-links a {
    display: inline-block;
    padding: 0.25rem 0;
    color: rgba(255,255,255,.92) !important;
    text-decoration: none !important;
}

.toc-links a:hover { text-decoration: underline !important; }

/* Buttons block */
.buttons-block { margin: 1em auto; }

/* Media (image) */
.media-frame {
    display: grid;
    place-items: center;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 12px 34px rgba(0,0,0,.20);
}

/* Always centered inside container */
.media-frame img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}


/* Low-res image: narrow frame centered (fix wrapper overflow look) */
.media-frame--narrow {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.media-frame--narrow img {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* CTA buttons like reference */
.cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.btn-cta {
    font-weight: 800;
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    border: 0 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.btn-cta--orange {
    background: #ff6a00 !important;
    color: #fff !important;
}

.btn-cta--blue {
    background: #86b9ff !important;
    color: #083e73 !important;
}

.btn-cta:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.btn-cta:active {
    transform: translateY(0);
}

strong {
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    font-weight: 700;
}

/* Footer (Bulma-friendly) */
.footer--site {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,0) 55%, rgba(255,255,255,.05));
    padding: 2rem 0 !important;
    border-top: 1px solid rgba(255,255,255,.18);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer__links a {
    color: rgba(255,255,255,.92) !important;
    text-decoration: none !important;
    font-weight: 700;
}

.footer__links a:hover {
    text-decoration: underline !important;
}

.footer__copy {
    color: rgba(255,255,255,.78);
    font-weight: 700;
}

/* Breadcrumbs (site style) */
.breadcrumb--site {
    margin-bottom: 1rem;
}

.breadcrumb--site ul {
    align-items: center;
}

.breadcrumb--site a {
    color: rgba(255,255,255,.92) !important;
    text-decoration: none !important;
    font-weight: 700;
}

.breadcrumb--site a:hover {
    text-decoration: underline !important;
}

.breadcrumb--site li.is-active a {
    color: #fff !important;
    opacity: 1;
}

.breadcrumb--site li + li::before,
.breadcrumb--site.has-succeeds-separator li + li::before {
    color: rgba(255,255,255,.65) !important;
    opacity: 1;
}

/* Contact form (decorative) */
.contact-form {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
}

.contact-form .label {
    color: rgba(255,255,255,.92) !important;
    font-weight: 800;
}

.contact-form .input,
.contact-form .textarea {
    background: rgba(0,0,0,.18) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.contact-form .input::placeholder,
.contact-form .textarea::placeholder {
    color: rgba(255,255,255,.60) !important;
}

.contact-form .input:focus,
.contact-form .textarea:focus {
    border-color: rgba(255,255,255,.35) !important;
}

.contact-form .help {
    color: rgba(255,255,255,.78) !important;
}


/* Footer mobile tweaks */
@media (max-width: 768px) {
    .footer--site {
        padding: 1.25rem 0 !important;
    }

    .footer__inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.75rem;
    }

    .footer__links {
        width: 100%;
        justify-content: center;
        gap: 0.85rem 1.1rem;
    }

    .footer__links a {
        display: inline-block;
        padding: 0.35rem 0.25rem;
    }

    .footer__copy {
        width: 100%;
        text-align: center;
        font-weight: 700;
    }
}
