/* ==========================================================================
   New Mind s.r.o. – oldschool „Metro“ dlaždicový web (po vzoru server.lu 2016)
   Flat barevné dlaždice, bílé ikony, centrovaný sloupec na šedém pozadí.
   Systémové fonty (Segoe UI / Tahoma / Arial), žádné externí knihovny.
   ========================================================================== */

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font: 14px/1.55 "Segoe UI", Tahoma, Geneva, Verdana, Arial, sans-serif;
    color: #37474a; background: #e7e9eb;
}
img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: #1f8a82; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: #2f3e41; }

/* Barevná paleta (Metro) jako utility */
.bg-green  { background: #7cb518; }
.bg-teal   { background: #1f8a82; }
.bg-blue   { background: #1f9fe0; }
.bg-orange { background: #ef7b1a; }
.bg-amber  { background: #f6a623; }
.bg-purple { background: #bd24a8; }
.bg-red    { background: #e22319; }

/* ---------- Shell / centrovaný sloupec ---------- */
.shell { max-width: 1000px; margin: 0 auto; padding: 0 10px 30px; }

/* ---------- Topbar (blog/faq + social + login + jazyk) ---------- */
.topbar { background: #dfe2e5; border-bottom: 1px solid #cdd2d6; }
.topbar__in { max-width: 1000px; margin: 0 auto; padding: 6px 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.topbar .tb-link { display: inline-flex; align-items: center; gap: 6px; color: #4a5a5e; font-weight: 600; padding: 4px 6px; }
.topbar .tb-link .dot { width: 14px; height: 12px; border-radius: 2px; display: inline-block; }
.topbar .spacer { margin-left: auto; }
.topbar .login { background: #fff; border: 1px solid #c7ccd0; color: #3a4a4e; font-weight: 600; padding: 4px 12px; border-radius: 2px; }
.topbar .cart { background: #fff; border: 1px solid #c7ccd0; color: #3a4a4e; padding: 4px 9px; border-radius: 2px; }
.topbar .lang { display: inline-flex; border: 1px solid #c7ccd0; border-radius: 2px; overflow: hidden; }
.topbar .lang a { padding: 4px 9px; background: #fff; color: #6a7a7e; font-weight: 600; }
.topbar .lang a.on { background: #ef7b1a; color: #fff; }
.topbar .lang a:hover { text-decoration: none; }
.topbar .cur { display: inline-flex; border: 1px solid #c7ccd0; border-radius: 2px; overflow: hidden; }
.topbar .cur button { border: 0; padding: 4px 10px; background: #fff; color: #6a7a7e; font-weight: 700; cursor: pointer; font: 700 12px "Segoe UI", Tahoma, Arial, sans-serif; }
.topbar .cur button.on { background: #7cb518; color: #fff; }

/* ---------- Metro dlaždicová hlavička ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 74px; gap: 6px; margin-top: 12px; }
.tile { position: relative; display: flex; color: #fff; overflow: hidden; text-decoration: none; }
.tile:hover { text-decoration: none; filter: brightness(1.05); }
.tile--nav span, .tile--loc span, .tile--promo span { text-shadow: 0 1px 1px rgba(0,0,0,.22); }

/* Logo dlaždice (2×2) */
.tile--logo { grid-column: span 3; grid-row: span 2; background: #7cb518; flex-direction: column; justify-content: center; padding: 0 22px; }
.tile--logo .b { font-size: 38px; font-weight: 300; letter-spacing: 1px; color: #fff; }
.tile--logo .b b { font-weight: 600; }
.tile--logo .s { font-size: 13px; letter-spacing: 3px; color: #eaf6d6; text-transform: uppercase; margin-top: 2px; }

/* Lokační dlaždice (vlajka + název) */
.tile--loc { grid-column: span 1; grid-row: span 2; background: #1f8a82; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 6px; }
.tile--loc .flag { width: 38px; height: 26px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.tile--loc span { font-size: 12px; font-weight: 600; letter-spacing: .5px; }

/* Special offers dlaždice */
.tile--promo { grid-column: span 2; grid-row: span 2; background: #7cb518; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.tile--promo .badge { width: 40px; height: 40px; display: grid; place-items: center; }
.tile--promo span { font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 1.15; }

/* Navigační dlaždice s ikonou */
.tile--nav { grid-column: span 3; grid-row: span 2; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; text-align: center; }
.tile--nav svg { width: 40px; height: 40px; fill: #fff; }
.tile--nav span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.tile--nav.is-active { box-shadow: inset 0 0 0 3px rgba(255,255,255,.55); }

/* Druhý řádek nav dlaždic (4 vedle sebe) */
.tilesnav { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 96px; gap: 6px; margin-top: 6px; }
.tilesnav .tile--nav { grid-column: span 1; grid-row: span 1; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: 6px; min-height: 230px; background: #1f8a82; overflow: hidden; display: flex; }
.hero__bg { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(12,58,54,.88), rgba(12,58,54,.66)), url("../img/racks.svg") center/cover; }
.hero__in { position: relative; z-index: 2; padding: 22px 26px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; width: 100%; }
.hero__loc { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.hero__loc .flag { width: 26px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.hero__title { font-size: 30px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); margin: 8px 0; }
.hero__title b { color: #ffe14d; }
.hero__spec { font-size: 14px; color: #eafaf7; max-width: 540px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.hero__price { line-height: 1.1; }
.hero__price .from { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #d8f3ee; }
.hero__price .amt { font-size: 34px; font-weight: 700; color: #ffe14d; text-shadow: 0 2px 4px rgba(0,0,0,.45); }

/* ---------- Tlačítka ---------- */
.btn { display: inline-block; border: 0; cursor: pointer; font: 600 14px/1 "Segoe UI", Tahoma, Arial, sans-serif; color: #fff; background: #1f9fe0; padding: 11px 20px; border-radius: 2px; text-align: center; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn--cfg { background: linear-gradient(180deg, #f6a623, #e8731a); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.btn--green { background: #7cb518; }
.btn--ghost { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.6); }
.btn--gray { background: #6a7a7e; }
.btn--lg { padding: 13px 26px; font-size: 15px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { display: block; width: 100%; }

/* ---------- Feature dlaždice (malé) ---------- */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.feat a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #fff; padding: 16px 8px; min-height: 92px; text-shadow: 0 1px 1px rgba(0,0,0,.2); }
.feat a:hover { text-decoration: none; filter: brightness(1.05); }
.feat svg { width: 30px; height: 30px; fill: #fff; }
.feat b { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.feat small { font-size: 11px; opacity: .9; }

/* ---------- Ceníkové karty serverů ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; color: #fff; padding: 18px 18px 20px; min-height: 250px; display: flex; flex-direction: column; text-shadow: 0 1px 1px rgba(0,0,0,.2); }
.card--green  { background: #7cb518; } .card--orange { background: #ef9a1a; }
.card--amber  { background: #f6a623; } .card--blue   { background: #1f9fe0; }
.card__code { font-size: 28px; font-weight: 600; }
.card__flag { position: absolute; top: 18px; right: 18px; width: 30px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.card__badge { display: inline-block; background: rgba(0,0,0,.18); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; margin-top: 6px; }
.card__specs { list-style: none; margin: 12px 0 0; font-size: 13px; }
.card__specs li { padding: 2px 0; }
.card__specs li b { font-weight: 600; }
.card__hr { border: 0; border-top: 1px solid rgba(255,255,255,.45); margin: 14px 0; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card__price { font-size: 26px; font-weight: 700; line-height: 1; }
.card__price small { display: block; font-size: 11px; font-weight: 400; opacity: .9; }

/* ---------- Obecné sekce ---------- */
.sec { background: #fff; border: 1px solid #d7dce0; margin-top: 14px; padding: 20px 22px; }
.sec--plain { background: transparent; border: 0; padding: 18px 2px; }
.sec h2.title { font-size: 22px; color: #2f3e41; margin-bottom: 6px; }
.sec .sub { color: #6a7a7e; margin-bottom: 14px; }
.sec p { margin-bottom: 10px; }
.lead { font-size: 15px; color: #4a5a5e; }
.note { font-size: 12px; color: #8a979b; }
.accent { color: #ef7b1a; font-weight: 600; }

/* Pruh s nadpisem stránky */
.pagehead { margin-top: 14px; border-bottom: 3px solid #7cb518; padding: 6px 2px 10px; }
.pagehead .crumb { font-size: 12px; color: #8a979b; }
.pagehead .crumb a { color: #6a7a7e; }
.pagehead h1 { font-size: 26px; margin-top: 4px; }

/* Mřížky obsahu */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.box { background: #fff; border: 1px solid #d7dce0; padding: 16px; }
.box h3 { font-size: 15px; margin-bottom: 6px; }
.box h3 .ic { color: #7cb518; margin-right: 6px; }

/* Seznamy s odrážkou */
.checklist { list-style: none; }
.checklist li { position: relative; padding: 3px 0 3px 22px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: #7cb518; font-weight: 700; }

/* Specifikační tabulka */
.spectable { width: 100%; border-collapse: collapse; font-size: 13px; }
.spectable th, .spectable td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #e3e7ea; }
.spectable th { background: #f3f5f6; color: #4a5a5e; font-weight: 600; width: 200px; }
.spectable tr:hover td { background: #fafbfb; }

/* ---------- FAQ accordion (details/summary) ---------- */
.faq__item { background: #fff; border: 1px solid #d7dce0; margin-bottom: 6px; }
.faq__item summary { cursor: pointer; list-style: none; padding: 11px 14px; font-weight: 600; color: #2f3e41; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: #ef7b1a; font-weight: 700; font-size: 18px; }
.faq__item[open] summary::after { content: "–"; }
.faq__item[open] summary { background: #f3f7ec; border-bottom: 1px solid #e3e7ea; }
.faq__a { padding: 12px 14px; color: #4a5a5e; font-size: 13px; }

/* ---------- Platební loga ---------- */
.pays { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; padding: 22px; background: #fff; border: 1px solid #d7dce0; margin-top: 14px; }
.pays span { font-weight: 700; color: #9aa6aa; font-size: 18px; letter-spacing: .5px; }

/* ---------- Footer ---------- */
.foot { background: #586a6d; color: #cdd6d8; margin-top: 22px; }
.foot__in { max-width: 1000px; margin: 0 auto; padding: 26px 10px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.foot__cols h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 6px; }
.foot__cols ul { list-style: none; }
.foot__cols li { padding: 3px 0; }
.foot__cols a { color: #cdd6d8; font-size: 13px; }
.foot__cols a:hover { color: #fff; }
.foot__about { font-size: 13px; line-height: 1.7; }
.partners { border-top: 1px solid rgba(255,255,255,.14); margin-top: 18px; padding-top: 16px; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; opacity: .85; }
.partners span { color: #aeb9bc; font-weight: 700; font-size: 13px; letter-spacing: .5px; }
.copy { background: #4a595c; color: #aeb9bc; font-size: 12px; }
.copy__in { max-width: 1000px; margin: 0 auto; padding: 12px 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.copy a { color: #cdd6d8; }

/* ---------- Formuláře ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #4a5a5e; margin-bottom: 4px; }
.field .req { color: #e22319; }
.input, .select, .textarea { width: 100%; border: 1px solid #c2cacd; border-radius: 2px; padding: 9px 10px; font: 14px "Segoe UI", Tahoma, Arial, sans-serif; color: #2f3e41; background: #fff; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: #1f9fe0; box-shadow: 0 0 0 2px rgba(31,159,224,.15); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-msg { display: none; padding: 10px 12px; border-radius: 2px; font-size: 13px; margin: 8px 0; }
.form-msg.ok { display: block; background: #eef7e3; border: 1px solid #b5d98c; color: #3d6e1a; }
.form-msg.err { display: block; background: #fdecea; border: 1px solid #f0b4ad; color: #b0392b; }

/* ---------- Modal (konfigurace/objednávka) ---------- */
.modal { display: none; position: fixed; inset: 0; background: rgba(20,30,32,.55); z-index: 100; overflow-y: auto; }
.modal.open { display: block; }
.modal__box { width: 100%; max-width: 720px; margin: 28px auto; background: #fff; border-radius: 3px; box-shadow: 0 8px 40px rgba(0,0,0,.4); }
.modal__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #7cb518; color: #fff; }
.modal__hd h3 { color: #fff; font-size: 17px; }
.modal__close { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.5); color: #fff; width: 28px; height: 28px; border-radius: 2px; cursor: pointer; font-size: 16px; }
.modal__bd { padding: 18px; }
.order-summary { background: #f3f7ec; border: 1px solid #cfe2a8; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.order-summary .price-out { color: #e8731a; font-weight: 700; font-size: 18px; }

/* ---------- Responsivita ---------- */
.burger { display: none; }
@media (max-width: 860px) {
    .tiles { grid-template-columns: repeat(4, 1fr); }
    .tile--logo { grid-column: span 4; grid-row: span 1; min-height: 90px; }
    .tile--loc, .tile--promo { grid-row: span 1; }
    .tilesnav { grid-template-columns: repeat(2, 1fr); }
    .cards, .cards--4, .feat, .cols2, .cols3 { grid-template-columns: 1fr 1fr; }
    .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .tile--logo { grid-column: span 2; }
    .tilesnav { grid-template-columns: 1fr; }
    .cards, .cards--4, .feat, .cols2, .cols3, .form-grid, .foot__cols { grid-template-columns: 1fr; }
    .spectable th { width: 130px; }
    .hero__title { font-size: 23px; }
}
