/* FONTS */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800,300&subset=latin,latin-ext);

:root {
  --color-primary: #0099cc;
  --color-dark: #2c3740;
  --color-text: #696969;
  --color-light-bg: #dde8ef;
  --color-accent: #e04622;
  --font-main: "Open Sans", sans-serif;
  --fs-base: 14px;
  --fs-sm: 13px;
  --transition-speed: 0.2s;
}

body,
html {
  font-family: "Open Sans", sans-serif;
  color: var(--color-text);
  font-size: 14px;
  background-color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: "Open Sans", sans-serif;
  color: var(--color-dark);
}

.force-orange-color {
  color: var(--color-accent) !important;
}
.force-blue-color {
  color: var(--color-primary) !important;
}
.force-semibold {
  font-weight: 600;
}

a.button {
  font-family: "Open Sans", sans-serif;
  display: inline-block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: var(--color-primary);
  text-transform: uppercase;
  padding: 10px;
  padding-left: 35px;
  padding-right: 35px;
  margin-top: 10px;
  transition: 0.2s;
}
a.button:hover {
  color: #fff;
  background: #007399;
  text-decoration: none;
}

/* NAV */
#before-header {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
  border-bottom: 1px solid #dbe5ec;
}
#before-header .first-row {
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
#before-header a.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 188px;
  flex-shrink: 0;
}
#before-header a.logo img {
  display: block;
  width: 100%;
  height: auto;
}
.nav-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-brand-name {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  line-height: 1;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-brand-tag {
  font-size: 11.5px;
  color: #667786;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Mobile nav toggle button */
#nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d0d9e2;
  padding: 10px 13px;
  cursor: pointer;
  color: var(--color-dark);
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(44, 55, 64, 0.08);
  transition: all 0.2s;
}
#nav-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Main nav */
#main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.nav-link {
  display: block;
  color: var(--color-dark);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 16px;
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  position: relative;
  border-radius: 0;
}
.nav-link::after {
  display: none;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--color-primary);
  text-decoration: none;
}
li.active .nav-link {
  color: var(--color-primary);
}
.nav-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 0;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-contact-link:hover {
  color: #fff;
  background: #007399;
  text-decoration: none;
}

@media (min-width: 768px) {
  #nav-toggle {
    display: none;
  }
  #main-nav {
    display: flex !important;
    margin-top: 0;
  }
  .main-nav-list > li {
    text-align: center;
  }
  li.active:after {
    display: none;
  }
}
@media (max-width: 767px) {
  .nav-shell {
    gap: 12px;
  }
  .nav-brand {
    flex: 1;
    min-width: 0;
  }
  .nav-brand-copy {
    display: none;
  }
  #before-header a.logo {
    width: 164px;
  }
  #main-nav {
    display: none;
    width: 100%;
  }
  #main-nav.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e4ebf1;
  }
  .main-nav-list {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e4ebf1;
  }
  .nav-contact-link {
    width: 100%;
  }
}

/* Custom modal (replaces Bootstrap modal) */
.custom-modal {
  display: none;
}
.custom-modal.flex {
  display: flex;
}

.shadow-after-header {
  width: 100%;
  height: 64px;
  background: url("/images/front/shadow.png") bottom center no-repeat;
  background-size: 100%;
  margin: 0 auto;
  position: relative;
  top: -6px;
  z-index: 9999;
}
/* NAV */

/* HEADER - MODERN HERO */
header.main {
  position: relative;
  width: 100%;
  min-height: 560px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  border: none;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 18, 24, 0.76) 0%,
    rgba(24, 33, 42, 0.64) 52%,
    rgba(0, 77, 102, 0.46) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 70px 0;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  padding-left: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  vertical-align: middle;
  margin-right: 10px;
  margin-top: -2px;
}
.hero-title {
  font-family: "Open Sans", sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 22px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}
.hero-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-primary);
  margin-top: 18px;
}
.hero-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 560px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-actions .btn-primary,
.hero-actions .btn-outline {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 38px;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  transition: all 0.25s;
}
.btn-primary:hover {
  background: #007399;
  border-color: #007399;
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 38px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 1);
  transition: all 0.25s;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 32px;
  }
  header.main {
    min-height: 420px;
  }
  .hero-content {
    padding: 50px 0;
  }
}
/* HEADER */

/* HEADER PAGE */
header.page {
  min-height: 150px;
  max-height: 200px;
  background: url("/images/front/header.jpg") bottom center no-repeat;
  background-size: cover;
}
header.page h1 {
  font-family: "Open Sans", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  overflow: hidden;
  padding: 25px;
  background: url("/images/front/subpage_header_bg.png") center right no-repeat;
  background-size: cover;
  margin-top: -35px;
}
header.page h1:after {
  content: "";
  display: block;
  width: 96.7%;
  height: 1px;
  background: var(--color-primary);
  position: absolute;
  margin-top: 24px;
  margin-left: -25px;
}
/* HEADER PAGE */

.breadcrumbs {
  width: 100%;
  background: #f9f9f9;
  padding: 12px 0;
}
.breadcrumbs ul {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}
.breadcrumbs ul li {
  display: inline-block;
  list-style-type: none;
}
.breadcrumbs ul li a {
  font-family: "Open Sans", sans-serif;
  color: #999;
  font-size: 13px;
}
.breadcrumbs ul li:last-child a {
  text-decoration: underline;
}
.breadcrumbs ul li:after {
  display: inline-block;
  content: ">";
  padding: 0px 10px;
}
.breadcrumbs ul li:last-child::after {
  display: none;
}

