/* ============================================
   PREMIUM UI/UX OVERRIDES
   World-Class Typography, Spacing & Proportions
   ============================================ */

/* --- Enhanced Typography Scale --- */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', var(--font-primary);
    --container-max: 1240px;
    --container-padding: 1.5rem;
    --space-section: clamp(5rem, 8vw, 7rem);
}

body {
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.01em;
    font-optical-sizing: auto;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.25; font-weight: 700; }
h4 { font-size: 1.125rem; letter-spacing: -0.015em; font-weight: 700; }

p { line-height: 1.7; letter-spacing: -0.005em; }

/* --- Section Spacing --- */
.section { padding: var(--space-section) 0; }

/* --- Section Headers — More Breathing Room --- */
.section-header {
    max-width: 680px;
    margin: 0 auto clamp(2.5rem, 4vw, 4rem);
}

.section-header__tag {
    background: rgba(14, 118, 179, 0.1);
    color: var(--color-accent);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.section-header__title { margin-bottom: 1rem; }

.section-header__text {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Header Refinements --- */
.header {
    background: rgba(0, 10, 36, 0.92);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header__inner { height: 76px; }

.header__logo-img { height: 46px; }

.nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* --- Hero Section --- */
.hero { min-height: 100vh; min-height: 100dvh; padding-top: 76px; }

.hero__bg::after {
    background: linear-gradient(160deg,
        rgba(0, 10, 36, 0.92) 0%,
        rgba(0, 10, 36, 0.72) 45%,
        rgba(0, 10, 36, 0.35) 100%);
}

.hero__content { max-width: 640px; }

.hero__badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 3px solid var(--color-accent);
    background: rgba(0, 10, 36, 0.5);
    backdrop-filter: blur(16px);
}

.hero__title {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 24px rgba(0,0,0,0.2);
}

.hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #fff;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero__actions { gap: 1rem; }

/* --- Trust Bar — Lighter, More Refined --- */
.trust-bar {
    padding: clamp(1.75rem, 3vw, 3rem) 0;
    background: var(--color-primary);
    border-bottom: none;
}

.trust-bar__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.trust-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.375rem 1.5rem;
    border-radius: 16px;
    gap: 1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
}

.trust-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(14, 118, 179, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.trust-item__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(14, 118, 179, 0.2);
    color: #3ba7e0;
    flex-shrink: 0;
    font-size: 1.375rem;
}

.trust-item__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.trust-item__subtitle {
    font-size: 0.9rem;
    color: #fff;
    margin-top: 2px;
}

/* --- Cards — Better Image Ratio & Content Spacing --- */
.card {
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,22,71,0.06), 0 12px 40px rgba(0,22,71,0.06);
    border: 1px solid rgba(0,22,71,0.06);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(14,118,179,0.1), 0 24px 56px rgba(0,22,71,0.12);
    border-color: rgba(14,118,179,0.15);
}

.card__image {
    aspect-ratio: 3 / 2;
}

.card__content {
    padding: 1.5rem 1.5rem 1.75rem;
}

.card__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    letter-spacing: -0.02em;
}

.card__text {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1.125rem;
}

.card__meta { gap: 0.5rem; }

.card__tag {
    padding: 0.4375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 6px;
    background: rgba(14, 118, 179, 0.08);
    color: var(--color-accent);
    backdrop-filter: none;
}

