* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    --grey: #333;
    --light-grey: #cccccc;
    --lighter-grey: #f1f1f1;
    --light-red: #d40000;
    --red: #b30000;
    --font-size-h1: clamp(2.5rem, 3vw + 1rem, 3.5rem);
    --font-size-h2: clamp(1.75rem, 1.5vw + 1rem, 2rem);;
    --font-size-h3: clamp(1.25rem, 1vw + 1rem, 1.5rem);
    --font-size-p: clamp(1rem, 0.9vw + 0.5rem, 1.125rem);
}

/******

logo-container

******/

.logo-container {
    /* background-color: #f1f1f1; */
    background: url(https://www.ksiltovky.cz/img/header-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.logo-container img {
    height: 160px;
}

.logo-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-decoration: none;
    padding: 15px;
    color: #333;
}

.logo-container p {
    font-family: 'Garamond', serif;
    font-size: 95px;
}

.white-logo {
    display: none;
}

/******

header-container

******/

.header-container {
    position: relative;
    z-index: 1000;
}

.menu-nav {
    display: flex;
    align-items: center;
    background-color: #d40000;
    height: 45px;
    justify-content: space-between;
    width: 100%;
}

nav li {
    display: inline-block;
    list-style-type: none;
    margin-right: 20px;
}

nav li a {
    text-decoration: none;
    color: #f1f1f1;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    font-size: 19px;
    position: relative;
    text-decoration: none;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #cccccccc;
    transition: width 0.4s ease, left 0.4s ease;
}

nav ul li a:hover::after {
    width: 80%;
    left: 10%;
}

nav li a:hover {
    color: #cccccccc;
}

.menu-icon {
    display: none;
}

/******

lang-selector

******/

.lang-selector {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.lang-selector a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.lang-selector a img {
    height: 30px;
    transition: transform 0.3s ease;
}

.lang-selector a img:hover {
    transform: scale(1.05);
}

/******

sociální sítě

******/

.social-media {
    display: flex;
    margin-right: 15px;
    gap: 10px;
    align-items: center;
}

.social-media a {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.05);
}

.social-media a img {
    height: 30px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #CCCCCC;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.3s ease;
    white-space: nowrap; /* Zabrání zalamování čísla na dva řádky */
    margin-right: 15px;
}

.header-phone i {
    font-size: 15px;
}

.header-phone img {
    height: 25px !important;
}

.header-phone:hover {
    color: #cccccc;
}

.active {
    color: #cccccc;
}

.lang-hide {
    pointer-events: none;
    opacity: 0;
    user-select: none;
    filter: grayscale(100%);
}@media (max-width: 1600px) {
    .social-media {
        display: none;
    }
}

@media (max-width: 1450px) {


    .header-container {
        justify-content: center;
        position: relative;
        background-color: #d40000;
        height: 45px;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
        color: white;
        margin-right: 20px;
        font-size: 28px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
    }

    .menu-nav {
        display: none;
        position: absolute;
        top: 44px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background-color: #d40000;
        height: auto;
        padding: 10px 0;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    nav {
        margin-top: 10px;
        order: -1;
    }

    nav li {
       display: block; 
       margin-bottom: 10px;
       margin-right: 0;
    }

    .lang-selector {
        gap: 0;
        margin: 0;
    }

    .lang-selector img {
        transform: scale(0.8);
    }

    .social-media {
        margin: 0;
        gap: 5px;
    }

    .logo-container p {
        font-size: 75px;
    }

    .logo-container img {
        height: 120px;
    }

}

@media (max-width: 1150px) {
    .logo-container {
        display: none;
    }

    .header-container {
        height: 80px !important;
    }

    .white-logo {
        display: block;
        height: 65px;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-nav {
        top: 80px;
    }

    main {
        min-height: calc(100vh - 80px) !important;
    }
}

@media (min-width: 1450px) {
    .menu-nav {
        display: flex !important;
    }

    .lang-selector {
        display: flex !important;
    }

    .social-media {
        display: flex !important;
    }

    nav {
        display: flex !important;
    }

    .menu-icon {
        display: none !important;
    }
}

@media (max-width: 1500px) and (min-width: 1450px) {
    .header-phone {
        display: none !important;
    }
}footer {
    background-color: #1a1a1a;
    color: #fff;
    font-family: sans-serif;
    border-top: 4px solid #d30000;
    padding-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

/* Jemná červená linka pod nadpisy sloupců */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #d30000;
}

.footer-col p, .footer-col li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 8px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 90px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-slogan {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 4px;
}

.footer-container a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.2s ease;
}

.footer-container a:hover {
    color: #d30000;
}

.footer-link-more {
    display: inline-block;
    margin-top: 8px;
    color: #d30000 !important;
    font-weight: bold;
    font-size: 0.9rem;
}

.footer-link-more:hover {
    text-decoration: underline;
}

.footer-phone {
    margin-top: 10px;
    font-weight: bold;
}

.footer-phone a {
    color: #fff;
    font-size: 1.05rem;
}

.footer-phone a:hover {
    color: #d30000;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 8px;
}

/* Spodní copyright lišta */
.footer-bottom {
    background-color: #111;
    padding: 20px 20px;
    border-top: 1px solid #2a2a2a;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
    }
}

