/*
Theme Name: Stavebni podik Rakovnik theme
Version: 1.0.0
Description: style for the website of the construction company Rakovník
Author: Petr Pecánek
*/

:root {
  --bg-main: #232c7c;
  --bg-secondary: #f9ce04;
  --color-light: #f5f5f5;
  --color-gray: #393e46;

  --fs-h1: 2rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.25rem;
  --fs-p: 1rem;
  --fs-nav: 1rem;
  --fs-small: 0.875rem;

  --fw-bold: 700;
  --fw-medium: 500;
  --fw-regular: 300;

  --desktop-max-width: 1600px;

  --shadow-std: 0 6px 12px rgba(0, 0, 0, 0.3);
  --transition-std: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-light);
  font-family: "Montserrat", sans-serif;
  color: var(--color-gray);
  line-height: 1.6;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-gray);
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
}

.text-left {
  text-align: left;
}

.card-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  color: var(--color-gray);
  margin-bottom: 15px;
}

.sub-title {
  font-size: var(--fs-p);
  font-weight: var(--fw-bold);
  color: var(--color-gray);
  margin-bottom: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btns-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btns-row.left-align {
  justify-content: flex-start;
  margin-top: 30px;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-main);
  color: var(--color-light);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: var(--fw-medium);
  transition: var(--transition-std);
}

.site-btn:hover {
  transform: translateY(-3px);
  background-color: #2f3a9e;
}

.site-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--bg-secondary);
  transition: var(--transition-std);
}

.site-btn:hover svg {
  transform: translateX(5px);
}

.site-btn.sm-btn {
  padding: 10px 25px;
  font-size: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid transparent;
  background-color: var(--color-light);
  border-radius: 30px;
  font-family: inherit;
  font-size: var(--fs-small);
  color: var(--color-gray);
  transition: var(--transition-std);
  appearance: none;
}

.form-group textarea {
  border-radius: 20px;
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23393E46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 18px;
  padding-right: 50px;
  color: #757575;
}

.form-group select:valid {
  color: var(--color-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--bg-secondary);
  box-shadow: 0 0 15px rgba(249, 206, 4, 0.4);
}

.form-btn {
  width: auto;
  align-self: flex-end;
  background-color: var(--color-light);
  color: var(--bg-main);
  border: none;
  padding: 12px 40px;
  cursor: pointer;
}

.form-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--bg-main);
}

.form-group.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  margin-bottom: 15px;
}

.wpcf7-list-item {
  margin: 0;
}

.wpcf7-not-valid-tip {
  padding-left: 15px;
}

.checkbox-group input[type="checkbox"] {
  position: relative;
  top: 2px;
  margin-right: 4px !important;
  width: 16px;
  height: 16px;
  appearance: auto;
  border: none;
  border-radius: 5px;
  background-color: var(--color-light);
  cursor: pointer;
  margin: 0;
  accent-color: var(--bg-secondary);
}

.wpcf7-response-output {
  color: var(--color-light);
}

.checkbox-group label {
  color: var(--color-light);
  font-size: var(--fs-small);
  cursor: pointer;
}

.checkbox-group a {
  color: var(--bg-secondary);
  text-decoration: underline;
  transition: var(--transition-std);
}

.checkbox-group a:hover {
  opacity: 0.8;
  text-decoration: none;
}

.carousel-wrapper {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-std);
  position: relative;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(245, 245, 245, 0.85);
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-std);
  transition: var(--transition-std);
  opacity: 0;
}

.carousel-wrapper:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--color-gray);
  transition: var(--transition-std);
}

.carousel-btn:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:hover svg {
  fill: var(--bg-main);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.scroll-hint {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--color-light);
  backdrop-filter: blur(5px);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  pointer-events: none;
  transition: var(--transition-std);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-std);
  overflow: hidden;
  border-radius: 15px;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--color-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-std);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-std);
  z-index: 10;
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--color-gray);
  margin-left: 3px;
  transition: var(--transition-std);
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--bg-secondary);
}

.play-btn:hover svg {
  fill: var(--bg-main);
}

.play-btn.hidden {
  display: none;
}

header {
  background-color: var(--bg-main);
  box-shadow: var(--shadow-std);
  position: relative;
  z-index: 1000;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: var(--desktop-max-width);
  margin: 0 auto;
}

.logo {
  display: block;
  max-width: 120px;
  height: auto;
}

.menu-btn {
  display: none;
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 16px 10px;
  user-select: none;
  z-index: 999;
}

