/* 662.cz / 662.cloud – Tecz index-4 overrides (červená #d90a2c) */

:root {
    --dc662-red: #d90a2c;
    --dc662-red-dark: #b00824;
    --dc662-gray: #6B7280;
    --dc662-blue: #1E3A8A;
}

/* Globálně červená místo modré v šabloně */
.dc662-template-4 {
    --tp-theme-primary: var(--dc662-red);
}

.dc662-template-4 .tp-btn-red,
.dc662-template-4 .tp-section-red .tp-section-sub-title {
    --tp-theme-primary: var(--dc662-red);
}

.dc662-template-4 .tp-btn-red {
    background-color: var(--dc662-red);
}

.dc662-template-4 .tp-header-btn .tp-btn-red:hover {
    background-color: var(--dc662-red-dark);
}

.dc662-lang-switcher .dc662-lang-switch.is-active {
    background: var(--dc662-red);
    border-color: var(--dc662-red);
    color: #fff;
}

/* Logo – bez černého boxu (JPEG značí černé → průhledné přes blend, nebo PNG po process-logo) */
.dc662-template-4 .logo {
    background: transparent !important;
}

.dc662-template-4 .logo a {
    display: inline-block;
    background: transparent;
}

.dc662-template-4 .logo img,
.dc662-template-4 .offcanvas__logo img {
    max-height: 58px;
    width: auto;
    height: auto;
    background: transparent;
}

.dc662-footer-logo {
    max-width: 200px;
    max-height: 62px;
    width: auto;
    height: auto;
    background: transparent;
}

/* —— Hero slider (červený kruh) —— */
.dc662-template-4 .tp-slider-2-wrap,
.dc662-template-4 .tp-slider-2-wrap-bland {
    position: relative;
    z-index: 2;
    max-width: 420px;
    padding-left: 2.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.dc662-template-4 .tp-slider-2-contact {
    position: relative;
    z-index: 2;
}

.dc662-template-4 .tp-slider-2-wrap .tp-section-sub-title {
    color: #fff;
    padding-left: 15px;
}

.dc662-template-4 .tp-slider-2-wrap .tp-section-sub-title::before {
    background-color: #fff;
}

.dc662-template-4 .tp-slider-2-title {
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.dc662-template-4 .dc662-hero-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 100%;
    margin: 0 0 1.5rem;
    opacity: 1;
}

.dc662-template-4 .tp-slider-2-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.dc662-template-4 .tp-slider-2-btn .tp-btn-border {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    padding: 0.65rem 1.5rem;
}

.dc662-template-4 .tp-slider-2-btn .tp-btn-border:hover {
    background: #fff;
    color: var(--dc662-red);
    border-color: #fff;
}

@media only screen and (min-width: 1400px) {
    .dc662-template-4 .tp-slider-2-wrap,
    .dc662-template-4 .tp-slider-2-wrap-bland {
        max-width: 460px;
    }

    .dc662-template-4 .tp-slider-2-title {
        font-size: clamp(2rem, 2.8vw, 3rem);
    }
}

@media (max-width: 991px) {
    .dc662-template-4 .tp-slider-2-wrap,
    .dc662-template-4 .tp-slider-2-wrap-bland {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* —— Obsah —— */
.dc662-about-content p:last-child {
    margin-bottom: 0;
}

.dc662-map-embed {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.dc662-lang-switcher .dc662-lang-switch {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.dc662-footer-html a {
    color: #aea8b9;
    text-decoration: underline;
}

.dc662-footer-html a:hover {
    color: var(--dc662-red);
}

.dc662-template-4 #loading .tp-preloader-logo img {
    max-width: 64px;
    height: auto;
    background: transparent;
}

.dc662-template-4 #loading .tp-preloader-circle circle:last-child {
    stroke: var(--dc662-red);
}

/* Patička – tmavé pozadí index-4 */
.dc662-template-4 .tp-footer-red .tp-copyright-text,
.dc662-template-4 .tp-footer-red .dc662-footer-html {
    color: #aea8b9;
}

.dc662-template-4 .tp-footer-red .tp-footer-widget-link ul li a {
    color: #aea8b9;
}

.dc662-template-4 .tp-footer-red .tp-footer-widget-link ul li a:hover {
    color: var(--dc662-red);
}

.dc662-template-4 .tp-footer-red .tp-footer-widget-content-list-item i {
    color: var(--dc662-red);
}

/* —— Proužky výhod (ikony pod službami) —— */
.dc662-feature-strip .tp-feature-4-item {
    position: relative;
}

.dc662-feature-strip .tp-feature-4-item-icon {
    transform: none;
    margin-bottom: 1.25rem;
}

.dc662-feature-strip .tp-feature-4-item-icon i {
    color: #fff;
    font-size: 44px;
    height: 96px;
    width: 96px;
    line-height: 96px;
    text-align: center;
    background-color: var(--dc662-red);
    border-radius: 50%;
    display: inline-block;
    border: 6px solid #f5f5f5;
    box-shadow: 0 8px 24px rgba(217, 10, 44, 0.18);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.dc662-feature-strip .tp-feature-4-item:hover .tp-feature-4-item-icon i {
    background-color: var(--dc662-red-dark);
    transform: translateY(-4px);
}

.dc662-feature-strip .tp-feature-4-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tp-theme-secondary, #0f0d1d);
    margin-bottom: 0.75rem;
}

.dc662-feature-strip .tp-feature-4-content p {
    color: var(--dc662-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* —— Sekce bezpečnost / obrázek + text —— */
.dc662-benefits {
    position: relative;
    overflow: visible;
}

.dc662-benefits-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

.dc662-benefits-media {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 260px;
}

.dc662-benefits-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    object-position: center;
}

.dc662-benefits-card {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dc662-benefits-card .tp-section-title-wrapper p {
    color: #4b5563;
}

@media (min-width: 992px) {
    .dc662-benefits-panel {
        grid-template-columns: minmax(0, 58%) minmax(0, 50%);
        grid-template-rows: 1fr;
        min-height: 380px;
    }

    .dc662-benefits-media {
        grid-column: 1 / 3;
        grid-row: 1;
        min-height: 380px;
    }

    .dc662-benefits-img {
        min-height: 380px;
    }

    .dc662-benefits-card {
        grid-column: 2;
        grid-row: 1;
        margin-left: -3rem;
        margin-right: 0;
        align-self: center;
    }
}

@media (max-width: 991px) {
    .dc662-benefits-card {
        margin-top: -2.5rem;
    }
}

/* WOW po animaci nesmí měnit vrstvení */
.dc662-benefits-card.wow {
    visibility: visible !important;
    animation-fill-mode: both;
}

.dc662-benefits-media,
.dc662-benefits-img {
    transform: none !important;
    z-index: 1;
}
