:root {
    --blue: #003EA5;
    --yellow: #FFDD00;
    --ink: #161616;
    --muted: #5f6570;
    --line: #dddddd;
    --soft: #F6F6F6;
    --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    background: var(--white);
}

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--blue);
    color: var(--white);
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.topbar__inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px 0;
    flex-wrap: wrap;
    padding: 10px 0;
}

.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    min-height: 44px;
    padding: 0 10px;
    font-weight: 600;
    white-space: nowrap;
}

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

.topbar svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--white);
}

.nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand img {
    width: 190px;
    max-height: 60px;
    object-fit: contain;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.menu a {
    display: block;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 70px;
    padding: 0 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.menu a.active,
.menu a:hover { color: var(--blue); }

.nav-toggle {
    display: none;
    border: 1px solid var(--blue);
    background: var(--white);
    color: var(--blue);
    padding: 9px 12px;
    font: 700 14px/1 "Open Sans", Arial, sans-serif;
    text-transform: uppercase;
}

.hero,
.page-hero {
    min-height: 455px;
    display: grid;
    place-items: center;
    color: var(--white);
    text-align: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1285px;
}

.hero .eyebrow,
.page-hero .eyebrow {
    margin: 0;
    color: var(--yellow);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 80px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 8px auto 0;
    max-width: 760px;
    color: var(--white);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero__actions { display: none; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid var(--yellow);
    border-radius: 10px;
    background: var(--yellow);
    color: var(--ink);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.button:hover {
    color: var(--ink);
    background: #ffe84a;
}

.button--ghost {
    color: var(--white);
    background: transparent;
    border-color: var(--white);
}

.section { padding: 70px 0; }
.section--soft { background: var(--soft); }

h1, h2, h3 {
    margin-top: 0;
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.4;
}

h2 {
    margin-bottom: 18px;
    color: var(--ink);
    font-size: 35px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.split__grid,
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: center;
}

.welcome-title {
    margin-bottom: 34px;
    text-align: center;
}

.welcome-title p {
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    color: var(--ink);
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.15;
}

.welcome-icon {
    width: 118px;
    display: inline-block;
    margin-top: 24px;
    color: var(--blue);
}

.welcome-icon svg {
    width: 100%;
    height: auto;
    display: block;
    fill: currentColor;
}

.split .eyebrow {
    display: block;
    margin-bottom: 16px;
    color: var(--ink);
    font-size: 35px;
    font-weight: 400;
    letter-spacing: 5px;
    line-height: 1.4;
    text-align: center;
}

.split h2 { display: none; }
.split p { color: var(--ink); font-size: 18px; line-height: 1.8; }

.rounded,
.wide-photo {
    border-radius: 0;
    box-shadow: none;
}

.wide-photo {
    width: 100%;
    margin-top: 30px;
}

.signup-section {
    background: var(--white);
    scroll-margin-top: 72px;
}

.signup-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 0;
    align-items: stretch;
}

.signup-photo {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    margin: 0;
    background: var(--white);
}

.signup-photo img {
    width: 100%;
    flex: 1 1 auto;
    object-fit: cover;
}

.signup-photo figcaption {
    padding: 8px 12px 0;
    color: var(--blue);
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
}

.signup-panel {
    min-height: 520px;
    padding: 14px 34px;
    background-color: var(--yellow);
    background-image: radial-gradient(ellipse 90% 82% at 115% 115%, var(--blue) 0 36%, transparent 37%);
}

.course-form {
    display: grid;
    gap: 24px;
}

.course-form label {
    display: block;
}

.course-form label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.course-form input,
.course-form select {
    width: 100%;
    min-height: 51px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font: 400 18px/1.4 "Open Sans", Arial, sans-serif;
}

.course-form input::placeholder {
    color: #848b97;
    opacity: 1;
}

.course-form .button {
    width: max-content;
    min-height: 52px;
    padding: 14px 27px;
    border: 0;
    border-radius: 0;
    background: var(--white);
    color: var(--blue);
    font-size: 15px;
    letter-spacing: 2px;
}

.course-form .success,
.course-form .error {
    margin: 0;
    background: var(--white);
    color: var(--blue);
}

.stats {
    margin-top: 30px;
    background: var(--white);
    color: var(--white);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stats__grid div {
    min-height: 190px;
    padding: 55px;
    text-align: center;
    background: var(--blue);
    border: 1px solid #e5e5e5;
}

.stats strong {
    display: block;
    color: var(--yellow);
    font-size: 85px;
    font-weight: 100;
    line-height: .9;
}

.stats span {
    display: block;
    color: var(--white);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.page-hero--instructors { background-image: url("../img/Deltapromet-Autoskola-Instruktori-i-vozila.webp"); }
.page-hero--prices { background-image: url("../img/Deltapromet-Autoskola-Kategorije-i-uvjeti.webp"); }
.page-hero--payment { background-image: url("../img/Deltapromet-Autoskola-Cjenik.webp"); }
.page-hero--contact { background-image: url("../img/Deltapromet-Autoskola-Kontakt.webp"); }
.page-hero--online { background-image: url("../img/online.webp"); }

.cards {
    width: min(980px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.card,
.panel,
.contact-form,
.contact-box,
blockquote {
    border: 0;
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
}

.instructors-intro {
    padding-top: 35px;
}

.instructors-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(360px, 1fr);
    gap: 36px;
    align-items: center;
}

.instructors-intro .eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.instructors-intro h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.instructors-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
}

.office-carousel {
    position: relative;
    min-height: 0;
    aspect-ratio: 1024 / 719;
    overflow: hidden;
    background: var(--soft);
}

.office-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    animation: officeFade 10s infinite;
}

.office-slide:nth-child(2) {
    animation-delay: 5s;
}

.office-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.office-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .94);
    color: var(--blue);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

@keyframes officeFade {
    0%, 46% {
        opacity: 1;
        visibility: visible;
    }
    50%, 96% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

.instructors-list {
    padding-top: 70px;
    padding-bottom: 35px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 34px;
}

.person {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    background: var(--white);
}

.person img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.person__body {
    padding: 24px 0 0;
}

.person h2 {
    margin: 0 0 22px;
    color: var(--blue);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
}

.person p {
    margin: 8px 0;
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
}

.person-meta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.person-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    color: var(--blue);
}

.person-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-table {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.price-row {
    position: relative;
    min-height: 185px;
    display: block;
    padding: 30px 150px 24px 24px;
    background: var(--blue);
    color: var(--white);
}

.price-row:nth-child(odd) { background: var(--blue); }

.price-row strong {
    display: block;
    margin-bottom: 16px;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
}

.price-row div:not(.price) {
    font-size: 17px;
}

.price {
    position: absolute;
    top: 30px;
    right: 24px;
    width: 118px;
    min-height: 60px;
    display: grid;
    place-items: center;
    padding: 8px;
    background: var(--yellow);
    color: #000;
    font: 700 17px/1.25 Arial, sans-serif;
    text-align: center;
}

.price-section {
    background: var(--soft);
}

.price-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.price-category {
    min-height: 100%;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    background: var(--white);
}

.price-category__media {
    position: relative;
    height: 0;
    margin: 0;
    padding-bottom: 56.25%;
    background: var(--blue);
    overflow: hidden;
}

.price-category__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-category__media figcaption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 7px 13px;
    background: var(--yellow);
    color: #000;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.price-category__body {
    padding: 26px;
}

.price-category h2 {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}

.price-category__lead {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
}

.price-items {
    display: grid;
    gap: 0;
}

.price-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 17px 0;
    border-top: 1px solid #e7e7e7;
}

.price-item h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0;
}

.price-item p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.price-item p span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 3px 10px;
    border: 1px solid var(--line);
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    background: #fafafa;
}