/* CONTENT */
#content {
  padding-top: 15px;
}
#content.homepage-content {
  padding-top: 0;
}
#content .section {
  padding-bottom: 55px;
}
#content .heading {
  padding-top: 25px;
  padding-bottom: 25px;
}
#content .heading span {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #6d7c88;
  font-weight: 600;
  text-transform: uppercase;
}
#content .heading h2,
h3 {
  position: relative;
  font-family: "Open Sans", sans-serif;
  font-size: 28px;
  color: var(--color-dark);
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 5px;
  margin-bottom: 0;
  padding-bottom: 0;
}

#content .heading-info i {
  color: var(--color-dark);
  font-size: 35px;
}
#content h3.heading-normal {
  font-size: 16px;
  margin-bottom: 25px;
}
#content h3.heading-normal:after {
  content: none;
}
#content .service-items {
  margin-top: 15px;
}
#content .service-items .item {
  width: 100%;
  min-height: auto;
  background: #fff;
  box-shadow: 0 2px 18px rgba(44, 55, 64, 0.09);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}
#content .service-items .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(44, 55, 64, 0.15);
}
#content .service-items .item .img-container {
  height: 220px;
  overflow: hidden;
}
#content .service-items .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
#content .service-items .item:hover img {
  transform: scale(1.07);
}
#content .service-items .item .item-content {
  padding: 24px 28px 28px;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-top: 3px solid var(--color-primary);
  min-height: auto;
}
#content .service-items .item .item-content h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  color: var(--color-dark);
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 10px;
}
#content .service-items .item .item-content h3:after {
  display: none;
}
#content .service-items .item .item-content h3 a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s;
}
#content .service-items .item .item-content h3 a:hover {
  color: var(--color-primary);
}
#content .service-items .item .item-content p {
  font-size: 14px;
  min-height: auto;
  color: #596672;
  line-height: 1.65;
}
#content .service-items .item .item-content a.more-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: 8px;
}
#content .service-items .item .item-content a.more-button:after {
  font-family: FontAwesome;
  content: "\f105";
  padding-left: 5px;
  position: relative;
  top: -0.5px;
  transition: padding-left 0.2s;
}
#content .service-items .item .item-content a.more-button:hover {
  color: #007399;
}
#content .service-items .item .item-content a.more-button:hover::after {
  padding-left: 9px;
}

#content .bordered-row {
  padding: 20px 28px;
  border: 1px solid #d4dee5;
  margin-top: 25px;
}
#content .bordered-row.about-row {
  border-left: 4px solid var(--color-primary);
  background: #f8fbfd;
}
#content .bordered-row.about-row p {
  color: #596672;
  line-height: 1.75;
  margin-bottom: 10px;
}
#content .bordered-row.about-row p:last-child {
  margin-bottom: 0;
}
#content .bordered-row.anotation {
  color: var(--color-dark);
  background: var(--color-light-bg);
}

#content .box-items.hp {
  margin-top: 20px;
}
#content .box-items .box-item {
  min-height: auto;
  padding: 20px 22px;
  border: 1px solid #e2eaef;
  margin-bottom: 0;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
#content .box-items .box-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 153, 204, 0.1);
}
#content .box-items .box-item .icon-holder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 153, 204, 0.1);
  border-radius: 50%;
  margin-right: 14px;
  vertical-align: middle;
  flex-shrink: 0;
}
#content .box-items .box-item .box-item-heading {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
#content .box-items .box-item .box-item-heading .icon-holder i {
  color: var(--color-primary);
  font-size: 20px;
}
#content .box-items .box-item .box-item-heading h5 {
  display: inline-block;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
#content .box-items .box-item p {
  font-size: 13.5px;
  color: #596672;
  line-height: 1.65;
  margin: 0;
}

#content .section.dark-section {
  color: #f9f9f9;
  padding: 35px 0px;
  background-color: #394650;
}
#content .section.dark-section .heading {
  margin-top: 0;
  padding-top: 12px;
}
#content .section.dark-section h3 {
  color: #fff;
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a2129 100%);
  padding: 60px 0;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-text h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 26px;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.cta-text h3:after {
  display: none;
}
.cta-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  margin: 0;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
.btn-cta-secondary {
  display: inline-block;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 30px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s;
}
.btn-cta-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}
@media (max-width: 767px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-actions {
    justify-content: center;
  }
}
/* CTA SECTION */