.navicon {
  display: block;
  position: relative;
  background: var(--color-light);
  width: 24px;
  height: 2px;
  transition: background 0.2s ease-out;
}

.navicon::before,
.navicon::after {
  content: "";
  display: block;
  position: absolute;
  background: var(--color-light);
  width: 100%;
  height: 100%;
  transition: all 0.2s ease-out;
}

.navicon::before {
  top: 7px;
}

.navicon::after {
  top: -7px;
}

.menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.menu-btn:checked ~ .menu-icon .navicon::before {
  transform: rotate(-45deg);
  top: 0;
}

.menu-btn:checked ~ .menu-icon .navicon::after {
  transform: rotate(45deg);
  top: 0;
}

.menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-main);
  border-top: 1px solid rgb(245, 245, 245, 0.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  z-index: 1000;
}

.menu-btn:checked ~ .menu {
  max-height: 600px;
  box-shadow: var(--shadow-std);
}

.menu li {
  width: 100%;
  text-align: center;
}

.menu li a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: var(--color-light);
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  transition: var(--transition-std);
  position: relative;
}

.menu li a:hover {
  color: var(--bg-secondary);
}

.menu li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.arrow svg {
  width: 16px;
  height: 16px;
  fill: var(--color-light);
  vertical-align: middle;
  transition: var(--transition-std);
}

.menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #2f3a9e;
  width: 100%;
  padding: 0;
  list-style: none;
}

.sub-menu li a {
  padding-left: 0;
  font-size: var(--fs-small);
}

.menu-item-has-children.is-open > .sub-menu {
  max-height: 600px;
}

.menu-item-has-children.is-open .arrow svg {
  transform: rotate(180deg);
}

.page-container,
.home-container {
  max-width: 1200px;
  margin: 0 auto;
}

.single-page-container {
  padding: 40px 30px;
}

.single-page-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.single-page-content ul {
  margin-left: 15px;
}

.home-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: var(--desktop-max-width);
}

.page-banner {
  background-color: var(--color-gray);
  color: var(--color-light);
  padding: 40px 20px;
  text-align: center;
}

.page-banner h1 {
  color: var(--color-light);
  margin-bottom: 0;
}

.breadcrumbs {
  display: block;
  font-size: var(--fs-small);
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.breadcrumbs a {
  color: var(--color-light);
  text-decoration: none;
  opacity: 0.7;
  transition: var(--transition-std);
}

.breadcrumbs a:hover {
  text-decoration: underline;
  opacity: 1;
}

footer {
  background-color: var(--color-gray);
  color: var(--color-light);
  padding: 40px 30px 20px 30px;
}

.site-footer {
  max-width: var(--desktop-max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-top .logo {
  max-width: 150px;
}

.back-top-btn {
  width: 50px;
  height: 50px;
  background-color: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-std);
  box-shadow: var(--shadow-std);
}

.back-top-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--color-gray);
}

.back-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(249, 206, 4, 0.4);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-title {
  color: var(--bg-secondary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-secondary);
  display: inline-block;
  width: fit-content;
}

.footer-text p,
.legal-note {
  margin-bottom: 10px;
  font-size: 1rem;
}

.legal-note {
  margin-top: 20px;
  font-size: var(--fs-small) !important;
  opacity: 0.8;
}

.footer-menu,
.footer-contact-list {
  list-style: none;
  padding: 0;
}

.footer-menu li,
.footer-contact-list li {
  margin-bottom: 15px;
}

.footer-menu a,
.footer-contact-list a,
.footer-col > a {
  text-decoration: none;
  color: var(--color-light);
  transition: var(--transition-std);
}

.footer-menu a:hover {
  color: var(--bg-secondary);
}

.footer-contact-list a:hover,
.footer-col > a:hover {
  text-decoration: underline;
  color: var(--bg-secondary);
}

.footer-col > a {
  display: inline-block;
  margin-top: 10px;
  opacity: 0.8;
  text-decoration: underline;
}

.footer-col > a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--bg-secondary);
  padding-top: 20px;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-light);
}

.footer-bottom p {
  opacity: 0.8;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-bottom a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.site-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 40px 30px;
  color: var(--color-light);
  text-align: center;
  overflow: hidden;
}

.hero-wrapper {
  gap: 30px;
  width: 100%;
  position: relative;
  height: 100%;
}

