/* CSS Document */
/* Модернизирана версия — responsive, mobile-first */

/* ===== ОСНОВНИ СТИЛОВЕ ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 16px база */
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.875rem; /* 14px */
  line-height: 1.6;
  color: #444;
  background: #c2c2c2;
}

a:link, a:visited {
  color: #720803;
  text-decoration: none;
  font-weight: bold;
}
a:active, a:hover {
  color: #a81407;
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid #ea6300;
  outline-offset: 2px;
}

h1 {
  margin: 0;
  padding: 1.5rem 1.5rem 0 2.5rem;
  font-weight: bold;
  font-size: 1.375rem; /* 22px */
  color: #981d1d;
}
h2 {
  margin: 0;
  padding: 0 1.5rem 0 2.5rem;
  font-weight: bold;
  font-size: 1.125rem; /* 18px */
  color: #ea6300;
}
h3 {
  margin: 1.25rem 0 1.25rem 2.5rem;
  font-weight: bold;
  font-size: 0.8125rem;
  color: #adadad;
}

/* ===== КОНТЕЙНЕР ===== */
#templatemo_container {
  max-width: 1000px;
  margin: 10px auto;
  border: 5px solid #fff;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
}

/* ===== ЛЯВА КОЛОНА (декоративна) ===== */
#templatemo_left_column {
  flex: 0 0 27px;
  min-height: 442px;
  background: url(images/templatemo_left_corner.jpg) no-repeat;
}

/* ===== МЕНЮ КОЛОНА ===== */
#templatemo_menu_column {
  flex: 0 0 230px;
  background: url(images/templatemo_left_title.jpg) no-repeat;
}

#templatemo_left_title {
  padding: 1.25rem;
  min-height: 43px;
  color: #5e5e5e;
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 2px;
}
#templatemo_left_title span {
  font-size: 1.25rem;
  color: #c61000;
}

.templatemo_menu_list ul {
  list-style: none;
  margin: 10px;
  padding: 0;
}
.templatemo_menu_list li a {
  display: block;
  min-height: 25px;
  padding: 8px 10px 8px 50px;
  color: #666;
  background: url(images/templatemo_menu_button.gif) no-repeat left center;
  transition: color 0.2s;
}
.templatemo_menu_list li a:hover,
.templatemo_menu_list li .current {
  color: #a81407;
}

/* ===== НОВИНИ ===== */
#templatemo_new {
  padding: 1.25rem 1.25rem 0 1.875rem;
  text-align: justify;
  font-size: 0.8125rem;
}
#templatemo_new span {
  display: inline-block;
  background: #f09e00;
  border: thin dotted;
  color: #fff;
  padding: 3px 6px;
  font-size: 0.75rem;
}

/* ===== КОНТАКТ ===== */
#templatemo_contact {
  margin-top: 1.25rem;
  padding: 0.625rem 1.25rem;
  min-height: 80px;
  background: #720803;
  color: #fff;
}
#templatemo_contact span {
  font-size: 0.875rem;
  font-weight: bold;
}
#templatemo_contact a {
  color: #fff;
  text-decoration: underline;
}

/* ===== ДЯСНА КОЛОНА ===== */
#templatemo_right_column {
  flex: 1 1 480px;
  min-width: 0; /* предотвратява overflow */
}

#templatemo_right_header {
  min-height: 180px;
  color: #fff;
  background: url(images/templatemo_header.jpg) no-repeat;
  background-size: cover;
  padding: 1rem;
}

.templatemo_right_link ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
.templatemo_right_link li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  background: url(images/bullet.gif) no-repeat left center;
  padding-left: 20px;
}
.templatemo_right_link li a:hover {
  text-decoration: underline;
}

.templatemo_right_slogan {
  text-align: right;
  margin-top: 2rem;
  color: #ccc;
}

/* ===== СЪДЪРЖАНИЕ ===== */
#templatemo_content {
  background: url(images/templatemo_right_bg.jpg) repeat-x;
  padding-bottom: 1.5rem;
}
#templatemo_content p {
  margin-top: 1rem;
  text-align: justify;
  padding: 0 2.5rem;
}

.templatemo_wedo {
  padding: 0 0 1rem 0;
}
.templatemo_wedo hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem 2.5rem;
}

/* ===== FOOTER ===== */
#templatemo_footer {
  flex: 1 1 100%;
  padding: 1.25rem;
  text-align: center;
  background: #dedede;
  font-weight: bold;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #templatemo_container {
    max-width: 100%;
    border-width: 3px;
  }
  #templatemo_left_column {
    display: none; /* скрива декоративната колона на малки екрани */
  }
  #templatemo_menu_column {
    flex: 1 1 100%;
    background: none;
    border-bottom: 2px solid #720803;
  }
  #templatemo_left_title {
    text-align: center;
  }
  .templatemo_menu_list ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
  }
  .templatemo_menu_list li a {
    padding: 10px 15px;
    background: none;
    border-bottom: 2px solid transparent;
  }
  .templatemo_menu_list li a:hover,
  .templatemo_menu_list li .current {
    border-bottom-color: #a81407;
  }
  #templatemo_right_column {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  h1 { padding: 1rem 1rem 0 1.25rem; font-size: 1.25rem; }
  h2 { padding: 0 1rem 0 1.25rem; font-size: 1.0625rem; }
  #templatemo_content p { padding: 0 1.25rem; }
  .templatemo_wedo hr { margin: 1rem 1.25rem; }
  .templatemo_right_header { min-height: auto; padding: 1rem; }
  .templatemo_right_link ul { flex-direction: column; align-items: flex-end; gap: 0.25rem; }
  .templatemo_right_slogan { margin-top: 1rem; }
  #templatemo_new { padding: 1rem; }
  #templatemo_contact { padding: 1rem; }
}