/* KOOPERACE */
#content .kooperace-page h3 {
  margin-bottom: 5px;
}
#content .kooperace-page .bordered-row.no-padding-and-border {
  padding: 0;
  border: none;
}
#content .kooperace-page .bordered-row.no-margin-top {
  margin-top: 0;
}
#content .kooperace-page .anotation {
  color: var(--color-dark);
  background: var(--color-light-bg);
}
#content .kooperace-page ul {
  color: var(--color-dark);
  margin-left: 0;
  padding-left: 18px;
}
#content .kooperace-page .page-image {
  width: 100%;
  overflow: hidden;
  text-align: center;
}
#content .kooperace-page .page-image img {
  width: 100%;
  max-width: 230px;
  border: 2px solid #ddd;
  border-radius: 230px;
}
#content .kooperace-page .kooperace-items .row {
  margin-bottom: 15px;
}
#content .kooperace-page .kooperace-item {
  text-align: center;
}
#content .kooperace-page .kooperace-item p.heading-normal {
  font-family: "Open Sans", sans-serif;
  color: var(--color-dark);
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 15px;
  font-size: 16px;
  margin-bottom: 25px;
}
#content .kooperace-page .kooperace-item .img-container {
  display: flex;
  width: 100%;
  min-height: 250px;
  max-height: 250px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid #d4dee5;
  border-bottom: none;
  vertical-align: middle;
}
#content .kooperace-page .kooperace-item .img-container img {
  height: 100%;
  width: 80%;
  margin: auto;
}
#content .kooperace-page .kooperace-item .bordered-row {
  min-height: 145px;
  background: var(--color-light-bg);
}
#content .kooperace-page .kooperace-item ul {
  padding: 0;
}
#content .kooperace-page .kooperace-item ul li {
  color: var(--color-dark);
  font-weight: 600;
  text-align: center;
  list-style-type: none;
}
#content .kooperace-page .kooperace-item ul li:last-child {
  margin-bottom: 0;
}
/* KOOPERACE */
/* CONTENT */

/* CROSSROAD PAGE */
ul.categories-list {
  margin: 0;
  padding: 0;
  margin-top: 10px;
  border: 1px solid #d4dee5;
}
ul.categories-list li {
  display: block;
  list-style-type: none;
}
ul.categories-list li a {
  display: block;
  color: var(--color-dark);
  font-weight: 600;
  padding: 15px 20px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #d4dee5;
}
ul.categories-list li a:hover {
  color: #fff;
  background: var(--color-primary);
  text-decoration: none;
}
ul.categories-list li a.active {
  color: #fff;
  background: var(--color-primary);
  border-bottom: 2px solid #007399;
}
ul.categories-list li:last-child a {
  border-bottom: none;
}
/* CROSSROAD PAGE */

/* PRODUCT LIST */
ul.product-list-boxes {
  margin: 0 auto;
  margin-top: 25px;
  padding: 0;
  text-align: center;
}
ul.product-list-boxes li {
  display: inline-block;
  list-style-type: none;
  vertical-align: middle;
  padding: 15px;
  border: 1px solid #d4dee5;
  text-align: center;
  margin-bottom: 10px;
  margin-right: 10px;
}
ul.product-list-boxes.konstrukce li {
  display: block;
  width: 100%;
  text-align: center;
}
ul.product-list-boxes.konstrukce li div.box-container {
  display: block;
}
ul.product-list-boxes.konstrukce li img {
  text-align: center;
  max-width: 65%;
}
ul.product-list-boxes.konstrukce li span {
  margin-top: 25px;
}
ul.product-list-boxes li div.box-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
ul.product-list-boxes li img {
  max-width: 100%;
}
ul.product-list-boxes li span {
  color: var(--color-accent);
  display: block;
  text-decoration: none;
  font-weight: 600;
}
ul.product-list-boxes li a:hover {
  text-decoration: none;
}
ul.product-list-boxes li a:hover > span {
  color: var(--color-dark);
  text-decoration: none;
}
ul.product-list-boxes li a:focus {
  text-decoration: none;
}
/* PRODUCT LIST */

/* VYROBA ITEMS */
.vyroba-items {
  margin-top: 11px;
}
.vyroba-items li {
  width: 100%;
  list-style-type: none;
  border: 1px solid #d4dee5;
  margin-bottom: 25px;
}
.vyroba-items li .img-container {
  display: flex;
  width: 100%;
  min-height: 250px;
  max-height: 250px;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}
.vyroba-items li .img-container img {
  height: 100%;
  width: 80%;
  margin: auto;
}
.vyroba-items li .name {
  width: 100%;
  min-height: 72px;
  font-family: "Open Sans", sans-serif;
  color: var(--color-dark);
  font-weight: 700;
  text-align: center;
  padding-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid #d4dee5;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column; /* column | row */
}
.vyroba-items li .description {
  text-align: center;
  padding: 15px 25px;
  padding-top: 25px;
  background: var(--color-light-bg);
  color: var(--color-dark);
  min-height: 150px;
}
.vyroba-items li a {
  font-family: "Open Sans", sans-serif;
  display: block;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  padding-top: 15px;
  padding-bottom: 15px;
  text-transform: uppercase;
}
.vyroba-items li a:after {
  font-family: FontAwesome;
  content: "\f105";
  font-weight: 700;
  position: relative;
  transition: 0.2s;
  margin-left: 5px;
  top: -0.5px;
}
.vyroba-items li a:hover {
  text-decoration: none;
}
.vyroba-items li a:hover::after {
  padding-left: 10px;
}

/* VYROBA ITEMS */

