:root {
    --navy: #0b1e36;
    --navy-2: #122844;
    --ink: #141a22;
    --amber: #f5b301;
    --amber-d: #c48a00;
    --paper: #f7f4ec;
    --muted: #5d6670;
    --line: #e6dfd2;
    --white: #fff;
    --wa: #25d366;
    --phone: #1aa34a;
    --shadow: 0 18px 40px rgba(11, 30, 54, 0.12);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Manrope, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #1d4f8c; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .brand-text strong {
    font-family: Oswald, Impact, sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--amber);
    color: var(--navy);
    padding: 8px 12px;
    z-index: 100;
}
.skip-link:focus { left: 8px; }

.container {
    width: min(1140px, calc(100% - 32px));
    margin-inline: auto;
}

.topbar {
    background: var(--navy);
    color: #d9e2ee;
    font-size: 0.86rem;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    flex-wrap: wrap;
}
.topbar-phone {
    color: var(--amber) !important;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-header {
    background: var(--navy-2);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}

.brand, .brand-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit !important;
    text-decoration: none !important;
}
.brand img { width: 56px; height: 56px; border-radius: 50%; background: #0b1e36; }
.brand-text { display: grid; }
.brand-text strong {
    color: var(--white);
    font-size: 1.35rem;
    text-transform: uppercase;
}
.brand-text small {
    color: var(--amber);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    margin: 6px 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav > a,
.nav-row > a {
    color: #e8eef6 !important;
    text-decoration: none !important;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.95rem;
}
.main-nav a.is-active,
.main-nav > a:hover:not(.nav-call),
.nav-row > a:hover { color: var(--amber) !important; }

.nav-item { position: relative; }
.nav-row { display: flex; align-items: center; }
.nav-sub-toggle {
    background: transparent;
    border: 0;
    color: #fff;
    width: 28px;
    height: 28px;
    cursor: pointer;
}
.nav-arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto 4px;
}
.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow);
    z-index: 20;
}
.nav-item:hover .nav-sub,
.nav-item.is-open .nav-sub { display: grid; }
.nav-sub a {
    color: var(--ink) !important;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none !important;
}
.nav-sub a:hover { background: var(--paper); }

.nav-call {
    background: var(--amber) !important;
    color: var(--navy) !important;
    border-radius: 999px;
    margin-left: 8px;
    padding: 10px 16px !important;
}
.nav-call:hover,
.nav-call:focus {
    background: #ffc933 !important;
    color: var(--navy) !important;
    text-decoration: none !important;
}

