/* =========================================================
   tomitel.CZ
   ========================================================= */
/* ---------- ZÁKLAD ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: #e7eaed;
  background-image: url("IMG/bck_pcb.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: fixed;
  background-size: cover;
  color: #20252a;
  font-family: "Calibri", "Segoe UI", Arial, sans-serif;
}
/* ---------- JEMNÁ VRSTVA NAD POZADÍM ---------- */
.fog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0.98;
  z-index: -100;
}
/* =========================================================
   HLAVNÍ OBSAH
   ========================================================= */
.txtblock {
  position: relative;
  width: min(920px, calc(100% - 40px));
  max-width: 920px;
  display: block;
  margin: 32px auto;
  padding: 30px 42px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  box-shadow:
    0 12px 35px rgba(0,0,0,0.12),
    0 2px 6px rgba(0,0,0,0.08);
}
/* ---------- TEXT ---------- */
.txtblock p,
.txtblock ol,
.txtblock li {
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 10px;
  line-height: 1.45;
  font-size: 12pt;
  font-style: normal;
  font-family: "Calibri", "Segoe UI", Arial, sans-serif;
}
/* ---------- HLAVNÍ NADPISY ---------- */
/*
   První velký text – www.tomitel.cz
*/
.base > p:first-of-type {
  color: #15191d;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 #fff;
}
/*
   Služby
*/
.base > p:nth-of-type(2),
.infline > p:nth-of-type(1),
.infline > p:nth-of-type(3),
.infline > p:nth-of-type(5) {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 22px;
  padding: 9px 18px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #263238,
      #455a64
    );
  border-left: 6px solid #4b89ff;
  border-radius: 6px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.15);
  letter-spacing: 0.5px;
}
/* ---------- ÚVODNÍ BODY SLUŽEB ---------- */
.base > p:nth-of-type(9),
.base > p:nth-of-type(10),
.base > p:nth-of-type(11) {
  padding: 7px 12px;
  color: #303840;
  border-left: 3px solid #4b89ff;
}
/* =========================================================
   LOGO
   ========================================================= */
.logo {
  position: relative;
  float: right;
  width: 30%;
  height: auto;
  padding-left: 20px;
  display: none;
}
.logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: calc(100% - 20px);
  padding: 6px;
  background: rgba(20,25,30,0.82);
  color: white;
  font-family: "Calibri", sans-serif;
  line-height: 1.2;
  font-size: 18px;
  text-align: center;
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.logo:hover .overlay {
  opacity: 1;
}
/* =========================================================
   BAREVNÉ ZNAČKY
   ========================================================= */
.mark {
  position: relative;
  z-index: 2;
  float: right;
  width: 54px;
  height: 54px;
  margin: 2px 4px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #20252a;
  text-align: center;
  font-family: "Calibri", "Segoe UI", sans-serif;
  font-size: 30pt;
  font-weight: bold;
  border-radius: 10px;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}
.mark:hover {
  transform: scale(1.08);
  box-shadow:
    0 5px 15px rgba(0,0,0,0.18);
}
.mark a {
  color: inherit;
  text-decoration: none;
}
/* ---------- INFO ---------- */
.info {
  color: #fff;
  background: #4b89ff;
  border: 3px solid #4b89ff !important;
  box-shadow:
    0 4px 12px rgba(75,137,255,0.30);
}
.info:hover,
.txtblock .info:hover {
  background-color: #286bdc;
  opacity: 1;
}
.info:hover a {
  color: #fff;
}
/* ---------- MEDIA ---------- */
.media {
  border: 3px solid #fff4a3 !important;
}
.media:hover {
  background-color: #fff4a3;
  opacity: 1;
}
/* ---------- KONTAKT ---------- */
.contact {
  color: #fff;
  background: #04aa6d;
  border: 3px solid #04aa6d !important;
  box-shadow:
    0 4px 12px rgba(4,170,109,0.25);
}
.contact:hover,
.txtblock .contact:hover {
  background-color: #038857;
  opacity: 1;
}
.contact:hover a {
  color: #fff;
}
/* ---------- DŮLEŽITÉ ---------- */
.important {
  color: #3b2528;
  background: #fff;
  border: 3px solid #ffc0c7 !important;
  box-shadow:
    0 4px 12px rgba(255,120,140,0.12);
}
.important:hover {
  background-color: #fff3f4;
  opacity: 1;
  transform: scale(1.04);
}
/* ---------- BAZAR ---------- */
.bazar {
  color: #663d00;
  background: #fffaf0;
  border: 3px solid #ffa500 !important;
  box-shadow: 0 4px 12px rgba(255,165,0,0.20);
  margin: 2px 10px 8px 0px;
}
.bazar:hover {
  color: #fff;
  background-color: #e58a00;
  opacity: 1;
}
.bazar:hover a {
  color: #fff;
}
/* =========================================================
   INFORMAČNÍ BLOK
   ========================================================= */