/* CATALOG 3D PREVIEW */
.catalog-model-preview {
  border: 1px solid #d4dee5;
  background: #fff;
  margin-bottom: 24px;
}
.catalog-model-preview-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #dfe8ef;
  background: #f6fafc;
}
.catalog-model-preview-head h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  color: var(--color-dark);
  text-transform: uppercase;
  margin: 0;
}
.catalog-model-preview-head h3:after {
  display: none;
}
.catalog-model-preview-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b7b88;
}
.catalog-model-preview model-viewer {
  width: 100%;
  height: 390px;
  background: linear-gradient(180deg, #f2f7fb 0%, #edf4f9 100%);
}
@media (max-width: 767px) {
  .catalog-model-preview model-viewer {
    height: 300px;
  }
}

/* REFERENCE */
ul.reference-photogallery {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.reference-photogallery li {
  display: inline-block;
  list-style-type: none;
  text-align: center;
  margin: 0 auto;
  padding: 5px;
  border: 1px solid #d4dee5;
  margin-right: 8px;
  margin-bottom: 8px;
}
ul.reference-photogallery li img {
  max-width: 170px;
  height: auto;
  vertical-align: middle;
}
/* REFERENCE */

/* MODAL */
.modal .modal-header {
  padding: 0;
  background: var(--color-light-bg);
  text-align: center;
}
.modal .modal-title span {
  font-size: 15px;
  display: block;
  padding: 15px;
}
.modal .modal-body {
  background: var(--color-light-bg);
  padding: 0;
}
.modal .img-container {
  background: #fff;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}
.modal .img-container img {
  max-height: 250px;
  padding-top: 15px;
  padding-bottom: 10px;
}
.modal .modal-body p {
  color: #000;
  padding: 20px;
  margin-bottom: 0;
  padding-bottom: 30px;
}
.modal .modal-close-button {
  color: #fff;
  font-weight: 600;
  background: var(--color-accent);
  border-radius: 60px;
  border: none;
}
/* MODAL */

/* FOOTER */
footer {
  background: #1e2830;
}
.footer-main {
  padding: 56px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand-name {
  font-family: "Open Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  color: #8fa3b0;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 280px;
}
.footer-cta-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.footer-cta-btn:hover {
  background: #007aa8;
  color: #fff;
  text-decoration: none;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa3b0;
  margin: 0 0 18px;
}
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-contact-list .fa {
  color: var(--color-primary);
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.footer-contact-list span {
  font-size: 14px;
  color: #c5d0d8;
  line-height: 1.5;
}
.footer-contact-list a {
  color: #c5d0d8;
  text-decoration: none;
}
.footer-contact-list a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-nav-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-col a {
  font-size: 14px;
  color: #c5d0d8;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #2e3d49;
  padding: 16px 0;
}
.footer-bottom span {
  font-size: 13px;
  color: #5a727e;
}
/* END FOOTER */

/* TABLE */
table {
  font-family: "Open Sans", sans-serif;
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
/* Zebra striping */
tr:nth-of-type(odd) {
  background: var(--color-light-bg);
}
th {
  padding: 15px 8px;
  background: #394650;
  color: white;
  font-weight: 600;
  border: 1px solid #394650;
  border-right: 1px solid #ccc;
}
th:last-child {
  border-right: 1px solid #394650;
}
td {
  padding: 6px;
  border: 1px solid #ccc;
  text-align: center;
}
tbody td {
  color: var(--color-dark);
  padding: 15px 8px;
}

@media only screen and (max-width: 760px),
  (min-device-width: 768px) and (max-device-width: 1024px) {
  /* Force table to not be like tables anymore */
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  thead tr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  tr {
    border: 1px solid #ccc;
  }

  td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
    padding-bottom: 5px;
  }

  td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 15px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
  }

  /*
	Label the data
	*/
  td:nth-of-type(1):before {
    content: "Typ";
  }
  td:nth-of-type(2):before {
    content: "Popis";
  }
  td:nth-of-type(3):before {
    content: "Rozměr";
  }
  td:nth-of-type(4):before {
    content: "Množství";
  }
  td:nth-of-type(5):before {
    content: "Další informace";
  }
}
/* TABLE */

/* MAP */
#map {
  width: 100%;
  height: 250px;
}
/* MAP */

/* ABOUT SPLIT SECTION */
.about-split {
  display: flex;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(44, 55, 64, 0.1);
}
.about-imgcol {
  flex: 0 0 44%;
  position: relative;
  overflow: hidden;
}
.about-imgcol img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.65s ease;
}
.about-split:hover .about-imgcol img {
  transform: scale(1.04);
}
.about-textcol {
  flex: 1;
  padding: 36px 40px 36px 44px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #e8eff4;
  border-left: none;
}
.about-textcol h2 {
  font-size: 24px;
  margin-top: 6px;
}
.about-textcol .heading {
  padding-top: 0;
  padding-bottom: 18px;
}
.about-lead {
  color: #596672;
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.about-timeline {
  border-left: 3px solid var(--color-primary);
  padding-left: 24px;
  margin-bottom: 28px;
  position: relative;
}
.about-tl-item {
  position: relative;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f6;
}
.about-tl-item:last-child {
  border-bottom: none;
}
.about-tl-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}
.about-tl-year {
  font-family: "Open Sans", sans-serif;
  font-size: 22px;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 3px;
  font-variant-numeric: lining-nums tabular-nums;
}
.about-tl-desc {
  font-size: 13px;
  color: #6d7c88;
  line-height: 1.5;
}
@media (max-width: 991px) {
  .about-split {
    flex-direction: column;
  }
  .about-imgcol {
    flex: none;
    height: 260px;
    max-height: none;
  }
  .about-textcol {
    min-height: 0;
    padding: 28px 24px;
    border-left: 1px solid #e8eff4;
    border-top: none;
  }
}
/* ABOUT SPLIT SECTION */

/* SCROLL UP STYLES */
.scroll-top-wrapper {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  text-align: center;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  width: 40px;
  height: 40px;
  line-height: 35px;
  right: 30px;
  bottom: 30px;
  padding-top: 2px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.scroll-top-wrapper:hover {
  opacity: 0.5;
}
.scroll-top-wrapper.show {
  visibility: visible;
  cursor: pointer;
  opacity: 1;
}
.scroll-top-wrapper i.fa {
  line-height: inherit;
}
@media screen and (max-width: 600px) {
  .scroll-top-wrapper {
    display: none;
  }
}
/* SCROLL UP STYLES */

/* MOBILE TWEAKS */
@media (max-width: 600px) {
  #before-header a.logo {
    max-width: 160px;
  }
  .sr-only {
    position: relative;
    font-weight: 600;
    left: -10px;
  }
  header.page h1 {
    margin-top: 30px;
  }
  header.page h1:after {
    display: none;
  }
}
@media (max-width: 961px) {
  #before-header a.logo {
    max-width: 160px;
  }
}
/* MOBILE TWEAKS */

/* --- Sdílené --------------------------------------- */
.hp-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.hp-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.hp-section-header .hp-section-label {
  display: block;
}
.hp-section-header h2 {
  font-size: 30px;
  margin-bottom: 0;
}
.hp-section-header h2:after {
  margin: 12px auto 0;
}
.hp-section-desc {
  color: #6d7c88;
  font-size: 14.5px;
  line-height: 1.7;
  margin-top: 22px;
  margin-bottom: 0;
}

/* --- Služby: proces spolupráce ---------------------- */
.hp-services-section {
  background: #fff;
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid #e8eff4;
}
.hp-services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hp-services-head .hp-section-header {
  text-align: left;
  margin: 0;
  max-width: 700px;
}
.hp-services-head .hp-section-header h2:after {
  margin: 12px 0 0;
}
.hp-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hp-process-media {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  border: 1px solid #dce8ef;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.28s,
    box-shadow 0.28s,
    border-color 0.28s;
}
.hp-process-media:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 93, 123, 0.16);
  border-color: var(--color-primary);
  text-decoration: none;
}
.hp-process-media-img {
  position: absolute;
  inset: 0;
}
.hp-process-media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.hp-process-media:hover .hp-process-media-img img {
  transform: scale(1.08);
}
.hp-process-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 29, 0.1) 10%,
    rgba(7, 19, 29, 0.8) 100%
  );
}
.hp-process-media-content {
  position: relative;
  z-index: 1;
  padding: 24px 24px 22px;
  color: #fff;
}
.hp-process-media h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 19px;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.hp-process-media h3:after {
  display: none;
}
.hp-process-media p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 14px;
}
.hp-process-link {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.hp-process-media:hover .hp-process-link {
  gap: 14px;
}

@media (max-width: 991px) {
  .hp-services-head {
    margin-bottom: 28px;
  }
  .hp-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-process-media {
    min-height: 420px;
  }
}
@media (max-width: 560px) {
  .hp-services-head .hp-section-header {
    max-width: 100%;
  }
  .hp-process-grid {
    grid-template-columns: 1fr;
  }
  .hp-process-media {
    min-height: 360px;
  }
}

/* --- Proč my: trust blok --------------------------- */
.hp-whyus-section {
  padding-top: 64px;
  padding-bottom: 64px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}
.hp-trust-wrap {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.hp-trust-main {
  flex: 1 1 420px;
  border: 1px solid #dce8ef;
  background: #fff;
  padding: 34px 32px;
  box-shadow: 0 8px 26px rgba(47, 71, 88, 0.06);
}
.hp-trust-main h2 {
  font-size: 26px;
  margin-top: 6px;
  margin-bottom: 16px;
}
.hp-trust-desc {
  color: #566877;
  margin: 0 0 18px;
  line-height: 1.7;
}
.hp-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-trust-list li {
  position: relative;
  color: var(--color-dark);
  font-size: 14px;
  padding-left: 28px;
  margin-bottom: 12px;
}
.hp-trust-list li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--color-primary);
}
.hp-trust-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hp-trust-metrics {
  flex: 1 1 420px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.hp-trust-metric {
  border: 1px solid #dce8ef;
  background: #fff;
  padding: 24px 22px 20px;
  transition:
    box-shadow 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.hp-trust-metric:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 124, 163, 0.13);
  border-color: var(--color-primary);
}
.hp-trust-value {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
  word-spacing: -0.08em;
  font-kerning: normal;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.hp-trust-metric h5 {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 9px;
}
.hp-trust-metric h5:after {
  display: none;
}
.hp-trust-metric p {
  font-size: 13px;
  color: #596672;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .hp-trust-wrap {
    flex-direction: column;
  }
  .hp-trust-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .hp-trust-main {
    padding: 26px 22px;
  }
  .hp-trust-metrics {
    grid-template-columns: 1fr;
  }
}

