/* --- HERO --- */
.subpage-hero {
    background: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    height: 250px;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 0;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.subpage-hero h1 {
    position: relative;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    /* Reset margin */
    text-align: center;
    /* Center align for safety */
    width: 100%;
}

/* --- SEARCH STRIP (Moderní) --- */
.availability-strip {
    background-color: #222;
    padding: 45px 0;
    color: #fff;
    border-bottom: 4px solid var(--tkc-blue);
    position: relative;
    z-index: 5;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.availability-strip:hover {
    background-color: var(--tkc-blue);
    box-shadow: 0 10px 30px rgba(36, 125, 218, 0.3);
}

.strip-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.strip-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.strip-text span {
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.pulse-icon {
    color: #4cc9f0;
    font-size: 1.5rem;
    transition: transform 0.4s;
}

.availability-strip:hover .pulse-icon {
    transform: scale(1.4);
    color: #fff;
}

.modern-form {
    display: flex;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.3s;
    background: #fff;
    padding: 3px;
}

.modern-form:hover {
    transform: translateY(-2px);
}

.modern-form input {
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: #333;
    font-weight: 500;
}

.input-street {
    min-width: 280px;
    border-right: 1px solid #eee;
}

.input-number {
    width: 90px;
    text-align: center;
}

.modern-form button {
    background: var(--tkc-blue);
    color: #fff;
    border: none;
    padding: 0 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 40px;
    margin-left: 5px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.availability-strip:hover .modern-form button {
    background: #0b2e59;
}

/* --- TECH INFO --- */
.section-tech {
    padding: 50px 0;
}

.tech-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background: #f9f9f9;
    padding: 30px;
    margin-bottom: 30px;
}

.tech-img {
    flex: 0 0 350px;
    text-align: center;
}

.tech-img img {
    max-width: 100%;
    height: auto;
}

.tech-text h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.tech-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* --- GRID TABLE (Tarify) --- */
.voip-grid-table {
    display: grid;
    grid-template-columns: 220px 1fr 1fr 1fr 1fr;
    width: 100%;
    margin-top: 50px;
    border-top: 2px solid #ddd;
}

.v-cell {
    padding: 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    color: #555;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #eee;
}

/* ... předchozí styly ... */

.v-label {
    /* ZMĚNA: Nastavíme směr pod sebe */
    display: flex;
    flex-direction: column;
    /* Texty budou pod sebou */
    justify-content: center;
    /* Vertikálně na střed buňky */
    align-items: flex-end;
    /* Zarovnání doprava */

    text-align: right;
    padding-right: 20px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    /* Příjemnější řádkování */
}

.v-label strong {
    display: block;
    font-weight: 800;
    margin-top: 4px;
    /* Malá mezera mezi řádky */
    color: #000;
}

/* ... zbytek stylů ... */

.header-arrow {
    background-color: transparent;
    padding: 0;
    border: none;
    align-items: center;
    justify-content: flex-end;
}

.arrow-content {
    background: var(--tkc-blue);
    color: #fff;
    padding: 10px 30px 10px 10px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
    width: 100%;
    text-align: right;
}

.v-head {
    flex-direction: column;
    padding: 25px 10px;
    height: 120px;
    justify-content: center;
}

.v-head h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--tkc-blue);
}

.v-head span {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

.bg-dark {
    background-color: #2d3e50 !important;
}

.bg-dark h3,
.bg-dark span {
    color: #fff !important;
}

.bg-gray {
    background-color: #f9f9f9;
}

.bg-light {
    background-color: #ffffff;
}

/* Kontakt pod tabulkou */
.voip-contact-wrapper {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.contact-box-row {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.contact-btn {
    background-color: #2d3e50;
    color: #fff;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.contact-btn:hover {
    background-color: var(--tkc-blue);
}

.tech-note-voip {
    color: #999;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.6;
}

/* Hardware */
.hardware-card {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.hw-img {
    flex: 0 0 250px;
    text-align: center;
    position: relative;
}

.award-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #d00;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
}

.hw-info h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 15px;
}

.hw-price {
    font-size: 2rem;
    color: var(--tkc-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.hw-price .vat {
    font-size: 1rem;
    color: #999;
    font-weight: normal;
}

/* Info tabulky */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.info-box h3,
.special-numbers-wrapper h3 {
    font-size: 1.4rem;
    color: var(--tkc-blue);
    margin-bottom: 20px;
    font-weight: 700;
    border-left: 4px solid var(--tkc-blue);
    padding-left: 15px;
}

.clean-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.clean-table th {
    background: #333;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
}

.clean-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.clean-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.green-text {
    color: #28a745;
    font-weight: bold;
}

.buttons-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.large-btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 5px;
}

/* Speciální čísla (Moderní tabulka) */
.modern-blue-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.modern-blue-table thead tr {
    background-color: #1a73e8;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
}

.modern-blue-table th,
.modern-blue-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modern-blue-table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Modál pro mezinárodní hovory */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-overlay.open {
    display: flex !important;
}

.modal-content {
    background-color: #fff;
    width: 95%;
    max-width: 1000px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    padding: 0;
    border-radius: 8px;
    max-height: 95vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: #333;
    cursor: pointer;
    z-index: 20;
}

.order-form {
    padding: 40px 50px;
}

.form-title {
    font-size: 1.8rem;
    color: var(--tkc-blue);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Styl pro zvýrazněný text */
.highlight-line {
    color: var(--tkc-blue);
    font-weight: 700;
    border-bottom: 2px solid var(--tkc-blue);
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 15px;
}

/* --- STYLY PRO MODÁL MEZINÁRODNÍHO HOVORNÉHO --- */
.search-bar-container {
    margin-bottom: 20px;
    position: relative;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.search-bar-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.1rem;
}

.search-bar-container input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background-color: #f9f9f9;
    transition: all 0.3s;
}

.search-bar-container input:focus {
    background-color: #fff;
    border-color: var(--tkc-blue);
    box-shadow: 0 0 10px rgba(36, 125, 218, 0.1);
}

/* --- BOČNÍ PANEL DOSTUPNOSTI --- */
.side-availability {
    position: fixed;
    top: 30%;
    right: -320px;
    z-index: 999;
    transition: right 0.4s ease;
    display: flex;
    align-items: flex-start;
}

.side-availability:hover {
    right: 0;
}

.side-toggle {
    background-color: var(--tkc-blue);
    color: #fff;
    padding: 15px 10px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.side-toggle i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.side-toggle span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.side-content {
    width: 320px;
    background-color: #fff;
    padding: 25px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--tkc-blue);
}

.side-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2rem;
}

.side-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.side-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.side-form button {
    background-color: var(--tkc-blue);
    color: #fff;
    border: none;
    padding: 10px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.side-form button:hover {
    background-color: #1a5c9e;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ======================================================
   FINÁLNÍ RESPONZIVITA - TELEFON (Vložte na konec styleTelefon.css)
   ====================================================== */

@media (max-width: 991px) {

    /* --- 1. HERO A LIŠTA --- */
    .subpage-hero {
        height: 200px;
        align-items: flex-end;
        padding-bottom: 20px;
        background-position: center;
    }

    .subpage-hero h1 {
        font-size: 2rem;
        margin-bottom: 0;
        padding: 0 10px;
        line-height: 1.1;
    }

    .availability-strip {
        padding: 20px 15px;
        margin-top: -1px;
    }

    .strip-content {
        gap: 15px;
        flex-direction: column;
        text-align: center;
    }

    .strip-text {
        font-size: 1rem;
    }

    .pulse-icon {
        display: none;
    }

    .modern-form {
        width: 100%;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .modern-form input {
        border-right: none;
        border-bottom: 1px solid #eee;
        text-align: center;
        width: 100%;
        padding: 12px;
    }

    .modern-form button {
        width: 100%;
        margin: 0;
        border-radius: 0 0 50px 50px;
        justify-content: center;
        padding: 15px;
    }


    /* --- 2. TABULKA CENÍKU (OPRAVA POSUNU) --- */
    .voip-grid-table {
        display: grid;
        /* První sloupec 110px, zbytek min 120px */
        grid-template-columns: 110px repeat(4, minmax(120px, 1fr));
        overflow-x: auto;
        width: 100%;
        margin-top: 30px;
        border: 1px solid #ddd;
        position: relative;
        padding-bottom: 5px;
    }

    /* LEVÝ HORNÍ ROH (Dříve skrytý, teď "Prázdný držák místa") */
    /* Toto opraví ten posun - vytvoří prázdnou buňku vlevo nahoře */
    .header-arrow {
        display: block !important;
        position: sticky;
        left: 0;
        top: 0;
        z-index: 20;
        /* Nad vším */
        background: #fff;
        /* Bílé pozadí */
        border-right: 2px solid #ddd;
        border-bottom: 1px solid #ddd;
        min-height: 90px;
        /* Musí mít stejnou výšku jako hlavičky tarifů (.v-head) */
    }

    /* Schováme ten divný tvar šipky uvnitř, necháme jen bílý box */
    .arrow-content {
        display: none;
    }


    /* POPISKY ŘÁDKŮ (Levý sticky sloupec) */
    .v-label {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: #f9f9f9;
        border-right: 2px solid #ddd;

        /* Zarovnání vlevo pro mobil */
        align-items: flex-start;
        text-align: left;
        padding-left: 10px;
        font-size: 0.8rem;
    }

    /* Hlavičky tarifů (VOIP A, B...) */
    .v-head {
        padding: 10px 5px;
        height: auto;
        min-height: 90px;
        /* Stejná výška jako header-arrow */
        justify-content: center;
    }

    .v-head h3 {
        font-size: 1.2rem;
    }

    .v-cell {
        padding: 10px 5px;
        font-size: 0.9rem;
        min-height: 60px;
        background: #fff;
    }

    /* Kontakt box */
    .contact-box-row {
        flex-direction: column;
        gap: 15px;
    }

    .voip-contact-wrapper {
        padding: 30px 15px;
    }


    /* --- 3. HARDWARE A ZBYTEK --- */
    .hardware-card {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        gap: 20px;
    }

    .hw-img {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        flex: 0 0 auto;
    }

    .hw-info h3 {
        font-size: 1.4rem;
    }

    .hw-price {
        justify-content: center;
        font-size: 1.8rem;
    }

    .buttons-row {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .large-btn {
        width: 100%;
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .modern-blue-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }

    .modern-blue-table th,
    .modern-blue-table td {
        padding: 12px 10px;
    }

    .tech-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .tech-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .tech-text {
        text-align: center;
    }
}

/* --- 6. ÚPRAVA MODÁLU (Finální oprava) --- */

.modal-content {
    padding: 0 !important;
    width: 95%;
    /* Šířka okna */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.order-form {
    padding: 20px 15px 30px 15px !important;
}

/* Nadpis */
.form-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

/* --- LUPA (Posunuta výše) --- */
.search-bar-container {
    position: relative;
    margin-bottom: 25px;
}

.search-bar-container i {
    position: absolute;
    left: 15px;
    top: 45%;
    /* Původně 50%, dáváme 45% aby šla nahoru */
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #999;
}

/* --- TABULKA (Pevná šířka, bez posouvání) --- */
.modal-content .modern-blue-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed;
    /* KLÍČOVÉ: Donutí tabulku dodržet šířku */
    box-sizing: border-box;
    border-collapse: separate;
    border-spacing: 0;

    /* Zaoblení a rámeček */
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

/* Hlavička */
.modal-content .modern-blue-table thead tr {
    background: #333;
    color: #fff;
}

.modal-content .modern-blue-table th {
    padding: 12px 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: none;
    text-align: left;
    /* Zarovnání nadpisů */
}

/* Buňky (Společný styl) */
.modal-content .modern-blue-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #333;
    /* Stejná barva pro všechno */
    word-wrap: break-word;
    /* Zalomí dlouhý text */
}

/* NÁZEV ZEMĚ (Vlevo) */
.modal-content .modern-blue-table td:nth-child(1) {
    text-align: left;
    width: 65%;
    /* 65% šířky pro název */
    font-weight: 500;
}

/* CENA (Vpravo) */
.modal-content .modern-blue-table td:nth-child(2) {
    text-align: right;
    width: 35%;
    /* 35% šířky pro cenu */
    font-weight: 600;
    /* Stejná tloušťka jako země (nebo jemně tučnější) */
    color: #333;
    /* ZAJIŠTĚNÍ STEJNÉ BARVY */
    white-space: nowrap;
}