.price-amount {
    min-width: 118px;
    display: inline-grid;
    place-items: center;
    padding: 10px 12px;
    background: var(--yellow);
    color: #000;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
}

.price-category--extra {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 30px;
    padding: 34px;
    align-items: center;
    border: 0;
    background: var(--blue);
    color: var(--white);
}

.price-category--extra .eyebrow {
    margin: 0 0 10px;
    color: var(--yellow);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.price-category--extra h2 {
    color: var(--white);
}

.price-category--extra .price-category__lead {
    margin-bottom: 0;
    color: var(--white);
}

.extra-hours {
    display: grid;
    gap: 12px;
}

.extra-hours__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: var(--white);
    color: var(--ink);
}

.extra-hours__row strong,
.extra-hours__row span {
    display: block;
}

.extra-hours__row strong {
    color: var(--blue);
    font-size: 17px;
    line-height: 1.3;
}

.extra-hours__row span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.extra-hours__row b {
    min-width: 95px;
    padding: 9px 12px;
    background: var(--yellow);
    color: #000;
    font-size: 18px;
    line-height: 1.15;
    text-align: center;
}

.note {
    width: min(980px, 100%);
    margin: 20px auto 0;
    color: var(--blue);
    font-style: italic;
    font-weight: 600;
}

.panel,
.contact-form,
.contact-box { padding: 30px; }