.comgate {
    color: #777;
    font-size: 0.8rem;
}

/* Cookie lišta sladěná s patičkou */
#cookie-lista {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    z-index: 10000;
    display: none;
    font-family: sans-serif;
    border-top: 4px solid #d30000;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-button-true {
    background: #d30000;
    color: white;
    border: none;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.2s;
}

.cookie-button-true:hover {
    background: #b50000;
}

.cookie-button-false {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.cookie-button-false:hover {
    background: #444;
}

main {
    min-height: calc(100vh - 200px);
}@media (max-width: 900px) {
    footer img {
        width: 90%;
    }
}/* --- SEKCE 1: ÚVOD (.onas-intro) --- */
.onas-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: calc(80vh - 80px);
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
    box-sizing: border-box;
}

.onas-left {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeIn 0.8s ease-out forwards;
}

.onas-heading {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.onas-left h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    color: #990000;
    font-weight: 700;
    line-height: 1.2;
}

.onas-left img {
    height: 50px;
    width: auto;
}

.onas-left p {
    margin-bottom: 25px;
    color: #444;
}

.onas-cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #D40000;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(212, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #990000;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #1A1A1A;
    border: 2px solid #1A1A1A;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #1A1A1A;
    color: #ffffff;
    transform: translateY(-2px);
}

.scroll {
    color: #990000;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.scroll:hover {
    text-decoration: underline;
}

.scroll::after {
    content: '↓';
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.scroll:hover::after {
    transform: translateY(4px);
}

html {
    scroll-behavior: smooth;
}

/* Pravá mřížka s 4 boxy */
.onas-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 24px;
    padding: 0;
}

.onas-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
    animation: fadeIn 0.8s ease-out forwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.onas-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.onas-box h2 {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #1A1A1A;
    font-weight: 600;
}

.onas-box h2::after {
    display: none; /* Odstraněna stará animovaná čára ve prospěch čistšího boxového designu */
}

.onas-box img {
    height: 24px;
    width: auto;
    margin-right: 12px;
}

.onas-box p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* end */

.focus-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
    width: 100vw;
    padding: 200px 15vw;
    max-width: 100%;
    background-color: #cccccc;
}
  
.focus-item {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 2/3;
    border-radius: 5px;
    overflow: hidden;
}
  
.focus-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
    animation: fadeIn 2s ease-out;
    display: block;
    z-index: 0;
    position: relative;
}
 
.focus-item:hover img {
    transform: scale(1.2);
}
  
.focus-item h3 {
    position: absolute;
    bottom: 15%;
    left: 10%;
    color: white;
    font-size: clamp(1.2rem, 2vw, 3rem);
    font-weight: bold;
    transition: transform 0.5s ease;
    z-index: 2;
}
  
.focus-item:hover h3 {
    transform: translateY(-150%);
}
  
.focus-item p {
    position: absolute;
    bottom: 25%;
    left: 10%;
    color: white;
    font-size: clamp(0.9rem, 1vw, 2rem);
    opacity: 0;
    visibility: hidden;
    line-height: 1.5;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
  
.focus-item:hover p {
    opacity: 1;
    visibility: visible;
    transition: opacity 2s ease, visibility 1s linear 0s;
}

.focus-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.focus-item h3,
.focus-item p {
    position: relative;
    z-index: 2;
}

.focus-item svg {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    color: white;
    opacity: 0.9;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.focus-item:hover svg {
    background: #D40000;
    transform: scale(1.05);
}

.partners-ticker {
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    overflow: hidden;
    width: 100%;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.ticker-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    white-space: nowrap;
    margin-right: 40px;
    position: relative;
    display: none;
}

@media (min-width: 992px) {
    .ticker-label {
        display: block;
    }
    .ticker-label::after {
        content: '';
        position: absolute;
        right: -25px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 20px;
        background-color: #ccc;
    }
}

.ticker-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 60px;
    will-change: transform;
    animation: scrollTicker 30s linear infinite;
}

.ticker-container:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticker-item img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.ticker-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

@keyframes underline-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}


/* --- RESPONSIVITA PRO MOBILY A TABLETY --- */
@media (max-width: 1024px) {
    .onas-intro {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 40px 20px;
        min-height: auto;
    }

    .onas-left {
        padding: 0;
        text-align: center;
        align-items: center;
    }

    .onas-heading {
        justify-content: center;
    }

    .onas-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .onas-right {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .onas-left h1 {
        font-size: 1.7rem;
    }
}@media (max-width: 850px) {

    .focus-wrapper {
        grid-template-columns: 1fr;
        padding: 100px 10vw;
    }

    .focus-item h3 {
        font-size: 24px;
    }

    .focus-item p {
        bottom: 19%;
        font-size: 18px;
    }
}