@font-face {
    font-family: "Baloo 2";
    src: url('/assets/fonts/Baloo2-Variable.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url('/assets/fonts/Inter-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --green: #58a70c;
    --blue-dark: #0b3f74;
    --blue-deep: #0a2f60;
    --text: #12325e;
    --soft: #eef5ff;
    --card: #ffffff;
    --font-display: "Baloo 2", "Baloo", cursive;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: #f2f6fc;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

a:not(.menu-link):not(.cta-small):not(.login-link):not(.phone-btn):not(.service-cta):hover {
    color: var(--green);
    text-decoration: none;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.top-bar {
    background: var(--green);
    color: #fff;
    font-size: 14px;
    padding: 18px 0 46px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.top-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.top-item i {
    font-size: 13px;
}

.login-link {
    color: #fff;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
}

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    margin-top: -24px;
    margin-bottom: -74px;
}

.nav-shell {
    position: relative;
    background: #fff;
    box-shadow: 0 8px 20px rgba(12, 42, 78, 0.12);
    border-radius: 0;
    border: 1px solid #dfe7f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 36px;
}

.menu-toggle {
    display: none;
    border: 1px solid #d2deee;
    background: #f7fbff;
    color: var(--blue-deep);
    border-radius: 10px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 700;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-weight: 600;
    font-size: 16px;
}

.menu a {
    padding: 10px 0;
    border-bottom: 3px solid transparent;
}

.menu a:hover,
.menu a.active {
    border-color: var(--green);
}

.cta-small {
    background: var(--green);
    color: #fff;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
}

.page-main {
    min-height: 40vh;
}

.hero {
    background-image: linear-gradient(95deg, rgba(6, 56, 104, 0.9) 0%, rgba(8, 62, 114, 0.75) 46%, rgba(8, 62, 114, 0.08) 100%), url('/images/backup/hero_bg.png');
    background-image: linear-gradient(95deg, rgba(6, 56, 104, 0.9) 0%, rgba(8, 62, 114, 0.75) 46%, rgba(8, 62, 114, 0.08) 100%), image-set(url('/images/hero_bg.webp') type('image/webp'), url('/images/backup/hero_bg.png') type('image/png'));
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 740px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: center;
}

.hero-logo {
    max-width: 300px;
    width: 100%;
}

.hero h1 {
    margin: 0;
    font-size: clamp(56px, 9vw, 96px);
    line-height: 1.02;
    max-width: 700px;
    letter-spacing: -0.02em;
    animation: rise-in 0.8s ease-out both;
    font-family: var(--font-display);
    font-weight: 700;
}

.hero h1 span {
    color: #f6ee1b;
}

.hero p {
    margin: 22px 0 28px;
    font-size: clamp(18px, 2vw, 30px);
    max-width: 780px;
    line-height: 1.35;
    font-weight: 500;
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    animation: rise-in 1s ease-out both;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: #fff;
    padding: 17px 28px;
    border-radius: 16px;
    font-size: clamp(20px, 3.2vw, 28px);
    font-weight: 800;
    box-shadow: 0 14px 26px rgba(45, 131, 8, 0.34);
    animation: rise-in 1.2s ease-out both;
}

.bubble-bg {
    background: url('/images/backup/sekcija_bg.png') center top/cover no-repeat;
    background: image-set(url('/images/sekcija_bg.webp') type('image/webp'), url('/images/backup/sekcija_bg.png') type('image/png')) center top/cover no-repeat;
    padding: 70px 0;
}

.section-title {
    text-align: center;
    color: var(--blue-deep);
    font-size: clamp(34px, 4vw, 60px);
    margin: 10px 0 42px;
    font-weight: 900;
    font-family: var(--font-display);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    background: var(--card);
    border-radius: 20px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 20px 35px rgba(14, 53, 105, 0.12);
    animation: rise-in 0.8s ease both;
}

.card img {
    width: 100%;
    max-height: 185px;
    object-fit: contain;
    margin-bottom: 14px;
}

.card h3 {
    font-size: clamp(28px, 2.5vw, 38px);
    margin: 0 0 10px;
    color: var(--blue-deep);
    line-height: 1.15;
    font-family: var(--font-display);
}

.card h3 a {
    color: inherit;
}

.card p {
    margin: 0;
    color: #2f4f78;
    font-size: 22px;
    line-height: 1.35;
}

.price-box {
    margin-top: 38px;
    background: #fff;
    border-radius: 20px;
    text-align: center;
    font-size: clamp(56px, 7vw, 110px);
    font-weight: 900;
    color: var(--blue-deep);
    padding: 44px 24px;
    box-shadow: 0 25px 40px rgba(11, 52, 103, 0.16);
    font-family: var(--font-display);
}

.form-section {
    background: linear-gradient(180deg, #f1f6fc 0%, #f8fbff 60%, #ebf4ff 100%);
    padding: 66px 0 84px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 34px;
    align-items: center;
}

.form-title {
    margin: 0;
    color: var(--blue-deep);
    font-size: clamp(40px, 4vw, 64px);
    font-weight: 900;
    font-family: var(--font-display);
}

.form-subtitle {
    margin: 10px 0 26px;
    color: #284a76;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
}

form {
    display: grid;
    gap: 14px;
}

input,
textarea {
    border: 2px solid #8fb3df;
    border-radius: 14px;
    background: #fff;
    padding: 16px 18px;
    font-size: 23px;
    color: #1f3f6d;
    width: 100%;
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

input::placeholder,
textarea::placeholder {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    color: #7a93b8;
}

.flatpickr-input[readonly] {
    cursor: pointer;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.form-times {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.submit-btn {
    margin-top: 10px;
    border: 0;
    border-radius: 14px;
    background: var(--green);
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    padding: 16px;
    cursor: pointer;
}

.errors {
    background: #ffe8e8;
    color: #8a1f1f;
    border: 1px solid #ffadad;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 18px;
}

.logo-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-side img {
    width: min(280px, 74%);
    filter: drop-shadow(0 12px 18px rgba(7, 42, 85, 0.16));
}

.footer-image {
    margin-top: 0;
    color: #fff;
    background: linear-gradient(115deg, rgba(6, 44, 86, 0.94) 0%, rgba(10, 59, 111, 0.9) 42%, rgba(14, 78, 141, 0.88) 100%), url('/images/backup/footer.png') center/cover no-repeat;
    background: linear-gradient(115deg, rgba(6, 44, 86, 0.94) 0%, rgba(10, 59, 111, 0.9) 42%, rgba(14, 78, 141, 0.88) 100%), image-set(url('/images/footer.webp') type('image/webp'), url('/images/backup/footer.png') type('image/png')) center/cover no-repeat;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 26px;
    padding: 62px 0 38px;
}

.footer-brand-logo {
    width: 132px;
    height: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    margin: 0;
    max-width: 420px;
    color: #e1ecfb;
    font-size: 18px;
    line-height: 1.45;
}

.footer-col {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-col h3 {
    margin: 0 0 6px;
    font-size: 24px;
    font-family: var(--font-display);
    color: #fff;
}

.footer-col span,
.footer-link {
    color: #e1ecfb;
    font-size: 17px;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(232, 241, 255, 0.3);
    padding: 16px 0;
    color: #d1e2fb;
    font-size: 14px;
}

.service-page {
    padding: 120px 0 90px;
    background: linear-gradient(180deg, #eef6ff 0%, #f9fcff 100%);
}

.service-page .container {
    max-width: 980px;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 20px 40px rgba(11, 53, 105, 0.12);
}

.service-title {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    color: var(--blue-deep);
    font-family: var(--font-display);
}

.thank-you-section {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 110px 0 80px;
    background: radial-gradient(circle at 15% 20%, #d9f0df 0%, #edf7ff 42%, #eef4ff 100%);
}

.thank-you-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 44px rgba(11, 53, 105, 0.16);
    border: 1px solid #dce7f6;
    padding: 40px 30px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.thank-you-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #e7f8ea;
    color: #2a9826;
    display: grid;
    place-items: center;
    font-size: 52px;
}

.thank-you-card h1 {
    margin: 0;
    color: var(--blue-deep);
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
}

.thank-you-card p {
    margin: 14px auto 0;
    max-width: 560px;
    font-size: clamp(20px, 2.2vw, 28px);
    color: #224872;
}

.thank-you-btn {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 0 24px;
}

.service-lead {
    margin: 0 0 24px;
    font-size: 22px;
    color: #244970;
    font-weight: 600;
}

.service-list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 12px;
    color: #1f3f6d;
    font-size: 20px;
    line-height: 1.45;
}

.service-notes {
    margin-top: 24px;
    border: 2px solid #e5f2d9;
    background: #f7fcef;
    border-radius: 14px;
    padding: 18px;
    display: grid;
    gap: 12px;
}

.service-notes p {
    margin: 0;
    color: #1f3f6d;
    font-weight: 700;
    line-height: 1.4;
}

.service-cta {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 980px) {
    .hero {
        min-height: 590px;
    }

    .top-bar {
        padding: 12px 0 18px;
    }

    .top-bar .container {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .topbar-left {
        display: grid;
        gap: 8px;
    }

    .top-item {
        font-size: 13px;
        white-space: normal;
        line-height: 1.35;
    }

    .login-link {
        align-self: flex-end;
        font-size: 18px;
    }

    .nav-wrap {
        position: static;
        top: auto;
        margin-top: 0;
        margin-bottom: 0;
    }

    .nav-shell {
        padding: 10px;
        border-radius: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .menu-toggle {
        display: inline-flex;
        justify-content: center;
    }

    .menu {
        width: 100%;
        display: none;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        font-size: 14px;
    }

    .nav-shell.is-open .menu {
        display: grid;
    }

    .menu a {
        padding: 10px 8px;
        border: 1px solid #d7e3f1;
        border-radius: 10px;
        text-align: center;
        background: #f8fbff;
    }

    .menu a:hover,
    .menu a.active {
        border-color: var(--green);
        background: #f1fbe8;
    }

    .cta-small {
        display: none;
        width: 100%;
        justify-content: center;
        padding: 11px 14px;
        font-size: 13px;
    }

    .nav-shell.is-open .cta-small {
        display: inline-flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo {
        margin: 0 auto;
        max-width: 220px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-times {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 48px 0 24px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col {
        text-align: center;
    }
}

@media (max-width: 620px) {
    .menu {
        grid-template-columns: 1fr;
    }

    .login-link {
        align-self: flex-start;
    }
}
