/* Shared visual language for Kapitan.sk. Home components are scoped to ks-*. */
:root {
    --ks-navy:#08254d;
    --ks-blue:#0066ce;
    --ks-muted:#657c9b;
    --ks-coral:#ff6248;
    --ks-border:#e2edf4;
}
.ks-container {
    width:min(1180px,calc(100% - 64px));
    margin-inline:auto;
}
.ks-home {
    background: #f2f9fd;
    color:var(--ks-navy);
    font-family:Roboto,Arial,sans-serif;
}
.ks-home section {
    padding-block:0;
}
.ks-home h1,.ks-home h2,.ks-home h3 {
    font-family:Heebo,Arial,sans-serif;
    color:var(--ks-navy);
    letter-spacing:-.6px;
}
.ks-home h2 {
    font-size:32px;
    line-height:1.2;
    margin:0 0 4px;
    font-weight:700;
}
.ks-home h3 {
    font-size:18px;
    line-height:1.35;
}
.ks-home p {
    color:var(--ks-muted);
    line-height:1.5;
    margin:0;
}
.ks-home a,.ks-header a,.ks-footer a {
    text-decoration:none;
}
.ks-home a:not(.ks-button):hover,.ks-footer a:hover {
    color:var(--ks-blue);
}
.ks-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    background:linear-gradient(115deg,#0054ad,#0878d6);
    border:1px solid transparent;
    border-radius:6px;
    color:white!important;
    padding:12px 21px;
    font-size:14px;
    font-weight:500;
    line-height:1.3;
    white-space:nowrap;
    transition:background .18s,box-shadow .18s;
}
.ks-button:hover {
    background:#074986;
    box-shadow:0 4px 15px #003b7020;
}
.ks-button.ks-dark {
    background:linear-gradient(110deg,#004580,#07385d);
    font-size:12px;
    padding:11px 17px;
}
.ks-button.ks-coral {
    background:var(--ks-coral);
}
.ks-button.ks-coral:hover {
    background:#e94b32;
}
.ks-button.ks-outline {
    background:transparent;
    border-color:#5387bc;
    color:#064887!important;
}
.ks-header {
    background:#f9fcff;
    border-bottom:1px solid #e2edf4;
    position:relative;
    z-index:20;
}
.ks-nav {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:76px;
    gap:24px;
}
.ks-brand {
    display:flex;
    gap:10px;
    align-items:center;
    color:#084880!important;
    flex-shrink:0;
}
.ks-brand strong {
    display:block;
    font-family:Impact,'Arial Narrow',sans-serif;
    font-size:29px;
    letter-spacing:.3px;
    line-height:1.1;
    font-weight:500;
}
.ks-brand small {
    display:block;
    font-size:11px;
    line-height:1.4;
}
.ks-sail {
    width:46px;
    height:46px;
    display:block;
    color:#0063b5;
}
.ks-sail svg {
    width:100%;
    height:100%;
}
.ks-navigation {
    align-items:center;
    gap:24px;
    font-size:15px;
    font-weight:700;
}
.ks-navigation>a {
    color:var(--ks-navy);
}
.ks-navigation .ks-button {
    font-size:12px;
    padding:12px 16px;
}
.ks-nav-search {
    font-size:20px;
}
.ks-menu-toggle {
    background:transparent;
    border:0;
    color:var(--ks-navy);
    font-size:30px;
    display:none;
}
.ks-skip {
    position:fixed;
    left:10px;
    top:-100px;
    padding:12px;
    background:white;
    z-index:100;
}
.ks-skip:focus {
    top:10px;
}
.ks-home .ks-hero {
    position:relative;
    padding:45px 0 35px;
    color:#fff;
    background: linear-gradient(180deg, rgba(3,22,39,.05) 15%, rgba(3,22,39,.65) 45%, #06243cee 100%), url('../images/home/kapitani-hero.webp') center top/cover;
}
.ks-hero .ks-container {
    position:relative;
}
.ks-hero .ks-eyebrow {
    font-size:12px;
    letter-spacing:2px;
    color:#e7f5ff;
    margin-bottom:8px;
}
.ks-hero h1 {
    font-size:clamp(40px,5.1vw,68px);
    line-height:1.08;
    color:#fff;
    margin:0 0 9px;
    font-weight:700;
    letter-spacing:-1.8px;
}
.ks-hero .ks-hero-intro {
    font-size:22px;
    line-height:1.35;
    color:#fff;
}
.ks-search {
    display:grid;
    grid-template-columns:1fr 1fr 1.1fr 180px;
    max-width:1030px;
    margin:25px 0 28px;
    background:#fff;
    border:5px solid #e8f1f6;
    border-radius:12px;
    padding:4px;
    box-shadow:0 9px 24px #001d3730;
    scroll-margin-top:25px;
}
.ks-search>.ks-search-field {
    display:flex;
    align-items:center;
    gap:17px;
    padding:7px 16px;
    margin:0;
    border-right:1px solid var(--ks-border);
    min-width:0;
}
.ks-search>.ks-search-field>i {
    font-size:26px;
    color:var(--ks-blue);
}
.ks-search>.ks-search-field>span {
    display:block;
    min-width:0;
    flex:1;
}
.ks-search small {
    display:block;
    font-size:11px;
    color:#4d6c91;
    font-weight:600;
    margin-bottom:3px;
}
.ks-search select {
    width:100%;
    border:0;
    background:transparent;
    color:#526e91;
    font-size:14px;
    cursor:pointer;
    padding:3px 0;
    min-width:0;
}
.ks-date-fields {
    display:flex;
    gap:6px;
}
.ks-date-fields select:first-child {
    flex:1.4;
}
.ks-date-fields select {
    flex:1;
}
.ks-search>.ks-button {
    margin-left:6px;
    font-size:16px;
}
.ks-trust {
    display:flex;
    gap:55px;
}
.ks-trust>div {
    display:flex;
    gap:17px;
    align-items:center;
}
.ks-trust i {
    font-size:30px;
}
.ks-trust b,.ks-trust small {
    display:block;
}
.ks-trust b {
    font-size:14px;
}
.ks-trust small {
    font-size:12px;
    color:#e0edf7;
}
.ks-handwritten {
    position:absolute;
    right:5px;
    bottom:-8px;
    font-family:cursive;
    font-style:italic;
    font-size:34px;
    line-height:.9;
    transform:rotate(-12deg);
    text-align:center;
}
.ks-home .ks-section {
    padding-top:28px;
    scroll-margin-top:20px;
}
.ks-section-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:16px;
}
.ks-section-heading p {
    font-size:16px;
}
.ks-more {
    display:flex;
    align-items:center;
    gap:14px;
    color:var(--ks-blue);
    font-size:13px;
    white-space:nowrap;
    font-weight:500;
}
.ks-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}
.ks-card {
    overflow:hidden;
    background:#fff;
    border-radius:9px;
    box-shadow:0 6px 25px #245d8310;
    display:flex;
    flex-direction:column;
    border:1px solid #edf4f7;
    min-width:0;
}
.ks-card-media {
    position:relative;
    display:block;
    height:165px;
    flex-shrink:0;
    overflow:hidden;
}
.ks-card-media>a {
    display:block;
    height:100%;
}
.ks-card-media img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .3s;
}
.ks-card-media>a:hover img {
    transform:scale(1.035);
}
.ks-country {
    position:absolute;
    left:14px;
    top:12px;
    background:#133957c9;
    border-radius:6px;
    padding:4px 10px;
    color:#fff;
    font-size:12px;
    pointer-events:none;
}
.ks-favorite {
    position:absolute;
    right:10px;
    top:8px;
    border:0;
    background:#15375630;
    border-radius:50%;
    color:white;
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    font-size:23px;
}
.ks-favorite[aria-pressed=true] {
    background:#fff;
    color:var(--ks-coral);
}
.ks-card-body {
    padding:13px 20px 16px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    flex:1;
}
.ks-tag {
    background:#e7e6ff;
    border-radius:5px;
    color:#4446be;
    padding:3px 9px;
    font-size:11px;
    display:inline-block;
    margin:0 5px 8px 0;
}
.ks-tag.ks-sale {
    background:#ff674c;
    color:#fff;
}
.ks-card h3 {
    margin:0 0 10px;
    font-weight:700;
    letter-spacing:-.25px;
}
.ks-card h3 a {
    color:var(--ks-navy);
}
.ks-card-body>p {
    font-size:14px;
    margin-bottom:20px;
}
.ks-meta {
    padding:0;
    margin:0 0 14px;
    list-style:none;
    font-size:13px;
    color:#546782;
}
.ks-meta li {
    display:flex;
    gap:12px;
    align-items:center;
    margin-bottom:5px;
}
.ks-meta i {
    font-size:16px;
    color:#506c91;
}
.ks-meta .ks-available {
    color:#00857d;
}
.ks-soldout {
    color:#ad4d32;
}
.ks-card-bottom {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:9px;
    width:100%;
    margin-top:auto;
}
.ks-price {
    color:#fa4c30;
    line-height:1.3;
}
.ks-price strong {
    font-size:21px;
    font-weight:700;
    white-space:nowrap;
}
.ks-price small {
    font-size:13px;
}
.ks-price del {
    display:block;
    font-size:12px;
    color:var(--ks-muted);
}
.ks-home .ks-stats {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    padding-top:22px;
}
.ks-stats>div {
    display:flex;
    align-items:center;
    gap:22px;
    background:#fff;
    border-radius:8px;
    padding:16px 22px;
    box-shadow:0 4px 15px #245d8308;
}
.ks-stats i {
    font-size:38px;
    line-height:1;
    color:var(--ks-blue);
}
.ks-stats strong,.ks-stats small {
    display:block;
}
.ks-stats strong {
    font-size:18px;
    color:var(--ks-blue);
}
.ks-stats small {
    font-size:12px;
    color:var(--ks-muted);
}
.ks-rya {
    background:linear-gradient(#e3f2f855,#dceff355),url('../images/courses/42/grecko2.jpg') center/cover;
    height:145px;
}
.ks-rya img {
    object-fit:contain;
    padding:20px;
    width:100%;
}
#kurzy .ks-card-media {
    height:145px;
}
.ks-steps {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
    list-style:none;
    padding:0;
    margin:20px 0 5px;
}
.ks-steps li {
    display:flex;
    gap:16px;
    align-items:center;
    position:relative;
}
.ks-steps li>i {
    background:#fff;
    border-radius:50%;
    min-width:62px;
    height:62px;
    display:grid;
    place-items:center;
    font-size:28px;
    color:var(--ks-blue);
}
.ks-steps h3 {
    font-size:14px;
    letter-spacing:0;
    margin:0 0 4px;
}
.ks-steps p {
    font-size:13px;
}
.ks-home .ks-rental {
    display:grid;
    grid-template-columns:1fr 1.35fr;
    gap:36px;
    padding-top:45px;
}
.ks-rental p {
    font-size:14px;
    margin:10px 0 18px;
}
.ks-rental-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}
.ks-rental-card img {
    width:100%;
    height:94px;
    object-fit:cover;
}
.ks-rental-card h3 {
    font-size:13px;
    margin:10px 10px 4px;
    letter-spacing:0;
}
.ks-rental-card span {
    font-size:12px;
    color:#007f81;
    margin:0 10px 12px;
}
.ks-reviews {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}
.ks-reviews figure {
    margin:0;
    background:white;
    border-radius:9px;
    padding:18px;
    display:flex;
    gap:16px;
    box-shadow:0 4px 18px #245d8309;
}
.ks-review-avatar {
    display:grid;
    place-items:center;
    border-radius:50%;
    height:58px;
    min-width:58px;
    background:#e4f0f7;
    color:#23618e;
    font-size:19px;
}
.ks-stars {
    color:#ffa000;
    font-size:19px;
    letter-spacing:2px;
}
.ks-reviews blockquote {
    color:var(--ks-muted);
    font-size:13px;
    line-height:1.4;
    margin:5px 0 12px;
}
.ks-reviews figcaption {
    font-size:12px;
    color:var(--ks-muted);
}
.ks-reviews b {
    color:var(--ks-navy);
    margin-right:14px;
}
.ks-home .ks-partner {
    margin-top:28px;
    padding:30px 0;
    background:linear-gradient(90deg,transparent 18%,rgba(0,35,64,.18) 35%,rgba(0,35,64,.56) 65%),url('../images/home/kapitansk_web_dolny_baner_v2.webp') center 55%/cover;
    border-radius:9px;
}
.ks-partner .ks-container {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
}
.ks-partner h2 {
    color:white;
    font-size:29px;
}
.ks-partner p {
    color:#fff;
    font-size:14px;
    margin-top:8px;
}
.ks-footer {
    background:#f6fbfe;
    padding:26px 0 10px;
    color:var(--ks-muted);
    font-size:12px;
}
.ks-footer-grid {
    display:grid;
    grid-template-columns:1.8fr 1fr 1.2fr 1.1fr 1.2fr;
    gap:30px;
}
.ks-footer h3 {
    font-size:12px;
    color:var(--ks-navy);
    margin:0 0 9px;
}
.ks-footer a:not(.ks-brand) {
    display:block;
    color:#5f7899;
    line-height:1.8;
}
.ks-footer p {
    margin:12px 0;
}
.ks-footer .ks-brand strong {
    font-size:22px;
}
.ks-footer .ks-sail {
    width:35px;
    height:35px;
}
.ks-footer .ks-brand small {
    font-size:9px;
}
.ks-social {
    display:flex;
    gap:18px;
    font-size:17px;
}
.ks-footer .ks-social a {
    color:#00518b;
}
.ks-footer-bottom {
    display:flex;
    justify-content:space-between;
    border-top:1px solid var(--ks-border);
    padding-top:12px;
    margin-top:20px;
    font-size:11px;
}
.ks-footer-bottom span:last-child {
    color:var(--ks-blue);
    font-style:italic;
}
.ks-empty {
    padding:25px;
    grid-column:1/-1;
}
a:focus-visible,button:focus-visible,select:focus-visible {
    outline:3px solid #ffad38;
    outline-offset:4px;
}
@media(min-width:1280px) {
    .ks-navigation.collapse {
        display:flex!important;
    }
}
@media(max-width:1199px) {
    .ks-nav {
        flex-wrap:wrap;
        gap:0;
        min-height:70px;
        padding-block:12px;
    }
    .ks-menu-toggle {
        display:block;
    }
    .ks-navigation {
        width:100%;
        padding-top:15px;
    }
    .ks-navigation.show {
        display:flex;
        flex-wrap:wrap;
        padding-bottom:10px;
    }
    .ks-navigation>a {
        padding:8px;
    }
    .ks-trust {
        gap:30px;
    }
    .ks-handwritten {
        display:none;
    }
    .ks-card-bottom {
        flex-wrap:wrap;
    }
    .ks-stats>div {
        gap:13px;
        padding:15px;
    }
    .ks-stats strong {
        font-size:16px;
    }
    .ks-search {
        grid-template-columns:1fr 1fr 1.1fr 140px;
    }
    .ks-search>.ks-search-field {
        padding-inline:10px;
        gap:10px;
    }
    .ks-steps {
        gap:18px;
    }
    .ks-steps li {
        gap:10px;
    }
    .ks-steps li>i {
        min-width:48px;
        height:48px;
    }
    .ks-footer-grid {
        gap:20px;
    }
}
@media(max-width:767px) {
    .ks-container {
        width:calc(100% - 36px);
    }
    .ks-home h2 {
        font-size:26px;
    }
    .ks-home .ks-hero {
        padding:35px 0 25px;
        background-position:63% center;
    }
    .ks-hero h1 {
        font-size:44px;
    }
    .ks-hero .ks-hero-intro {
        font-size:18px;
    }
    .ks-search {
        grid-template-columns:1fr 1fr;
        gap:6px;
        margin-top:22px;
    }
    .ks-search>.ks-search-field {
        padding:9px;
    }
    .ks-search>.ks-search-field:nth-child(2) {
        border:0;
    }
    .ks-search>.ks-button {
        margin:0;
    }
    .ks-search>.ks-search-field>i {
        font-size:22px;
    }
    .ks-trust {
        gap:16px;
        justify-content:space-between;
    }
    .ks-trust>div {
        gap:7px;
        align-items:flex-start;
        flex:1;
    }
    .ks-trust i {
        font-size:23px;
    }
    .ks-trust b {
        font-size:11px;
    }
    .ks-trust small {
        font-size:10px;
    }
    .ks-section-heading {
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
    }
    .ks-section-heading p {
        font-size:14px;
    }
    .ks-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:16px;
    }
    .ks-grid .ks-card:last-child:nth-child(3) {
        grid-column:1/-1;
        max-width:calc(50% - 8px);
    }
    .ks-card-body {
        padding:13px;
    }
    .ks-card h3 {
        font-size:17px;
    }
    .ks-card-bottom {
        gap:12px;
    }
    .ks-home .ks-stats {
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }
    .ks-stats i {
        font-size:30px;
    }
    .ks-steps {
        grid-template-columns:1fr;
        gap:22px;
    }
    .ks-steps li {
    }
    .ks-steps li>i {
        min-width:58px;
        height:58px;
    }
    .ks-home .ks-rental {
        grid-template-columns:1fr;
        gap:20px;
        padding-top:30px;
    }
    .ks-rental-grid {
        gap:12px;
    }
    .ks-reviews {
        grid-template-columns:1fr;
    }
    .ks-partner .ks-container {
        align-items:flex-start;
        flex-direction:column;
    }
    .ks-partner h2 {
        font-size:26px;
    }
    .ks-footer-grid {
        grid-template-columns:repeat(2,1fr);
        gap:24px;
    }
    .ks-footer-grid>div:first-child {
        grid-column:1/-1;
        max-width:300px;
    }
    .ks-footer-bottom {
        gap:15px;
    }
    .ks-desktop-break {
        display:none;
    }
}
@media(max-width:479px) {
    .ks-hero h1 {
        font-size:38px;
    }
    .ks-grid {
        grid-template-columns:1fr;
    }
    .ks-grid .ks-card:last-child:nth-child(3) {
        grid-column:auto;
        max-width:none;
    }
    .ks-card-media {
        height:190px;
    }
    .ks-card-bottom {
        flex-wrap:nowrap;
    }
    .ks-search {
        grid-template-columns:1fr;
    }
    .ks-search>.ks-search-field {
        border-right:0;
        border-bottom:1px solid var(--ks-border);
    }
    .ks-search>.ks-button {
        min-height:47px;
    }
    .ks-trust small {
        display:none;
    }
    .ks-trust>div {
        align-items:center;
    }
    .ks-trust {
        gap:10px;
    }
    .ks-rental-grid {
        grid-template-columns:1fr;
    }
    .ks-rental-card {
        display:grid;
        grid-template-columns:110px 1fr;
    }
    .ks-rental-card img {
        grid-row:1/3;
        height:100%;
        min-height:90px;
    }
    .ks-rental-card h3 {
        margin-top:18px;
    }
    .ks-stats>div {
        gap:10px;
        padding:13px 10px;
    }
    .ks-stats strong {
        font-size:14px;
    }
    .ks-stats small {
        font-size:11px;
    }
    .ks-footer-bottom {
        flex-direction:column;
    }
}
@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto!important;
    }
    .ks-card-media img,.ks-button {
        transition:none;
    }
}