.hero-content h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-description {
  font-size: var(--fs-p);
  margin-bottom: 20px;
  opacity: 0.9;
  max-width: 800px;
}

.opening-hours {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.opening-hours h3 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--bg-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.opening-hours a {
  font-weight: var(--fw-medium);
  text-decoration: none;
  color: var(--color-light);
  transition: var(--transition-std);
}

.opening-hours a:hover {
  text-decoration: underline;
  color: var(--bg-secondary);
}

.opening-hours table {
  width: 100%;
  font-size: var(--fs-small);
}

.opening-hours td {
  padding: 5px 0;
  text-align: left;
}

.opening-hours td:last-child {
  text-align: right;
  font-weight: var(--fw-bold);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: var(--bg-main);
  padding: 20px 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  justify-content: center;
  align-items: center;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--color-light);
  font-weight: var(--fw-medium);
  transition: var(--transition-std);
}

.contact-row:hover {
  text-decoration: underline;
  color: var(--bg-secondary);
}

.contact-row svg {
  width: 24px;
  height: 24px;
  fill: var(--bg-secondary);
}

.services {
  padding: 40px 30px;
}

.services-content {
  text-align: center;
  max-width: 1200px;
  margin-bottom: 30px;
}

.services-content p {
  font-size: var(--fs-p);
}

.services-grid {
  display: grid;
  width: 100%;
  gap: 30px;
  margin-bottom: 40px;
  grid-template-columns: 1fr;
}

.service-box {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-std);
  height: 100%;
}

.service-box a {
  text-decoration: none;
}

.service-box img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.4s ease;
}

.service-box:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.service-box h3 {
  padding: 30px 20px;
  color: var(--color-light);
  text-align: center;
  margin: 0;
  border-top: 5px solid var(--color-light);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-height: 130px;
  transition: var(--transition-std);
}

.service-box a:hover > h3 {
  color: var(--bg-secondary);
}

.services-list-section {
  padding: 40px 30px;
  background-color: var(--color-light);
}

.services-intro {
  text-align: center;
  margin-bottom: 40px;
}

.services-intro h2 {
  margin-bottom: 0;
}

.services-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.service-row {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  align-items: center;
}

.grid-layout {
  display: grid;
  gap: 30px;
}

.service-text {
  width: 100%;
}

.service-text h3 {
  text-align: left;
  margin-bottom: 30px;
}

.custom-list ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.custom-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: var(--fs-p);
  line-height: 1.5;
}

.custom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23232C7C' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.grid-layout .carousel-wrapper {
  grid-row: 1;
}

.extra-info-block,
.price-table {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid var(--bg-secondary);
  margin-bottom: 30px;
}

.grid-layout .extra-info-block,
.grid-layout .price-table {
  margin-bottom: 0;
}

.extra-info-block p {
  font-size: var(--fs-small);
  color: var(--color-gray);
}

.info-content p iframe {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  margin: 10px 0;
}

.table-subtitle {
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  margin: 15px 0 5px 0;
  color: var(--bg-main);
  text-transform: uppercase;
}

.table-subtitle:first-of-type {
  margin-top: 5px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-small);
  padding: 10px 0;
  border-bottom: 1px dashed rgb(57, 62, 70, 0.3);
}

.price-row:last-of-type {
  border-bottom: none;
}

.price-row span:last-child {
  font-weight: var(--fw-bold);
  color: var(--color-gray);
}

.price-note {
  font-size: 0.8rem;
  color: rgb(57, 62, 70, 0.6);
  margin-top: 5px;
  font-style: italic;
}

.about-us {
  padding: 40px 10px;
}