.panel h2,
.contact-form h2,
.contact-box h2 {
    color: var(--blue);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
}

.panel:nth-child(2) { background: var(--yellow); }
.check-list li,
.panel ol li {
    margin-bottom: 8px;
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
}

.contact-form {
    display: grid;
    gap: 12px;
    background: radial-gradient(at top left, var(--yellow) 75%, var(--blue) 76%);
}

.contact-form label {
    display: grid;
    gap: 5px;
    color: var(--ink);
    font-weight: 700;
}

.spam-check-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 5px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.contact-form .button {
    width: max-content;
    border-color: var(--white);
    background: var(--white);
    color: var(--blue);
    font-size: 15px;
}

.success,
.error {
    padding: 10px 12px;
    border-radius: 3px;
    background: var(--white);
    color: var(--blue);
    font-weight: 700;
}

.contact-box {
    background: transparent;
}

.contact-box p {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
    line-height: 2.5;
}

.contact-box iframe {
    width: 100%;
    min-height: 320px;
    margin-top: 22px;
    border: 0;
    border-radius: 0;
}

.narrow {
    width: min(760px, calc(100% - 32px));
}

.online-login-section {
    background: var(--white);
}

.online-password-form {
    display: grid;
    gap: 18px;
    padding: 32px;
    border: 1px solid var(--blue);
    background: var(--yellow);
}

.online-password-form h2 {
    margin-bottom: 0;
    color: var(--blue);
    font-size: 28px;
    font-weight: 600;
}

.online-password-form p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.online-password-form label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-weight: 700;
}

.online-password-form input {
    min-height: 48px;
    padding: 10px 13px;
    border: 0;
    border-radius: 3px;
    background: var(--white);
    font: inherit;
}

.online-password-form .button {
    width: max-content;
    border: 0;
    border-radius: 0;
    background: var(--white);
    color: var(--blue);
    font-size: 15px;
    letter-spacing: 2px;
}

.online-resources {
    padding-top: 100px;
    padding-bottom: 100px;
}

.online-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.online-card {
    min-height: 260px;
    padding: 28px 20px;
    border: 1px solid var(--blue);
    text-align: center;
}

.online-card__icon {
    width: 72px;
    height: 72px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 18px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    color: var(--blue);
    font-size: 16px;
    font-weight: 800;
}