/* --- O firmě --------------------------------------- */
.hp-about-section {
  background: #f8fafc;
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid #e8eff4;
}

/* --- Reference slideshow --------------------------- */
.hp-reference-section {
  background: #fff;
  padding-top: 64px;
  padding-bottom: 72px;
}
.hp-reference-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.hp-reference-head h2 {
  font-size: 26px;
  margin: 8px 0 0;
}
.hp-reference-desc {
  max-width: 620px;
}
.hp-reference-slider {
  position: relative;
}
.hp-reference-viewport {
  overflow: hidden;
  box-shadow: 0 12px 38px rgba(44, 55, 64, 0.14);
}
.hp-reference-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}
.hp-reference-slide {
  position: relative;
  min-width: 100%;
  height: 430px;
  display: block;
  overflow: hidden;
}
.hp-reference-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 28, 36, 0.12) 0%,
    rgba(20, 28, 36, 0.68) 100%
  );
}
.hp-reference-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hp-reference-slide:hover img {
  transform: scale(1.03);
}
.hp-reference-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 19px;
  line-height: 1.35;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hp-reference-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 33, 41, 0.82);
  color: #fff;
  font-size: 28px;
  transition: background 0.2s ease;
}
.hp-reference-nav:hover {
  background: rgba(0, 153, 204, 0.95);
}
.hp-reference-prev {
  left: 18px;
}
.hp-reference-next {
  right: 18px;
}
.hp-reference-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.hp-reference-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #ced9e2;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.hp-reference-dot.is-active,
.hp-reference-dot:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}
@media (max-width: 991px) {
  .hp-reference-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .hp-reference-slide {
    height: 340px;
  }
}
@media (max-width: 640px) {
  .hp-reference-section {
    padding-top: 52px;
    padding-bottom: 58px;
  }
  .hp-reference-slide {
    height: 280px;
  }
  .hp-reference-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 15px;
  }
  .hp-reference-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .hp-reference-prev {
    left: 10px;
  }
  .hp-reference-next {
    right: 10px;
  }
}