.about-content {
  text-align: center;
  max-width: 1200px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.about-content p {
  font-size: var(--fs-p);
}

.about-intro {
  padding: 40px 30px;
  text-align: center;
}

.intro-text {
  margin-bottom: 40px;
}

.intro-text p {
  font-size: var(--fs-p);
}

.intro-text h2 {
  margin-bottom: 40px;
}

/*.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: var(--bg-secondary);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  font-size: var(--fs-small);
  color: var(--color-gray);
  font-weight: var(--fw-medium);
}*/

.about-mission {
  padding: 40px 30px;
}

.about-wrapper.split-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mission-image {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-std);
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mission-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mission-content h3 {
  text-align: left;
}

.mission-content p {
  font-size: var(--fs-p);
}

.about-steps {
  padding: 40px 30px;
  text-align: center;
}

.about-steps h2 {
  margin-bottom: 40px;
}

.steps-grid {
  counter-reset: kroky;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.step-card {
  background-color: var(--bg-main);
  color: var(--color-light);
  padding: 30px 25px;
  border-radius: 15px;
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  transition: var(--transition-std);
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-card::before {
  counter-increment: kroky;
  content: "0" counter(kroky);
  position: absolute;
  top: -15px;
  left: 15px;
  font-size: 7rem;
  font-weight: 900;
  color: var(--bg-secondary);
  opacity: 0.15;
  z-index: 0;
  line-height: 1;
  pointer-events: none;
}

.step-card h4 {
  font-weight: var(--fw-bold);
  color: var(--bg-secondary);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.step-card p {
  font-size: var(--fs-small);
  line-height: 1.5;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.about-history {
  padding: 40px 30px 80px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.history-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: var(--shadow-std);
}

.history-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--bg-main);
}

.about-history p {
  font-size: var(--fs-p);
}

.contact {
  background-color: var(--bg-main);
  padding: 40px 30px;
}

.contact-wrapper {
  display: block;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-map {
  width: 100%;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-std);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(0.8) contrast(1.1);
}

.contact-form-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-wrapper h2 {
  color: var(--bg-secondary);
  text-align: left;
}

.contact-info-section {
  padding: 40px 30px;
}

.contact-people-section {
  padding: 20px 30px;
}

.section-header h2 {
  margin-bottom: 40px;
}

.people-section-header {
  margin-bottom: 20px !important;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-text-col h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--color-gray);
}

.address {
  margin-bottom: 10px;
  font-size: var(--fs-p);
}

.contact-details-list p,
.legal-details-list p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-details-list a {
  text-decoration: none;
  color: var(--color-gray);
  transition: var(--transition-std);
}

.contact-details-list a:hover {
  text-decoration: underline;
  color: var(--bg-main);
}

.contact-details-list,
.legal-details-list {
  margin-bottom: 20px;
}

.registry-note {
  font-size: var(--fs-small);
  opacity: 0.8;
}

.info-map-col {
  width: 100%;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-std);
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 auto;
}

.person-card {
  text-align: center;
  padding: 20px 10px;
  border-bottom: 1px solid var(--color-gray);
}

.person-card br {
  display: none;
}

.person-card:last-child {
  border-bottom: none;
}

.person-name {
  font-weight: var(--fw-bold);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.person-role {
  color: var(--bg-main);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  margin-bottom: 10px;
}

.person-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 10px;
  text-decoration: none;
  color: var(--color-gray);
  font-size: var(--fs-small);
  margin: 0 auto 5px auto;
  transition: var(--transition-std);
}

.person-link::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.person-tel::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path fill="%23f9ce04" d="M224.2 89C216.3 70.1 195.7 60.1 176.1 65.4L170.6 66.9C106 84.5 50.8 147.1 66.9 223.3C104 398.3 241.7 536 416.7 573.1C493 589.3 555.5 534 573.1 469.4L574.6 463.9C580 444.2 569.9 423.6 551.1 415.8L453.8 375.3C437.3 368.4 418.2 373.2 406.8 387.1L368.2 434.3C297.9 399.4 241.3 341 208.8 269.3L253 233.3C266.9 222 271.6 202.9 264.8 186.3L224.2 89z"/></svg>');
}

.person-mail::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path fill="%23f9ce04" d="M112 128C85.5 128 64 149.5 64 176C64 191.1 71.1 205.3 83.2 214.4L291.2 370.4C308.3 383.2 331.7 383.2 348.8 370.4L556.8 214.4C568.9 205.3 576 191.1 576 176C576 149.5 554.5 128 528 128L112 128zM64 260L64 448C64 483.3 92.7 512 128 512L512 512C547.3 512 576 483.3 576 448L576 260L377.6 408.8C343.5 434.4 296.5 434.4 262.4 408.8L64 260z"/></svg>');
}

.person-link:hover {
  text-decoration: underline;
  color: var(--bg-secondary);
}

.contact-bottom-section {
  background-color: var(--bg-main);
  color: var(--color-light);
  padding: 40px 30px;
}

.bottom-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-form-block h3 {
  color: var(--bg-secondary);
  text-align: left;
}

.contact-bottom-section .opening-hours-block {
  background-color: transparent;
  backdrop-filter: none;
  padding: 0;
  position: static;
  box-shadow: none;
  max-width: 100%;
  width: 100%;
}

