/* Podstrona /hosting (templates/hosting.html). Wspólne elementy podstron są w subpage.css. */

/* pigułki z cechami pod przyciskami w nagłówku */
.h24-hosting__facts {
    margin-top: 24px;
}

.h24-hosting__facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--h24-heading);
}

.h24-hosting__facts i {
    color: var(--h24-brand);
}

/* komunikaty przy pakietach (rozszerzenie hostingu, największy pakiet) */
.h24-hosting__notice {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto 40px;
    padding: 16px 22px;
    border-radius: var(--h24-radius);
    background: linear-gradient(90deg, var(--h24-lavender-from), var(--h24-lavender-to));
    color: var(--h24-heading);
    font-size: 15px;
}

.h24-hosting__notice i {
    flex: none;
    color: var(--h24-brand);
    font-size: 22px;
}

.h24-hosting__notice b {
    color: var(--h24-brand);
}

/* pakiety zaraz pod nagłówkiem strony (bez nagłówka sekcji): przełącznik cen ok. 64 px pod pigułkami,
   tak jak pigułka „W standardzie” na /domeny; !important, bo stary mobile.css daje #priceList padding-top: 120px */
.home.h24-hosting #priceList {
    padding-top: 0 !important;
}

/* ---------- dlaczego NVMe: wykres, ilustracja i tabela, pod spodem korzyści (inspiracja) ---------- */

.h24-nvme {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 24px;
    align-items: center;
}

.h24-nvme__chart,
.h24-nvme__table {
    align-self: stretch;
    padding: 28px;
}

.home .h24-nvme h3 {
    font-size: 20px;
}

.home .h24-nvme__sub {
    margin-top: 4px;
    font-size: 14px;
}

.h24-nvme__art img {
    display: block;
    width: 100%;
    height: auto;
}

/* słupki rozłożone na całą wysokość karty (karta jest tak wysoka jak tabela obok) */
.h24-nvme__chart {
    display: flex;
    flex-direction: column;
}

.h24-nvme__bars {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 22px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.h24-nvme__bars li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name value" "track track";
    gap: 8px 12px;
    align-items: center;
}

.h24-nvme__name {
    grid-area: name;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--h24-heading);
    font-size: 15px;
    font-weight: 700;
}

.h24-nvme__name i {
    width: 18px;
    color: var(--h24-text);
    text-align: center;
}

.h24-nvme__value {
    grid-area: value;
    color: var(--h24-text);
    font-size: 14px;
}

/* słupek: szerokość z --value względem 6800 MB/s, zaokrąglony koniec, rośnie po pojawieniu się sekcji */
.h24-nvme__track {
    grid-area: track;
    display: block;
    height: 14px;
    border-radius: 999px;
    background: var(--h24-divider);
    overflow: hidden;
}

.h24-nvme__bar {
    display: block;
    width: calc(var(--value) / 6800 * 100%);
    min-width: 10px;
    height: 100%;
    border-radius: 999px;
    background: var(--h24-icon-bg);
    transform-origin: left center;
}

.h24-nvme .animated.go .h24-nvme__bar {
    animation: h24-nvme-grow 1.1s .3s ease both;
}

@keyframes h24-nvme-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.h24-nvme__best .h24-nvme__name,
.h24-nvme__best .h24-nvme__name i,
.h24-nvme__best .h24-nvme__value {
    color: var(--h24-brand);
    font-weight: 700;
}

.h24-nvme__best .h24-nvme__bar {
    background: linear-gradient(90deg, var(--h24-turquoise), var(--h24-brand));
}

/* tabela porównania */
.h24-nvme__table table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    font-size: 14px;
}

.h24-nvme__table th,
.h24-nvme__table td {
    padding: 11px 8px;
    border-bottom: 1px solid var(--h24-divider);
    color: var(--h24-text);
    text-align: left;
    vertical-align: middle;
}

.h24-nvme__table thead th {
    color: var(--h24-heading);
    font-size: 14px;
    font-weight: 700;
}

.h24-nvme__table tbody th {
    color: var(--h24-heading);
    font-weight: 700;
}

/* kolumna NVMe wyróżniona tłem */
.h24-nvme__table .h24-nvme__col {
    background: var(--h24-active-bg);
    color: var(--h24-heading);
    font-weight: 700;
}

.h24-nvme__table thead .h24-nvme__col {
    border-radius: 12px 12px 0 0;
    color: var(--h24-brand);
}

.h24-nvme__table tbody tr:last-child td,
.h24-nvme__table tbody tr:last-child th {
    border-bottom: 0;
}

.h24-nvme__table tbody tr:last-child .h24-nvme__col {
    border-radius: 0 0 12px 12px;
}

/* co zyskujesz w praktyce */
.home .h24-nvme__gains-title {
    margin: 50px 0 24px;
    font-size: 26px;
    text-align: center;
}

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

/* home.css centruje ostatnią kartę w siatce 3-kolumnowej; tu siatka ma 4 kolumny */
.home .h24-nvme__gains .home-feature {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
}

.home .h24-nvme__gains h4 {
    margin: 0;
    color: var(--h24-heading);
    font-size: 16px;
    font-weight: 700;
}

.home .h24-hosting__more {
    margin-top: 32px !important;
    text-align: center;
}

@media (max-width: 1400px) {
    .h24-nvme { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h24-nvme__art { display: none; }
}

@media (max-width: 1240px) {
    .h24-nvme__gains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .h24-nvme { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .h24-nvme__chart,
    .h24-nvme__table { padding: 20px 14px; }
    /* tabela mieści się bez przewijania, kolumna NVMe zawsze widoczna */
    .h24-nvme__table table { font-size: 12px; }
    .h24-nvme__table th,
    .h24-nvme__table td { padding: 10px 5px; }
    .h24-nvme__table thead th { font-size: 13px; }
    /* dłuższe słowa (EN/DE/UK) dzielone, żeby tabela mieściła się w karcie */
    .h24-nvme__table th,
    .h24-nvme__table td { overflow-wrap: break-word; hyphens: auto; }
    .h24-nvme__gains { grid-template-columns: minmax(0, 1fr); }
    .home .h24-nvme__gains-title { margin-top: 36px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .h24-nvme .animated.go .h24-nvme__bar { animation: none; }
}

@media (max-width: 400px) {
    .h24-nvme__table { padding: 18px 10px; }
    .h24-nvme__table table { font-size: 11px; }
    .h24-nvme__table thead th { font-size: 12px; }
    .h24-nvme__table th,
    .h24-nvme__table td { padding: 9px 4px; }
}