/* --- Trust strip pod hero --------------------------------- */
.hp-trust-strip {
  background: #1e2830;
  border-bottom: 3px solid var(--color-primary);
}
.hp-trust-strip-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-trust-strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  flex: 1 1 160px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.hp-trust-strip-item:last-child {
  border-right: none;
}
.hp-trust-strip-icon {
  color: var(--color-primary);
  font-size: 22px;
  flex-shrink: 0;
}
.hp-trust-strip-val {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.hp-trust-strip-label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}
@media (max-width: 767px) {
  .hp-trust-strip-item {
    flex: 1 1 50%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .hp-trust-strip-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .hp-trust-strip-item:nth-child(even) {
    border-right: none;
  }
  .hp-trust-strip-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

/* --- Jak to funguje (3 kroky) ----------------------------- */
.hp-howto-section {
  background: #f4f8fb;
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid #e4edf3;
  border-bottom: 1px solid #e4edf3;
}
.hp-howto-section .hp-section-header {
  max-width: 640px;
  margin-bottom: 52px;
}
.hp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.hp-steps-grid::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(16.66% + 14px);
  right: calc(16.66% + 14px);
  height: 2px;
  background: #dce8ef;
  z-index: 0;
}
.hp-step {
  background: #fff;
  border: 1px solid #dce8ef;
  padding: 32px 26px 28px;
  position: relative;
  transition:
    box-shadow 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.hp-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 93, 123, 0.12);
  border-color: var(--color-primary);
}
.hp-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 19px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 153, 204, 0.35);
}
.hp-step h3 {
  font-size: 15px;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}
.hp-step h3:after {
  display: none;
}
.hp-step p {
  font-size: 13.5px;
  color: #596672;
  line-height: 1.7;
  margin: 0;
}
.hp-steps-cta {
  text-align: center;
  margin-top: 44px;
}
@media (max-width: 767px) {
  .hp-steps-grid {
    grid-template-columns: 1fr;
  }
  .hp-steps-grid::before {
    display: none;
  }
}

/* --- CTA Phone -------------------------------------------- */
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  margin-top: 14px;
  transition: color 0.2s;
}
.cta-phone i {
  color: var(--color-primary);
  font-size: 18px;
}
.cta-phone:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* =====================
   FLASH MESSAGES
   ===================== */
.flash {
  padding: 14px 20px;
  margin-bottom: 24px;
  border-radius: 4px;
  font-size: 15px;
}
.flash-success {
  background: #e6f7ec;
  border: 1px solid #52b36b;
  color: #1e6e34;
}
.flash-error {
  background: #fdecea;
  border: 1px solid #e05c5c;
  color: #8b1a1a;
}

/* =====================
   KONTAKT PAGE
   ===================== */