/* Compact search bar with consistent, keyboard-accessible option panels. */
.ks-search {
    border: 1px solid #dce7ef;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 6px 22px #002b4820;
    grid-template-columns: 1fr 1fr 1fr 180px;
}
.ks-search > .ks-search-field {
    position: relative;
    gap: 15px;
    padding: 7px 18px;
}
.ks-search > .ks-search-field > i { font-size: 25px; }
.ks-search small { margin-bottom: 1px; font-size: 11px; }
.ks-search select[hidden], .ks-select-panel[hidden] { display: none; }
.ks-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #526e91;
    font: inherit;
    font-size: 14px;
    text-align: left;
}
.ks-select-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-select-trigger i { font-size: 12px; color: #285a89; }
.ks-select-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.ks-search :focus-visible { outline: 2px solid #397fc0; outline-offset: 3px; border-radius: 4px; }
.ks-select-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: max(100%, 240px);
    max-height: 360px;
    overflow-y: auto;
    z-index: 40;
    padding: 8px;
    border: 1px solid #e0eaf2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 38px #062b4926;
    color: #143759;
}
.ks-option-group { display: grid; gap: 3px; }
.ks-option-group + .ks-option-group { border-top: 1px solid #e5edf3; margin-top: 8px; padding-top: 8px; }
.ks-option-group > strong { font-size: 11px; color: #718399; padding: 8px 10px; }
.ks-option-group button {
    border: 0;
    border-radius: 6px;
    padding: 10px 12px;
    background: transparent;
    color: #284660;
    font-size: 14px;
    text-align: left;
}
.ks-option-group button:hover { background: #f1f7fc; }
.ks-option-group button[aria-pressed="true"] { background: #eaf3fc; color: #0063bb; font-weight: 500; }
.ks-option-group button[aria-pressed="true"]::after { content: '✓'; float: right; margin-left: 15px; }
.ks-date-done { width: 100%; border: 0; background: #0867bf; color: #fff; border-radius: 6px; padding: 10px; margin-top: 10px; font-size: 13px; }
.ks-search > .ks-button { margin-left: 0; min-height: 54px; border-radius: 6px; }
.ks-handwritten { right: 20px; font-size: 28px; }
@media (max-width: 1199px) {
    .ks-search { grid-template-columns: 1fr 1fr 1fr 140px; }
    .ks-search > .ks-search-field { padding-inline: 12px; gap: 10px; }
}
@media (max-width: 767px) {
    .ks-search { grid-template-columns: 1fr 1fr; }
    .ks-select-panel { width: max(100%, 210px); }
    .ks-search-field:nth-child(2) .ks-select-panel { left: auto; right: 0; }
}
@media (max-width: 479px) {
    .ks-search { grid-template-columns: 1fr; }
    .ks-search > .ks-search-field { padding: 10px 12px; }
    .ks-select-panel { width: 100%; }
}

/* Original Kapitan / PapaSailor wordmark. */
.ks-brand.ks-brand-original {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    color: #0a4a8c !important;
}
.ks-original-wordmark {
    font-family: Impact, 'Arial Narrow', sans-serif;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: .5px;
    line-height: 1.25;
}
.ks-brand-dot { color: #f22800; }
.ks-original-wordmark .ks-brand-dot { font-size: 32px; font-weight: 600; }
.ks-brand-original small, .ks-footer .ks-brand-original small {
    font-size: 12px;
    line-height: 1.4;
    color: #6c757d;
}
.ks-brand-original small > span { color: #0a4a8c; }
.ks-header .ks-brand-original small { align-self: flex-end; }

.ks-card-media img.img-placeholder {
    object-fit: contain;
    padding: 20px;
    background: #edf5fa;
}

/* Reference layout: compact course and yacht offers, fine metadata and step arrows. */
.ks-country { display: inline-flex; align-items: center; gap: 6px; }
.ks-card-media .ks-country-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.ks-tag.ks-tag-country { color: #fff; background: #496075; }
.ks-course-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#kurzy .ks-card-body { padding-top: 8px; }
#kurzy .ks-card h3 { margin-bottom: 6px; }
#kurzy .ks-card-bottom { padding-top: 8px; }
.ks-steps li:not(:last-child)::after { content: '→'; position: absolute; right: -24px; color: #0873dc; font-size: 23px; font-weight: 400; }
.ks-home .ks-rental { grid-template-columns: 1fr 1.4fr; gap: 30px; padding-top: 40px; }
.ks-rental-intro h2 { font-size: 29px; }
.ks-rental-intro p { font-size: 14px; margin: 6px 0 16px; }
.ks-rental-intro .ks-button { font-size: 13px; }
.ks-rental-grid { gap: 20px; }
.ks-boat-card { border-radius: 7px; }
.ks-boat-image { position: relative; height: 84px; }
.ks-boat-image > a { display: block; height: 100%; }
.ks-boat-image img { width: 100%; height: 100%; object-fit: cover; }
.ks-boat-image img.img-placeholder { object-fit: contain; padding: 12px; background: #edf5fa; }
.ks-boat-image .ks-favorite { top: 4px; right: 4px; width: 29px; height: 29px; font-size: 18px; background: #15375620; }
.ks-boat-body { padding: 8px 10px 11px; }
.ks-boat-body h3 { font-size: 13px; letter-spacing: 0; margin: 0 0 7px; }
.ks-boat-specs { display: flex; flex-wrap: wrap; gap: 6px 13px; color: #657c9b; font-size: 11px; margin-bottom: 8px; }
.ks-boat-specs i { margin-right: 3px; }
.ks-home .ks-boat-price { color: #008078; font-size: 12px; font-weight: 500; }
.ks-rental-more { justify-content: flex-end; margin-top: 14px; font-size: 13px; }
.ks-boat-empty { grid-column: 1 / -1; background: white; border: 1px solid #e2edf4; border-radius: 8px; padding: 18px 22px; }
.ks-boat-empty > i { color: #0066ce; font-size: 25px; }
.ks-boat-empty p { margin: 4px 0 9px; }
.ks-boat-empty a { font-size: 13px; }
.ks-reviews figure { padding: 15px; gap: 13px; }
.ks-home #recenzie { padding-top: 24px; }
.ks-partner .ks-container { min-height: 80px; }
@media (max-width: 1199px) { .ks-steps li:not(:last-child)::after { right: -16px; } .ks-rental-grid { gap: 12px; } }
@media (max-width: 767px) {
    .ks-steps li:not(:last-child)::after { display: none; }
    .ks-home .ks-rental { grid-template-columns: 1fr; gap: 18px; }
    .ks-rental-intro h2 { font-size: 26px; }
}
@media (max-width: 479px) {
    .ks-rental-grid { grid-template-columns: 1fr; }
    .ks-boat-card { display: grid; grid-template-columns: 120px 1fr; }
    .ks-boat-image { height: 100%; min-height: 105px; }
    .ks-boat-body { padding: 14px; }
}

/* Full-width background transition after the three booking steps. */
.ks-home #ako-to-funguje {
    padding-bottom: 28px;
}
.ks-home-light {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
    padding-bottom: 28px;
}
.ks-home .ks-partner {
    margin-top: 0;
}

/* Supplied homepage banners: leave room for the captain on the left. */
.ks-home .ks-partner { padding-block: 38px; }
.ks-partner .ks-container { padding-left: min(25vw, 340px); min-height: 140px; }
.ks-partner h2 { font-size: 26px; }
.ks-partner .ks-desktop-break { display: none; }
.ks-partner .ks-button { flex-shrink: 0; }
@media (max-width: 1199px) and (min-width: 768px) {
    .ks-partner .ks-container { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 767px) {
    .ks-home .ks-partner {
        padding-block: 150px 28px;
        background-image: linear-gradient(180deg,transparent,rgba(0,35,64,.88) 65%),url('../images/home/kapitansk_web_dolny_baner_v2.webp');
        background-position: 28% center;
    }
    .ks-partner .ks-container { padding-left: 0; min-height: 0; }
}

/* Homepage booking guide and course catalogue action. */
#kurzy .ks-course-browse { justify-content: flex-end; }
.ks-home .ks-booking {
    margin: 12px 0 32px;
    padding: 28px 30px;
    border-radius: 10px;
    background: #082f50;
    color: #d3e3ee;
}
.ks-booking-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ks-home .ks-booking h2 { color: #fff; margin: 0 0 4px; font-size: 28px; }
.ks-booking-heading p { margin: 0; color: #c0d4e3; font-size: 15px; }
.ks-booking-link { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-size: 14px; padding: 10px 0; border-bottom: 1px solid #7999b0; white-space: nowrap; }
.ks-booking-link:hover { color: #fff; border-color: #ff6248; }
.ks-booking-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid #ffffff30; }
.ks-booking-steps li { display: flex; align-items: flex-start; gap: 14px; }
.ks-step-number { color: #ff8069; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.ks-home .ks-booking-steps h3 { color: #fff; margin: 0 0 7px; font-size: 17px; }
.ks-booking-steps p { margin: 0; font-size: 14px; line-height: 1.6; }
.ks-booking a:focus-visible { outline: 2px solid #ff8069; outline-offset: 5px; }
@media (max-width: 767px) {
    .ks-home .ks-booking { padding: 24px 20px; }
    .ks-booking-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .ks-home .ks-booking h2 { font-size: 25px; }
    .ks-booking-steps { grid-template-columns: 1fr; gap: 22px; margin-top: 20px; padding-top: 20px; }
    .ks-step-number { min-width: 38px; font-size: 30px; }
}

/* Supplied Jachtar creative retains its full artwork at every viewport size. */
.ks-jachtar-ad { max-width: 970px; margin: 0 auto 32px; }
.ks-ad-label { display: block; margin-bottom: 5px; color: #657c9b; font-size: 11px; }
.ks-jachtar-ad a { display: block; border-radius: 8px; overflow: hidden; }
.ks-jachtar-ad img { display: block; width: 100%; height: auto; }
.ks-jachtar-ad a:focus-visible { outline: 3px solid #0066ce; outline-offset: 4px; }

/* Give navigation links room without squeezing the brand or actions. */
.ks-header .ks-container { width: min(1320px, calc(100% - 48px)); }
.ks-nav { min-height: 84px; }
.ks-navigation > a { white-space: nowrap; }
.ks-navigation > a:not(.ks-button) { padding-block: 13px; position: relative; }
.ks-navigation > a:not(.ks-button):not(.ks-nav-search)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 5px;
    height: 2px; background: #0066ce; transform: scaleX(0);
    transition: transform .15s ease;
}
.ks-navigation > a:not(.ks-button):hover { color: #0066ce; }
.ks-navigation > a:not(.ks-button):hover::after,
.ks-navigation > a:not(.ks-button):focus-visible::after { transform: scaleX(1); }
.ks-navigation .ks-button { font-size: 13px; font-weight: 600; }
@media (max-width: 1279px) {
    .ks-nav { flex-wrap: wrap; gap: 0; min-height: 76px; padding-block: 12px; }
    .ks-menu-toggle { display: block; }
    .ks-navigation { width: 100%; padding-top: 16px; gap: 10px 24px; }
    .ks-navigation.show { display: flex; flex-wrap: wrap; padding-bottom: 12px; }
    .ks-navigation > a:not(.ks-button) { padding: 12px 8px; }
}
@media (max-width: 575px) {
    .ks-header .ks-container { width: calc(100% - 32px); }
    .ks-navigation.show { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
    .ks-navigation > a { white-space: normal; }
    .ks-navigation .ks-button { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .ks-navigation > a:not(.ks-button)::after { transition: none; }
}

/* Quiet dividers for desktop links; action icons remain visible on mobile. */
.ks-navigation .ks-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.ks-navigation .ks-button i { font-size: 16px; line-height: 1; }
@media (min-width: 1280px) {
    .ks-navigation > a:not(.ks-button):not(.ks-nav-search) + a:not(.ks-button):not(.ks-nav-search)::before {
        content: ''; position: absolute; left: -12px; top: 50%;
        width: 1px; height: 14px; background: #cbdce9; transform: translateY(-50%);
    }
    .ks-navigation .ks-nav-search {
        display: inline-flex; align-items: center; justify-content: center;
        width: 38px; height: 38px; padding: 0; border-radius: 50%;
        background: #eaf2f9; color: #084880; flex-shrink: 0;
    }
    .ks-navigation .ks-nav-search:hover { background: #dcebf7; }
}

/* Keep faces above the hero copy; retain the full group on small screens. */
.ks-home .ks-hero { padding-top: 185px; background-color: #06243c; }
@media (max-width: 767px) {
    .ks-home .ks-hero {
        padding-top: max(150px, 34vw);
        background-position: center top;
        background-size: 100% 43vw, 100% auto;
        background-repeat: no-repeat;
        background-image: linear-gradient(180deg, transparent 45%, #06243c 100%), url('../images/home/kapitani-hero.webp');
    }
}