.infline {
  border-right: none !important;
  border-left: 5px solid #4b89ff;
  border-radius: 12px;
  background:
    linear-gradient(
      90deg,
      rgba(75,137,255,0.08),
      rgba(75,137,255,0.015)
    );
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.infline:hover {
  box-shadow:
    0 5px 18px rgba(0,0,0,0.07);
}
/* =========================================================
   DŮLEŽITÉ UPOZORNĚNÍ
   ========================================================= */
.impline {
  border-right: none !important;
  border-left: 5px solid #ffc0c7;
  border-radius: 12px;
  background:
    linear-gradient(
      90deg,
      rgba(255,192,199,0.12),
      rgba(255,192,199,0.025)
    );
  transition:
    box-shadow 0.25s ease;
}
.impline:hover {
  box-shadow:
    0 5px 18px rgba(0,0,0,0.07);
}
/* =========================================================
   ODKAZY
   ========================================================= */
a {
  color: #1769c2;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}
a:hover {
  color: #0b478a;
}
/* Odkaz v hlavním obsahu */
.txtblock a:not(.mark a) {
  font-weight: 600;
}
/* =========================================================
   KONTAKTNÍ ÚDAJE
   ========================================================= */
#contacts {
  clear: both;
  padding: 15px 18px;
  background: #f4f7f8;
  border: 1px solid #dce2e5;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 3px rgba(0,0,0,0.04);
}
#contacts a {
  color: #087a54;
  font-weight: bold;
  text-decoration: none;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}
#contacts a:hover {
  color: #04aa6d;
  text-shadow:
    0 0 8px rgba(4,170,109,0.35);
}
/* =========================================================
   SPODNÍ ODKAZY
   ========================================================= */
.impline > p:last-of-type {
  padding-top: 15px;
  border-top: 1px solid #dfe3e6;
}
.impline > p:last-of-type a {
  display: inline-block;
  margin-bottom: 6px;
  color: #56616a;
  font-size: 0.95em;
  text-decoration: none;
}
.impline > p:last-of-type a:hover {
  color: #1769c2;
  text-decoration: underline;
}
/* =========================================================
   IKONY
   ========================================================= */
.phone,
.mail {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
#contacts span:hover .phone,
#contacts span:hover .mail {
  color: #04aa6d;
}
/* =========================================================
   MOBILY / TABLETY
   ========================================================= */
@media screen and (max-width: 1024px) {
  body {
    background-size: cover;
    background-attachment: scroll;
  }
  .txtblock {
    width: calc(100% - 30px);
    max-width: 900px;
    margin: 15px auto;
    padding: 24px 28px;
  }
  .logo {
    width: 25%;
  }
  .mark {
    width: 48px;
    height: 48px;
    font-size: 25pt;
    margin-left: 12px;
  }
}
/* =========================================================
   MALÉ MOBILY
   ========================================================= */
@media screen and (max-width: 600px) {
  body {
    background-image: url("IMG/bckg.jpg");
    background-size: cover;
  }
  .fog {
    background:
      rgba(248,250,251,0.94);
  }
  .txtblock {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 20px 18px;
    border-radius: 12px;
  }
  .txtblock p,
  .txtblock ol,
  .txtblock li {
    line-height: 1.4;
  }
  /*
     Schování značek.
  */
  .mark {
    display: none;
  }
  .infline,
  .impline {
    border-left-width: 4px;
    border-radius: 8px;
  }
  /*
     Kontakty pod sebe.
  */
  #contacts span {
    display: block;
    margin: 8px 0;
  }
  /*
     Spodní odkazy.
  */
  .impline > p:last-of-type a {
    margin-right: 12px;
  }
}
/* =========================================================
   EXTRA MALÝ TELEFON
   ========================================================= */
@media screen and (max-width: 420px) {
  .txtblock {
    padding: 17px 14px;
  }
  #contacts {
    padding: 12px;
  }
  .txtblock > p:nth-of-type(2) {
    display: block;
    padding: 8px 12px;
  }
}