.kontakt-section {
  padding-top: 48px;
  padding-bottom: 64px;
  background-color: #f4f7fa;
}
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 767px) {
  .kontakt-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.kontakt-info h2 {
  font-size: 22px;
  margin: 6px 0 12px;
}
.kontakt-intro {
  color: #555;
  margin-bottom: 28px;
  font-size: 15px;
}
.kontakt-info-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kontakt-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.kontakt-info-list .fa {
  color: var(--color-primary);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.kontakt-info-list a {
  color: #1e2830;
  text-decoration: none;
}
.kontakt-info-list a:hover {
  color: var(--color-primary);
}
#map {
  width: 100%;
  height: 260px;
  border-radius: 4px;
  background: #e8e8e8;
}
.kontakt-section iframe {
  border: 0;
  display: block;
}

/* =====================
   CONTACT FORM BOX
   ===================== */
.kontakt-form-box {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.kontakt-form-box h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #1e2830;
}
.kontakt-form-box > p {
  color: #718096;
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.6;
}
/* Nette form = table, override globálních table stylů */
.kontakt-form-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.kontakt-form-box table,
.kontakt-form-box tbody,
.kontakt-form-box tr {
  display: block;
}
.kontakt-form-box tr {
  background: transparent;
  margin-bottom: 20px;
}
.kontakt-form-box th {
  display: block;
  background: transparent;
  color: #374151;
  border: none;
  padding: 0 0 6px 0;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 100%;
}
.kontakt-form-box td {
  display: block;
  border: none;
  padding: 0;
  text-align: left;
}
.form-row {
  margin-bottom: 20px;
}
.kontakt-form-box form > div {
  margin-bottom: 20px;
}
.kontakt-form-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.kontakt-form-box input[type="text"],
.kontakt-form-box input[type="email"],
.kontakt-form-box textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: #1e2830;
  background: #fff;
  box-sizing: border-box;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.kontakt-form-box input[type="text"]:focus,
.kontakt-form-box input[type="email"]:focus,
.kontakt-form-box textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.12);
  background: #fff;
}
.kontakt-form-box textarea {
  height: 140px;
  resize: vertical;
}
.kontakt-form-box .error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}
.kontakt-form-box input[type="submit"],
.kontakt-form-box .attachment-button {
  display: inline-block;
  width: 100%;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  text-align: center;
}
.kontakt-form-box input[type="submit"]:hover,
.kontakt-form-box .attachment-button:hover {
  background: #007aa8;
}

/* =====================
   ATYPICAL MANUFACTURING BANNER
   ===================== */
.hp-atypical-banner {
  background: #1a2c38;
  padding: 56px 0;
}
.hp-atypical-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
@media (max-width: 767px) {
  .hp-atypical-inner {
    align-items: center;
  }
}
.hp-atypical-content {
  flex: 1;
}
.hp-atypical-content p {
  color: #8fa3b0;
  font-size: 15px;
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.65;
}
.hp-atypical-content .btn-primary {
  margin-top: 28px;
  display: inline-block;
}
.hp-atypical-banner .hp-section-label--light {
  color: var(--color-primary);
  background: rgba(0, 153, 204, 0.12);
  padding: 3px 10px;
  border-radius: 3px;
}
.hp-atypical-content h2 {
  color: #fff;
  font-size: 28px;
  margin: 12px 0 14px;
  line-height: 1.3;
}
.hp-atypical-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}
.hp-atypical-secondary {
  font-size: 14px;
  color: #8fa3b0;
  text-decoration: none;
  text-align: center;
  transition: color 0.15s;
}
.hp-atypical-secondary:hover {
  color: #fff;
  text-decoration: none;
}
.hp-section-label--light {
  color: var(--color-primary);
}

/* Střídání pozadí sekcí */
.hp-services-section,
.hp-whyus-section,
.hp-reference-section {
  background-color: #fff;
}
.hp-howto-section,
.hp-about-section {
  background-color: #eef3f7;
}

/* =====================
   SUBPAGE STYLES (sp-)
   ===================== */

/* --- Intro sekce --- */
.sp-intro-section {
  background-color: #fff;
  padding-top: 64px;
  padding-bottom: 64px;
}
.sp-intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.sp-capabilities-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 767px) {
  .sp-intro-layout,
  .sp-capabilities-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.sp-page-title {
  font-size: 36px;
  color: #1e2830;
  margin: 10px 0 18px;
  line-height: 1.2;
}
.sp-intro-lead {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 28px;
}
.sp-intro-lead--narrow {
  max-width: 640px;
}
.sp-intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sp-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.sp-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef3f7;
  font-size: 15px;
  color: #2d3748;
}
.sp-feature-list li:last-child {
  border-bottom: none;
}
.sp-feature-list li i {
  color: var(--color-primary);
  margin-top: 2px;
  flex-shrink: 0;
}
.sp-capabilities-title {
  font-weight: 600;
  color: #1e2830;
  font-size: 15px;
  margin: 0 0 12px;
}
.sp-capabilities-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp-capabilities-list li {
  padding: 11px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sp-capabilities-list li:last-child {
  border-bottom: none;
}
.sp-capabilities-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Sdílená sekce header --- */
.sp-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.sp-section-header h2 {
  font-size: 30px;
  color: #1e2830;
  margin: 10px 0 8px;
}
.sp-section-desc {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

/* --- Galerie (AtypickaVyroba, Konstrukce) --- */
.sp-gallery-section {
  background-color: #fff;
}
.sp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 767px) {
  .sp-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .sp-gallery-grid {
    grid-template-columns: 1fr;
  }
}
.sp-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s;
}
.sp-gallery-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.sp-gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.sp-gallery-item span {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: #4a5568;
}