.online-card h2 {
    margin-bottom: 8px;
    color: var(--yellow);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.online-card h2 a {
    color: var(--yellow);
}

.online-card p {
    margin: 0 0 14px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

.online-card__link {
    color: #0056ff;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.online-videos {
    padding-top: 0;
}

.online-videos h2 {
    margin-bottom: 8px;
    color: var(--blue);
    text-align: center;
}

.online-section-subtitle {
    max-width: 680px;
    margin: 0 auto 28px;
    color: #000;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.online-homework {
    padding-top: 56px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.video-card {
    border: 1px solid var(--blue);
    background: #000;
}

.video-card iframe,
.video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

.video-card--wide {
    grid-column: 1 / -1;
}

.testimonials {
    margin-top: 30px;
    background: var(--blue);
}

.testimonials .eyebrow {
    color: var(--white);
    font-size: 35px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

.testimonials h2 { display: none; }

.testimonial-carousel {
    width: min(900px, 100%);
    margin: 26px auto 0;
}

.testimonial-track {
    display: grid;
}

.testimonial-slide {
    grid-area: 1 / 1;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
    pointer-events: none;
}

.testimonial-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.testimonial-slide p {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.75;
    text-align: center;
}

.testimonial-slide cite {
    display: block;
    margin-top: 18px;
    text-align: center;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
}

.testimonial-dot {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.testimonial-dot::before {
    content: "";
    position: absolute;
    inset: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}

.testimonial-dot.is-active::before {
    background: var(--yellow);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 26px;
}

blockquote {
    margin: 0;
    padding: 24px;
    background: var(--white);
}

blockquote p {
    margin-top: 0;
    color: var(--ink);
    font-size: 14px;
    font-style: italic;
    font-weight: 600;
}

cite {
    color: var(--ink);
    font-style: normal;
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    .office-slide {
        animation: none;
    }

    .office-slide:first-child {
        opacity: 1;
        visibility: visible;
    }

    .testimonial-slide {
        transition: none;
    }
}

.footer {
    background: var(--blue);
}

.copyright {
    padding: 18px 14px;
    color: var(--white);
    text-align: center;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
}

@media (max-width: 1024px) {
    .hero .eyebrow,
    .page-hero .eyebrow {
        font-size: 42px;
        letter-spacing: 1px;
    }

    .stats__grid div { padding: 25px; }
    .stats strong { font-size: 75px; }
    .stats span { letter-spacing: 2px; }
}

@media (max-width: 1040px) {
    .nav {
        min-height: 50px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .brand img {
        width: 150px;
        max-height: 40px;
    }

    .nav-toggle { display: inline-flex; }

    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0 2px;
    }

    .menu.open { display: flex; }
    .menu a { line-height: 1.8; padding: 10px 0; }

    .split__grid,
    .two-columns,
    .instructors-intro__grid,
    .signup-grid,
    .person {
        grid-template-columns: 1fr;
    }

    .signup-photo,
    .signup-panel {
        min-height: 0;
    }

    .testimonial-grid,
    .online-card-grid,
    .video-grid,
    .people-grid,
    .price-category-grid,
    .price-table {
        grid-template-columns: 1fr;
    }

    .price-category--extra {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar {
        font-size: 11px;
        line-height: 1.2;
        letter-spacing: .4px;
    }

    .topbar__inner {
        gap: 2px 0;
        min-height: 0;
        padding: 6px 0;
    }

    .topbar a {
        gap: 4px;
        padding: 2px 6px;
    }

    .topbar svg {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }

    .hero,
    .page-hero {
        min-height: 400px;
        padding: 0 30px;
    }

    .hero .eyebrow,
    .page-hero .eyebrow {
        font-size: 32px;
        line-height: 1.4;
        letter-spacing: 1px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 14px;
        line-height: 1.8;
    }

    .section { padding: 45px 0; }

    .welcome-title p {
        gap: 8px;
        font-size: 34px;
    }

    .welcome-icon {
        width: 94px;
        margin-top: 18px;
    }

    .split .eyebrow,
    h2,
    .testimonials .eyebrow {
        font-size: 24px;
    }

    .split p { font-size: 14px; text-align: center; }

    .signup-panel {
        padding: 20px;
    }

    .signup-section {
        scroll-margin-top: 170px;
    }

    .signup-photo figcaption {
        font-size: 16px;
    }

    .stats__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats__grid div { min-height: 0; padding: 15px; }
    .stats strong { font-size: 45px; }
    .stats span { font-size: 14px; }

    .price-row {
        min-height: 0;
        padding: 24px;
    }

    .price {
        position: static;
        margin-top: 18px;
    }

    .instructors-intro h2 {
        font-size: 25px;
    }

    .office-slide figcaption {
        font-size: 14px;
    }

    .person {
        min-height: 0;
    }

    .person img {
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 2;
    }

    .price-category__body,
    .price-category--extra {
        padding: 22px;
    }

    .price-category__media {
        padding-bottom: 58%;
    }

    .price-category h2 {
        font-size: 24px;
    }

    .price-item,
    .extra-hours__row {
        grid-template-columns: 1fr;
    }

    .price-amount,
    .extra-hours__row b {
        justify-self: start;
    }

    .testimonial-grid { grid-template-columns: 1fr; }

    .testimonial-slide {
        min-height: 270px;
        padding: 20px;
    }

    .testimonial-slide p {
        font-size: 15px;
        line-height: 1.65;
    }

    .copyright {
        font-size: 6px;
        letter-spacing: .5px;
    }
}

/* ─── Kontakt blok na naslovnoj stranici ─────────────────────────────────── */

.contact-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-home-grid .contact-map iframe,
.map-preview {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    margin-top: 0;
}

.map-preview {
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 28px;
    background: linear-gradient(135deg, #eef3f8 0%, #dce8f2 52%, #f4e7b8 52%, #f4e7b8 100%);
    color: var(--blue);
    text-align: center;
    text-decoration: none;
}

.map-preview span {
    font-weight: 800;
    text-transform: uppercase;
}

.map-preview strong {
    color: var(--ink);
    font-size: 18px;
}

@media (max-width: 768px) {
    .contact-home-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-home-grid .contact-map iframe,
    .map-preview {
        height: 300px;
    }
}