/* --- Feature / Service Icons --- */
.feature {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.feature:hover {
    background: rgba(14, 118, 179, 0.04);
    transform: translateY(-4px);
}

.feature__icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    margin: 0 auto 1.75rem;
    background: linear-gradient(135deg, #0e76b3, #1a8fd4);
    box-shadow: 0 8px 24px rgba(14, 118, 179, 0.25);
    font-size: 1.75rem;
}

.feature__title {
    margin-bottom: 0.625rem;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.feature__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    max-width: 280px;
    margin: 0 auto;
}

/* --- Grid Gap Refinement --- */
.grid { gap: 1.5rem; }

@media (min-width: 768px) {
    .grid--3 { gap: 2rem; }
    .grid--4 { gap: 1.75rem; }
}

/* --- Buttons — Refined Sizing --- */
.btn {
    padding: 1rem 2.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    letter-spacing: 0.01em;
}

.btn--primary {
    box-shadow: 0 6px 20px rgba(14, 118, 179, 0.28);
}

.btn--primary:hover {
    box-shadow: 0 10px 28px rgba(14, 118, 179, 0.38);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1.125rem 2.75rem;
    font-size: 1.125rem;
}

.btn--outline {
    border-radius: 14px;
    padding: 0.9375rem 2.125rem;
    border-width: 2px;
    font-weight: 600;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* --- Fleet Detail Galleries (flota.html) --- */
.fleet-detail {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,22,71,0.06);
}

.fleet-detail__main { aspect-ratio: 16/9; }
.fleet-detail__thumb { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; }
.fleet-detail__thumb:hover { opacity: 1; }

.fleet-detail__gallery {
    gap: 0.375rem;
    padding: 0.375rem;
    background: var(--color-bg);
}

.fleet-detail__gallery img {
    border-radius: 6px;
}

.fleet-detail__content {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.fleet-detail__content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.fleet-detail__content .text-muted {
    font-size: 1rem;
    line-height: 1.7;
}

.fleet-detail__specs { margin: 1.75rem 0; }

.spec {
    padding: 1.125rem;
    border-radius: 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: border-color 0.3s;
}

.spec:hover { border-color: var(--color-accent); }

.spec__icon { margin-bottom: 0.5rem; color: var(--color-accent); }
.spec__value { font-size: 1.0625rem; font-weight: 700; }
.spec__label { font-size: 0.75rem; letter-spacing: 0.03em; text-transform: uppercase; }

/* --- FAQ Accordion --- */
.faq-item {
    border-radius: 16px;
    margin-bottom: 0.875rem;
    box-shadow: 0 1px 4px rgba(0,22,71,0.04), 0 4px 16px rgba(0,22,71,0.04);
    border: 1px solid rgba(0,22,71,0.06);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.faq-item:hover,
.faq-item.active {
    border-color: rgba(14,118,179,0.2);
    box-shadow: 0 2px 8px rgba(14,118,179,0.06), 0 8px 24px rgba(0,22,71,0.06);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.faq-icon {
    font-size: 1.375rem;
    color: var(--color-accent);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14,118,179,0.08);
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s, background 0.3s;
}

.faq-item.active .faq-icon {
    background: var(--color-accent);
    color: #fff;
}

.faq-answer__inner {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.75;
}

/* --- Service Blocks (uslugi.html) --- */
.service-block__image img {
    border-radius: 20px;
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.service-block__content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-block__content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.service-block__list li {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.625rem;
}

/* --- Contact Page --- */
.contact-info {
    border-radius: 20px;
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

.contact-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
}

.contact-item__label {
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.375rem;
}

.contact-item__value {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5;
}

.map-container {
    border-radius: 14px;
    height: 240px;
    margin-top: 1.75rem;
}

/* --- Footer Refinements --- */
.footer {
    padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
}

.footer__grid { margin-bottom: 2.5rem; }

.footer__logo {
    font-size: 1.625rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.footer__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    opacity: 1;
    color: #fff;
}

.footer__title {
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 1;
    color: #fff;
}

.footer__link {
    font-size: 0.9375rem;
    opacity: 1;
    color: #fff;
    transition: color 0.25s;
    padding: 0.2rem 0;
}

.footer__link:hover { opacity: 1; color: var(--color-accent); }

.footer__links { gap: 0.375rem; }

.footer__contact-item {
    font-size: 0.9375rem;
    gap: 0.625rem;
    opacity: 1;
    color: #fff;
    line-height: 1.6;
}

.footer__contact-icon { margin-top: 3px; }

.footer__bottom {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.8125rem;
    opacity: 1;
    color: #fff;
}

.footer__emails-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer__emails-wrapper a {
    font-size: 0.9375rem;
    opacity: 1;
    color: #fff;
    transition: color 0.2s;
}

.footer__emails-wrapper a:hover { opacity: 1; color: var(--color-accent); }

/* --- Floating Buttons Cleanup --- */
.floating-container {
    bottom: 2rem;
    right: 2rem;
    gap: 12px;
}

.floating-btn {
    width: 62px;
    height: 62px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    border: 2px solid rgba(255,255,255,0.18);
}

.floating-btn svg { width: 26px; height: 26px; }

.floating-call-btn {
    width: 68px;
    height: 68px;
}

.floating-call-btn svg { width: 30px; height: 30px; }

/* --- Intro Overlay --- */
.intro-logo {
    width: 50vw;
    max-width: 420px;
}

/* --- CTA Dark Sections --- */
.section--dark {
    padding: clamp(4rem, 6vw, 5.5rem) 0;
}

.section--dark h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section--dark p {
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Scroll Animations - Smoother --- */
.reveal {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(24px);
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    :root { --container-padding: 1.25rem; }

    .hero__content { max-width: 100%; }
    .hero__badge { font-size: 0.8125rem; padding: 0.4375rem 0.875rem; }
    .hero__subtitle { font-size: 1rem; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }

    .trust-bar__inner { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .trust-item { padding: 0.875rem 1rem; }
    .trust-item__icon { width: 38px; height: 38px; }
    .trust-item__title { font-size: 0.8125rem; }
    .trust-item__subtitle { font-size: 0.75rem; }

    .card__content { padding: 1.25rem; }
    .card__title { font-size: 1.25rem; }

    .feature { padding: 1.5rem 1rem; }
    .feature__icon { width: 56px; height: 56px; margin-bottom: 1.25rem; }
    .feature__title { font-size: 1.125rem; }

    .floating-container { bottom: 1.25rem; right: 1.25rem; }
    .floating-btn { width: 48px; height: 48px; }
    .floating-btn svg { width: 20px; height: 20px; }
    .floating-call-btn { width: 52px; height: 52px; }
    .floating-call-btn svg { width: 22px; height: 22px; }

    .section--dark { padding: 3.5rem 0; }

    .footer__grid { gap: 2rem; }

    .mobile-nav {
        padding: 2rem 1.5rem;
        background: rgba(0, 10, 36, 0.98);
        backdrop-filter: blur(20px);
    }

    .mobile-nav__link {
        font-size: 1.125rem;
        padding: 0.875rem 0;
        letter-spacing: -0.01em;
    }
}

@media (max-width: 480px) {
    .trust-bar__inner { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Desktop Scaling (1024px+) --- */
@media (min-width: 1024px) {
    :root {
        --container-max: 1200px;
        --container-padding: 2rem;
    }

    body { font-size: 16px; }

    .header__inner { height: 72px; }
    .header__logo-img { height: 40px; }

    .nav__link { font-size: 0.9375rem; padding: 0.5rem 0; letter-spacing: 0.01em; }

    .hero { padding-top: 72px; }
    .hero__content { max-width: 580px; }
    .hero__badge { font-size: 0.8125rem; padding: 0.5rem 1.125rem; }
    .hero__title { font-size: clamp(2rem, 4vw, 2.75rem); }
    .hero__subtitle { font-size: 1.0625rem; max-width: 520px; line-height: 1.7; }
    .hero__actions { gap: 0.875rem; }

    .trust-bar { padding: clamp(1.25rem, 2vw, 1.75rem) 0; }
    .trust-bar__inner { gap: 1rem; }
    .trust-item { padding: 1rem 1.25rem; border-radius: 12px; }
    .trust-item__icon { width: 42px; height: 42px; border-radius: 10px; font-size: 1.125rem; }
    .trust-item__icon svg { width: 20px; height: 20px; }
    .trust-item__title { font-size: 0.9375rem; }
    .trust-item__subtitle { font-size: 0.8125rem; }

    .section-header { max-width: 620px; margin-bottom: clamp(2rem, 3.5vw, 3rem); }
    .section-header__tag { font-size: 0.8125rem; padding: 0.4375rem 1.25rem; letter-spacing: 0.1em; }
    .section-header__title { font-size: clamp(1.5rem, 3vw, 2.25rem); }
    .section-header__text { font-size: 0.9375rem; max-width: 520px; }

    .btn { padding: 0.75rem 1.75rem; font-size: 0.9375rem; border-radius: 12px; }
    .btn--large { padding: 0.875rem 2.25rem; font-size: 1rem; }
    .btn--outline { padding: 0.6875rem 1.625rem; border-width: 2px; }

    .card { border-radius: 16px; }
    .card__image { aspect-ratio: 16 / 10; }
    .card__content { padding: 1.25rem 1.25rem 1.5rem; }
    .card__title { font-size: 1.1875rem; }
    .card__text { font-size: 0.9375rem; line-height: 1.65; }
    .card__tag { padding: 0.375rem 0.75rem; font-size: 0.8125rem; border-radius: 6px; }
    .card__meta { gap: 0.5rem; }

    .feature { padding: 1.75rem 1.25rem; }
    .feature__icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1.25rem; box-shadow: 0 6px 20px rgba(14, 118, 179, 0.25); }
    .feature__icon svg { width: 26px; height: 26px; }
    .feature__title { font-size: 1.0625rem; margin-bottom: 0.5rem; }
    .feature__text { font-size: 0.875rem; max-width: 260px; line-height: 1.6; }

    .grid--3 { gap: 1.5rem; }
    .grid--4 { gap: 1.25rem; }

    .floating-container { bottom: 1.75rem; right: 1.75rem; gap: 10px; }
    .floating-btn { width: 52px; height: 52px; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
    .floating-btn svg { width: 22px; height: 22px; }
    .floating-call-btn { width: 56px; height: 56px; }
    .floating-call-btn svg { width: 24px; height: 24px; }

    .floating-cloud { max-width: 260px; font-size: 0.9rem; padding: 14px 18px; border-radius: 14px; }

    .faq-question { padding: 1.125rem 1.375rem; font-size: 1rem; }
    .faq-icon { width: 32px; height: 32px; font-size: 1.25rem; border-radius: 8px; }
    .faq-answer__inner { padding: 0 1.375rem 1.375rem; font-size: 0.9375rem; }

    .footer { padding: clamp(2.5rem, 4vw, 3.5rem) 0 1.5rem; }
    .footer__logo { font-size: 1.5rem; }
    .footer__desc { font-size: 0.9375rem; }
    .footer__title { font-size: 0.8125rem; }
    .footer__link { font-size: 0.9375rem; }
    .footer__contact-item { font-size: 0.9375rem; }

    .section--dark { padding: clamp(3rem, 5vw, 4rem) 0; }
    .section--dark h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
    .section--dark p { font-size: 1rem; max-width: 520px; }

    .quote-form { padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 18px; }
    .quote-form__title { font-size: 1.75rem; }
}

/* --- Selection Color --- */
::selection {
    background: rgba(14, 118, 179, 0.2);
    color: var(--color-primary);
}

/* --- Smooth Scrollbar --- */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 118, 179, 0.3) transparent;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(14, 118, 179, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 118, 179, 0.5);
}
