:root {
    --paper: #f6f4ef;
    --grid: #e8e4dc;
    --white: #fcfbf9;
    --ink: #2c3142;
    --muted: #626878;
    --accent: #5c6bc0;
    --accent-dark: #4a56a0;
    --dark: #353a50;
    --line: #d8d4cb;
    --line-soft: #e4e0d8;
    --border: 1px solid var(--line);
    --font: "Be Vietnam Pro", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        var(--paper);
    background-size: 24px 24px;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3, p, address { margin: 0; }
address { font-style: normal; font-size: 0.9rem; line-height: 1.7; }

.wrap {
    width: min(960px, calc(100% - 2rem));
    margin-inline: auto;
}

.center { text-align: center; }

/* Panel — beli blokovi na gridu */
.panel {
    background: var(--white);
    border: var(--border);
    padding: 2rem;
}

.panel-dark {
    background: var(--dark);
    color: var(--white);
}

.panel-dark .lead.light,
.panel-dark .two-col.light p { color: rgba(255, 255, 255, 0.85); }

/* Tipografija */
h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.lead {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 1rem;
}

.note a { color: var(--accent); }

/* Dugmad */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: var(--border);
    cursor: pointer;
    background: transparent;
    color: var(--ink);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
    background: var(--white);
}

.btn-full { width: 100%; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: var(--border);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: var(--ink);
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-name { letter-spacing: -0.02em; }

.header-nav {
    display: flex;
    gap: 1.25rem;
    margin-left: auto;
}

.header-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
}

.header-nav a:hover { color: var(--ink); }

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: var(--border);
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    border-top: var(--border);
    background: var(--white);
}

.mobile-menu a {
    padding: 0.85rem 1rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--grid);
}

.mobile-menu.is-open { display: flex; }
.mobile-menu[hidden] { display: none !important; }

/* Hero */
.hero { padding: 2.5rem 0; }

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.hero-panel { height: 100%; }

.hero-panel .lead { margin-top: 0.75rem; }

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.hero-img {
    margin: 0;
    border: var(--border);
    overflow: hidden;
    background: var(--white);
}

.hero-img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 55% center;
}

/* Sekcije */
.section { padding: 2rem 0; }

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-top p { color: var(--muted); }

.section-title { margin-bottom: 1.25rem; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.two-col p { color: var(--muted); }

.list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.list li {
    padding-left: 1rem;
    border-left: 2px solid var(--line-soft);
    font-size: 0.92rem;
    color: var(--muted);
}

/* Kartice */
.cards {
    display: grid;
    gap: 1rem;
}

.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--white);
    border: var(--border);
    padding: 1.25rem;
}

.card p { font-size: 0.9rem; color: var(--muted); }

.card-img {
    padding: 0;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: var(--border);
}

.card-body { padding: 1rem 1.25rem 1.25rem; }

.quote footer {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.quote p { font-size: 0.92rem; color: var(--ink); }

.card-extra {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.quote-single {
    margin: 1.25rem 0 0;
    padding: 0;
    border: none;
}

.quote-single p {
    font-size: 1.05rem;
    line-height: 1.55;
}

.quote-single footer {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* FAQ */
.faq-list {
    margin-top: 1.5rem;
    border-top: var(--border);
}

.faq-list details {
    border-bottom: var(--border);
}

.faq-list summary {
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list p {
    padding: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--muted);
}

/* Kontakt */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.25rem;
    align-items: start;
}

.contact-img {
    width: 100%;
    margin: 1.25rem 0;
    border: var(--border);
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.contact-form { display: grid; gap: 0.85rem; }

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.opt { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    border: var(--border);
    background: var(--paper);
    color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(92, 107, 192, 0.18);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: var(--border);
    border-radius: 4px;
    animation: alert-in 0.35s ease;
}

.form-alert[hidden] {
    display: none !important;
}

@keyframes alert-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-alert-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.form-alert-content {
    flex: 1;
    min-width: 0;
}

.form-alert-title {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.form-alert-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-alert-close {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.55;
    border-radius: 4px;
}

.form-alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.form-alert.is-success {
    background: #eef0fa;
    border-color: var(--accent);
    color: var(--ink);
}

.form-alert.is-success .form-alert-icon {
    background: var(--accent);
    color: var(--white);
}

.form-alert.is-success .form-alert-icon::before {
    content: "✓";
}

.form-alert.is-success .form-alert-text {
    color: var(--muted);
}

.form-alert.is-error {
    background: #fdf0ee;
    border-color: #d4847a;
    color: var(--ink);
}

.form-alert.is-error .form-alert-icon {
    background: #c45c4a;
    color: var(--white);
}

.form-alert.is-error .form-alert-icon::before {
    content: "!";
}

.form-alert.is-error .form-alert-text {
    color: var(--muted);
}

.form-alert.is-error .form-alert-text a {
    color: var(--accent);
    font-weight: 600;
}

/* Footer */
.footer {
    margin-top: 1rem;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    border-top: var(--border);
}

.footer .logo { color: var(--white); }

.footer-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.footer-col p {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
}

.footer-col p a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-col p a:hover { color: var(--white); }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
    padding: 0.75rem 0 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-copy p {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav,
    .header-row > .btn-primary { display: none; }

    .menu-btn {
        display: flex;
        margin-left: auto;
    }

    .hero-layout,
    .two-col,
    .cards-2,
    .cards-3,
    .contact-layout,
    .footer-row {
        grid-template-columns: 1fr 1fr;
    }

    .section-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .field-row { grid-template-columns: 1fr; }

    .panel { padding: 1.5rem; }
}

.about-story {
    display: grid;
    gap: 1rem;
}

.about-block h2 {
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

.about-block p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.about-block p + p {
    margin-top: 0.75rem;
}

.about-block:first-child p {
    font-size: 1.05rem;
    color: var(--ink);
}

/* Inner pages */
.page-main {
    padding: 2.5rem 0 3rem;
}

.contact-form-simple h2 {
    margin-bottom: 0.35rem;
}

.contact-form-simple .lead {
    margin-bottom: 1.25rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: 1.1rem;
}

.contact-list li {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.55;
}

.contact-list strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.contact-list a {
    font-weight: 500;
}

.page-hero {
    margin-bottom: 1.5rem;
}

.page-hero h1 {
    margin-bottom: 0.5rem;
}

.page-hero .lead {
    margin-bottom: 0;
}

.prose h2 {
    font-size: 1.15rem;
    margin: 1.75rem 0 0.65rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p,
.prose li {
    color: var(--muted);
    font-size: 0.92rem;
}

.prose ul,
.prose ol {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

.prose li + li {
    margin-top: 0.35rem;
}

.prose a {
    font-weight: 500;
}

.legal-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: var(--border);
}

.nav-active {
    color: var(--ink) !important;
    font-weight: 600;
}