.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: #081526;
}
.hero-photo {
    display: block;
    line-height: 0;
}
.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 18, 34, 0.78) 0%, rgba(8, 18, 34, 0.32) 40%, rgba(8, 18, 34, 0.08) 100%),
        linear-gradient(180deg, rgba(8, 18, 34, 0.12) 0%, transparent 35%, rgba(8, 18, 34, 0.55) 100%);
}
.hero-grid {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 0 40px;
    max-width: 720px;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    margin: 8px 0 16px;
    text-transform: uppercase;
}
.hero p { font-size: 1.08rem; max-width: 58ch; color: #dce5f0; }
.kicker {
    color: var(--amber);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin: 0;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none !important;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary { background: var(--amber); color: var(--navy) !important; }
.btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,0.4); }
.btn-wa { background: var(--wa); color: #fff !important; width: 100%; }
.btn-dark { background: var(--navy); color: #fff !important; }

.section { padding: 72px 0; }
.section-muted { background: #efe9dc; }
.section-navy { background: var(--navy); color: #e8eef6; }
.section-navy h2, .section-navy a { color: #fff; }
.section-head { margin-bottom: 28px; max-width: 70ch; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 6px 0 10px; text-transform: uppercase; }

.grid-3, .grid-2, .grid-services {
    display: grid;
    gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-services { grid-template-columns: repeat(3, 1fr); }

.card, .service-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.service-card { padding: 0; overflow: hidden; }
.service-card .thumb { width: 100%; height: 190px; object-fit: cover; }
.service-card h3, .service-card p, .service-card a { padding-inline: 18px; }
.service-card h3 { margin: 16px 0 6px; }
.service-card p { color: var(--muted); margin-top: 0; }
.service-card a { display: inline-block; padding-bottom: 18px; font-weight: 800; }

.icon-dot {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--amber);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero {
    background: var(--navy) url("../img/hero.jpg") center/cover;
    color: #fff;
    padding: 56px 0;
    position: relative;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,30,54,0.92), rgba(11,30,54,0.62));
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; margin: 6px 0 8px; }
.page-hero-slim { padding: 36px 0; }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    padding: 36px 0 72px;
    align-items: start;
}
.prose {
    background: #fff;
    border-radius: 20px;
    padding: 28px 32px 40px;
    box-shadow: var(--shadow);
}
.prose h2 { font-size: 1.55rem; text-transform: uppercase; margin-top: 1.6em; }
.prose p { font-size: 1.04rem; }
.article-photo { margin: 0 0 22px; border-radius: 16px; overflow: hidden; }
.article-photo img { width: 100%; height: 340px; object-fit: cover; }

.article-sidebar { position: sticky; top: 96px; display: grid; gap: 14px; }
.side-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.side-kicker {
    margin: 0;
    color: var(--amber-d);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
}
.side-card h2 { font-size: 1.25rem; margin: 6px 0 10px; text-transform: uppercase; }
.side-wa { background: #12351f; color: #e9f7ee; }
.side-wa h2, .side-wa p { color: #e9f7ee; }
.side-phone { background: var(--navy); color: #e8eef6; }
.side-phone h2, .side-phone p { color: #e8eef6; }
.phone-line {
    display: block;
    color: var(--amber) !important;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-decoration: none !important;
}
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { margin: 8px 0; }

.faq { margin-top: 36px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 16px;
    margin: 10px 0;
    background: #fbfaf6;
}
.faq-item summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
.faq-item p { margin: 0 0 14px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.contact-actions {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}
.contact-actions .btn {
    width: 100%;
}
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input, .form textarea, .form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
.alert-ok { background: #e8f7ee; color: #146c36; }
.alert-err { background: #fde8e8; color: #9b1c1c; }

.site-footer {
    background: #081322;
    color: #c9d3e0;
    padding-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 32px;
}
.site-footer h2 { color: #fff; font-size: 1.05rem; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #d5deea !important; }
.footer-lead { max-width: 36ch; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    font-size: 0.9rem;
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}
.area-list li {
    background: rgba(245, 179, 1, 0.12);
    color: var(--amber);
    border: 1px solid rgba(245, 179, 1, 0.35);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}
.area-list a:hover { text-decoration: underline !important; }

.float-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    text-decoration: none !important;
}
.float-btn svg { width: 28px; height: 28px; }
.float-phone { background: var(--phone); }
.float-label {
    position: absolute;
    right: 72px;
    background: var(--navy);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
    transition: 0.2s ease;
}
.float-btn:hover .float-label,
.float-btn:focus .float-label {
    opacity: 1;
    transform: none;
}
.float-phone .pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(26, 163, 74, 0.55);
    animation: ring 1.6s ease-out infinite;
}
.float-phone .pulse::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(26, 163, 74, 0.28);
    animation: ring 1.6s ease-out infinite 0.4s;
}
.float-phone .phone-icon {
    transform-origin: 70% 30%;
    animation: phone-shake 1.8s ease-in-out infinite;
}

@keyframes ring {
    0% { transform: scale(0.92); opacity: 0.9; }
    100% { transform: scale(1.28); opacity: 0; }
}
@keyframes phone-shake {
    0%, 55%, 100% { transform: rotate(0); }
    60% { transform: rotate(14deg); }
    66% { transform: rotate(-12deg); }
    72% { transform: rotate(10deg); }
    78% { transform: rotate(-8deg); }
    84% { transform: rotate(4deg); }
}

.admin-wrap { width: min(980px, calc(100% - 32px)); margin: 32px auto 64px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
textarea.code { min-height: 180px; font-family: Consolas, "Courier New", monospace; font-size: 0.92rem; }
.note { background: #fff8e8; border: 1px solid #ead7a2; border-radius: 14px; padding: 16px; }
.note code { background: #fff; padding: 2px 6px; border-radius: 6px; }
.msg-list { display: grid; gap: 10px; }
.msg { background: #fff; border-radius: 14px; padding: 14px; border: 1px solid var(--line); }
.msg small { color: var(--muted); }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: var(--navy-2);
        padding: 12px 16px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    .site-header.nav-open .main-nav { display: flex; }
    .nav-sub { position: static; box-shadow: none; background: #0e223c; }
    .nav-sub a { color: #fff !important; }
    .nav-item.is-open .nav-sub { display: grid; }
    .nav-call { margin: 8px 0 0; text-align: center; }
    .grid-3, .grid-2, .grid-services, .article-layout, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .article-sidebar { position: static; }
    .hero::before {
        background: linear-gradient(180deg, rgba(8, 18, 34, 0.12) 18%, rgba(8, 18, 34, 0.55) 58%, rgba(8, 18, 34, 0.92) 100%);
    }
    .hero-grid {
        justify-content: flex-end;
        padding: 28px 0 32px;
    }
    .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
    .hero p { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
    .float-phone .pulse, .float-phone .pulse::after, .float-phone .phone-icon { animation: none; }
}