.contact-bottom-section .opening-hours-block h3 {
  color: var(--bg-secondary);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  margin-bottom: 20px;
  text-transform: none;
  letter-spacing: normal;
  text-align: left;
}

.contact-bottom-section .opening-hours-block table {
  background-color: var(--color-light);
  color: var(--color-gray);
  border-radius: 15px;
  padding: 10px 30px;
  display: block;
  box-shadow: var(--shadow-std);
  width: 100%;
}

.contact-bottom-section .opening-hours-block tbody {
  display: table;
  width: 100%;
}

.contact-bottom-section .opening-hours-block td {
  padding: 12px 10px;
  font-size: 0.95rem;
}

.contact-bottom-section .opening-hours-block td a {
  color: var(--color-gray);
}

.contact-bottom-section .opening-hours-block td a:hover {
  color: var(--bg-main);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 1024px) {
  .carousel-btn {
    display: none !important;
  }
}

@media (min-width: 768px) {
  :root {
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --fs-p: 1.125rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-us {
    padding: 40px 30px;
  }

  .about-content {
    padding: 0;
  }

  .play-btn {
    width: 90px;
    height: 90px;
  }

  .play-btn svg {
    width: 35px;
    height: 35px;
    margin-left: 5px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding: 30px;
  }

  .menu-icon {
    display: none;
  }

  .menu {
    position: static;
    max-height: unset;
    overflow: visible;
    background-color: transparent;
    border-top: none;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 0;
  }

  .menu-btn:checked ~ .menu {
    box-shadow: none;
    max-height: unset;
  }

  .menu li {
    position: relative;
    width: auto;
  }

  .menu li a {
    padding: 0;
  }

  .menu li a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: var(--bg-secondary);
    transition: var(--transition-std);
    margin-top: 4px;
    position: absolute;
    bottom: -6px;
    left: 0;
  }

  .menu li a:hover::after {
    width: 100%;
  }

  .menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background-color: #2f3a9e;
    box-shadow: var(--shadow-std);
    border-radius: 5px;
    z-index: 1100;
    padding: 10px 0;
  }

  .menu-item-has-children:hover > .sub-menu {
    display: block;
    max-height: none;
    animation: fadeIn 0.3s ease;
  }

  .menu-item-has-children:hover .arrow svg {
    transform: rotate(180deg);
  }

  .sub-menu li a {
    padding: 10px;
  }

  .menu .sub-menu li a:hover::after {
    width: 0;
  }

  .menu li.menu-item-has-children > a::after {
    width: 0;
  }

  .site-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 85vh;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 180px;
  }

  .opening-hours {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: auto;
    min-width: 300px;
    text-align: left;
  }

  .contact-info {
    position: absolute;
    bottom: 0;
    right: 30px;
    width: auto;
    max-width: none;
    flex-direction: row;
    border-radius: 15px 15px 0 0;
    margin: 0;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-content {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
  }

  .contact-map {
    flex: 6;
    height: auto;
    min-height: 550px;
  }

  .contact-form-wrapper {
    flex: 4;
    justify-content: center;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
  }

  .footer-col {
    flex: 1;
  }

  .footer-col:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col:nth-child(2) .footer-title {
    width: auto;
    min-width: 100px;
    text-align: center;
  }

  .footer-menu {
    text-align: center;
  }

  .service-row {
    flex-direction: row-reverse;
    gap: 60px;
    align-items: flex-start;
  }

  .grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 60px;
  }

  .service-row:nth-child(even) {
    flex-direction: row;
  }

  .service-text {
    flex: 1;
  }

  .carousel-wrapper {
    grid-column: 2;
  }

  .service-image {
    flex: 1;
    height: 400px;
  }

  #cerpaci-stanice .carousel-wrapper {
    grid-column: 1;
  }

  .about-mission {
    display: flex;
    justify-content: center;
  }

  .about-wrapper.split-layout {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .mission-image {
    flex: 1;
    height: 450px;
  }

  .mission-content {
    flex: 1;
    align-items: flex-start;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
  }

  .info-text-col {
    flex: 1;
    max-width: 450px;
  }

  .info-map-col {
    flex: 1.2;
    height: 450px;
  }

  .people-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    justify-content: space-between;
  }

  .person-card {
    width: 100%;
    max-width: 350px;
  }

  .person-card:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .bottom-layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
  }

  .contact-form-block {
    flex: 1.2;
  }

  .contact-bottom-section .opening-hours-block {
    flex: 1;
  }
}