/* --- Equipment cards (Kooperace) --- */
.sp-equipment-section {
  background: linear-gradient(180deg, #f4f8fb 0%, #eef3f7 100%);
  padding-top: 68px;
  padding-bottom: 78px;
}
.sp-equipment-section .sp-section-header {
  margin-bottom: 32px;
}
.sp-equipment-section .sp-section-header h2 {
  margin-bottom: 12px;
}
.sp-equipment-section .sp-section-desc {
  max-width: 760px;
  margin: 0 auto;
  color: #5f7180;
  font-size: 15px;
  line-height: 1.65;
}
.sp-equipment-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
/* Odd rows: image left (55%) | text right (45%) */
.sp-equipment-card {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: stretch;
  overflow: hidden;
  min-height: 250px;
  border-radius: 10px;
  border: 1px solid #d8e1e8;
  background: #fff;
  box-shadow: 0 14px 36px rgba(32, 57, 76, 0.08);
  transition: transform 0.2s ease;
}
.sp-equipment-card:hover {
  transform: translateY(-3px);
}
.sp-equipment-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.sp-equipment-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 30px;
  min-width: 0;
}
.sp-equipment-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e2830;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 14px;
  padding-left: 14px;
  position: relative;
}
.sp-equipment-card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: var(--color-primary);
}
.sp-equipment-card-body ul {
  margin: 0;
  padding-left: 14px;
  list-style: none;
}
.sp-equipment-card-body ul li {
  font-size: 14px;
  color: #4f5f6d;
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
}
.sp-equipment-card-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}
/* Even rows: text left (45%) | image right (55%) — flip columns AND use order */
.sp-equipment-card:nth-child(even) {
  grid-template-columns: 45% 55%;
}
.sp-equipment-card:nth-child(even) img {
  order: 2;
}
.sp-equipment-card:nth-child(even) .sp-equipment-card-body {
  order: 1;
}
@media (max-width: 767px) {
  .sp-equipment-section {
    padding-top: 52px;
    padding-bottom: 56px;
  }
  .sp-equipment-card,
  .sp-equipment-card:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .sp-equipment-card img {
    width: 100%;
    height: 240px;
  }
  .sp-equipment-card-body {
    padding: 22px 20px;
  }
  .sp-equipment-card-title,
  .sp-equipment-card-body ul {
    padding-left: 0;
  }
  .sp-equipment-card-title::before {
    display: none;
  }
  .sp-equipment-card:nth-child(even) img,
  .sp-equipment-card:nth-child(even) .sp-equipment-card-body {
    order: initial;
  }
}

/* --- Katalog produktů (VyrobniProgram) --- */
.sp-catalog-section {
  background-color: #fff;
  padding-top: 32px;
  padding-bottom: 64px;
}
.sp-catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 767px) {
  .sp-catalog-layout {
    grid-template-columns: 1fr;
  }
}
.sp-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #718096;
  margin: 0 0 12px;
}
.sp-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 90px;
}
.sp-categories-list li a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: #2d3748;
  text-decoration: none;
  border-radius: 4px;
  transition:
    background 0.15s,
    color 0.15s;
}
.sp-categories-list li a:hover,
.sp-categories-list li.active a {
  background: #eef3f7;
  color: var(--color-primary);
}
.sp-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .sp-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .sp-product-grid {
    grid-template-columns: 1fr;
  }
}
.sp-product-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.sp-product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.sp-product-card-img {
  padding: 12px;
}
.sp-product-card-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  display: block;
}
.sp-product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sp-product-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e2830;
  margin: 0 0 8px;
  line-height: 1.3;
}
.sp-product-card-name::after {
  display: none;
}
.sp-product-card-desc {
  font-size: 13px;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}
.sp-product-card-btn {
  display: inline-block;
  align-self: flex-start;
  font-size: 14px;
  padding: 8px 20px;
}

/* Modal (VyrobniProgram) */
.custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.custom-modal.flex {
  display: flex;
}
.sp-modal-inner {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 6px;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}
.sp-modal-header {
  background: #1e2830;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sp-modal-header h4 {
  color: #fff;
  font-size: 16px;
  margin: 0;
}
.sp-modal-close {
  background: none;
  border: none;
  color: #8fa3b0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s;
}
.sp-modal-close:hover {
  color: #fff;
}
.sp-modal-body {
  padding: 20px;
}
.sp-modal-body img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
  border-radius: 3px;
}
.sp-modal-body p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
}

/* --- CTA strip (sdílený pro všechny podstránky) --- */
.sp-cta-strip {
  background: #eef3f7;
  padding: 44px 0;
}
.sp-cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 767px) {
  .sp-cta-strip .container {
    flex-direction: column;
    text-align: center;
  }
}
.sp-cta-strip span {
  color: #1e2830;
  font-size: 20px;
  font-weight: 500;
}

/* =====================
   HP CONTACT SECTION
   ===================== */
.hp-contact-section {
  background: #1a2c38;
  padding: 72px 0;
}
.hp-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .hp-contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.hp-contact-info h2 {
  font-size: 30px;
  color: #fff;
  margin: 6px 0 14px;
  line-height: 1.2;
}
.hp-contact-intro {
  color: #a8c0cc;
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hp-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hp-contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hp-contact-list .fa {
  color: var(--color-primary);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.hp-contact-list div {
  color: #c8d8e4;
  font-size: 15px;
  line-height: 1.7;
}
.hp-contact-list strong {
  color: #fff;
}
.hp-contact-list a {
  color: #c8d8e4;
  text-decoration: none;
  transition: color 0.15s;
}
.hp-contact-list a:hover {
  color: var(--color-primary);
}
.hp-contact-form-col .flash {
  margin-bottom: 16px;
}

/* =====================
   HP MAP SECTION
   ===================== */
.hp-map-section {
  display: block;
  line-height: 0;
}
.hp-map-section iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}
.hp-contact-form-col .kontakt-form-box {
  padding: 28px 32px;
}
.hp-contact-form-col .kontakt-form-box textarea {
  height: 100px;
}
