/* ========================================================
   GLOBAL
   ======================================================== */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Mulish', sans-serif;
  margin: 0;
  background-color: #f9f9f9;
}

h1, h2 {
  color: #555;
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 12px;
}

h3 {
  color: #555;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
}

p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 20px;
}


/* ========================================================
   MAIN SECTION
   ======================================================== */

/* Services overview */
.main-services-overview {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.main-services-overview h2 {
  margin-bottom: 40px;
}

.main-services-grid {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.main-service-item {
  flex: 1 1 calc(33.333% - 20px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.main-service-item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.main-service-content {
  padding: 30px 28px 0;
  flex-grow: 1;
}

.main-service-item h3 {
  margin: 0 0 14px;
}

.main-service-item p {
  margin-bottom: 0;
}

.main-service-links {
  padding: 30px 28px;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .main-services-grid {
    flex-direction: column;
    gap: 40px;
  }

  .main-service-item {
    flex: 1 1 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Main container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Virtual tour */
.main-tour-section {
  text-align: center;
  padding: 60px 20px;
}

.main-tour-section h2 {
  margin-bottom: 20px;
  text-align: center;
}

.main-tour-section p {
  margin-bottom: 24px;
}

.main-tour-grid {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-tour-text {
  flex: 1 1 35%;
  min-width: 0;
  text-align: center;
}

.main-tour-frame {
  flex: 1 1 60%;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
}

.main-tour-frame iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

.main-tour-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  color: #333333;
  border: 1px solid #333333;
  background: transparent;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.main-tour-button:hover {
  background: #333333;
  color: white;
}

@media screen and (max-width: 768px) {
  .main-tour-grid {
    flex-direction: column;
    gap: 30px;
  }

  .main-tour-frame {
    width: 100%;
  }
}

/* Main form */
.main-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.main-form-section form {
  max-width: 580px;
  width: 100%;
  padding: 70px;
  border-radius: 16px;
  background: #f9f9f9;
  box-sizing: border-box;
}

.main-form-header h2 {
  text-align: center;
  margin-bottom: 8px;
}

.main-form-header p {
  text-align: center;
  margin-bottom: 28px;
}

.main-form-section input,
.main-form-section textarea {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.main-form-section select {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  background-color: white;
}

.main-form-section input:focus,
.main-form-section textarea:focus,
.main-form-section select:focus {
  outline: none;
  border-color: #333333;
}

.main-send {
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 10px;
  color: rgb(51, 51, 51);
  border: solid 1px rgba(51, 51, 51, 0.6);
  background-color: transparent;
  transition: background 0.2s, color 0.2s;
}

.main-send:hover {
  background: #333333;
  color: white;
}

.main-gdpr-box {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
}

.main-gdpr-label {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 14px;
  cursor: pointer;
}

.main-gdpr-label input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-block !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  border-radius: 5px;
  border: 1.5px solid #333333 !important;
  background-color: transparent !important;
  cursor: pointer;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.main-gdpr-label input[type="checkbox"]:checked {
  background-color: #333333 !important;
  border-color: #333333 !important;
}

.main-gdpr-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.main-gdpr-text {
  line-height: 1.5;
}

.main-gdpr-text a {
  color: #222;
  text-decoration: underline;
  font-weight: 600;
}


/* ========================================================
   PORTFOLIO SECTION
   ======================================================== */

.portfolio-section .portfolio-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.portfolio-section h1 {
  text-align: center;
  margin-bottom: 10px;
}

.portfolio-subtitle {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.realizace-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  position: relative;
}

.realizace-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.realizace-card iframe,
.realizace-card img {
  width: 100%;
  height: auto;
  flex: 1;
  object-fit: cover;
  border: none;
}

.portfolio-card-content {
  padding: 20px;
  min-height: 80px;
}

.portfolio-card-content h3 {
  margin: 0 0 10px;
}

.portfolio-card-content p {
  margin: 0;
}

/* ========================================================
   BORA SECTION
   ======================================================== */

.bora-page {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

/* Bora products */
.bora-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.bora-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.bora-section-header h1 {
  text-align: center;
}

.bora-subtitle {
  text-align: center;
}

.bora-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .bora-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bora-product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bora-product-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.bora-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  min-height: 180px;
}

.bora-card-content h3 {
  margin: 0 0 10px;
}

.bora-card-content p {
  flex-grow: 1;
}

.bora-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.bora-card-content a {
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #333333;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.bora-card-content a:hover {
  background-color: #333333;
  color: white;
}

.bora-links a:first-child {
  background-color: #333333;
  color: white;
}

.bora-links a:first-child:hover {
  background-color: white;
  color: #333333;
}

/* Bora form */
.bora-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.bora-form-section form {
  max-width: 580px;
  width: 100%;
  padding: 70px;
  border-radius: 16px;
  background: #f9f9f9;
  box-sizing: border-box;
}

.bora-form-header h2 {
  text-align: center;
  margin-bottom: 8px;
}

.bora-form-header p {
  text-align: center;
  margin-bottom: 28px;
}

.bora-form-section input,
.bora-form-section textarea {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.bora-form-section select {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  background-color: white;
}

.bora-form-section input:focus,
.bora-form-section textarea:focus,
.bora-form-section select:focus {
  outline: none;
  border-color: #333333;
}

.bora-send {
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 10px;
  color: rgb(51, 51, 51);
  border: solid 1px rgba(51, 51, 51, 0.6);
  background-color: transparent;
  transition: background 0.2s, color 0.2s;
}

.bora-send:hover {
  background: #333333;
  color: white;
}

.bora-gdpr-box {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
}

.bora-gdpr-label {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 14px;
  cursor: pointer;
}

.bora-gdpr-label input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-block !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  border-radius: 5px;
  border: 1.5px solid #333333 !important;
  background-color: transparent !important;
  cursor: pointer;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bora-gdpr-label input[type="checkbox"]:checked {
  background-color: #333333 !important;
  border-color: #333333 !important;
}

.bora-gdpr-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.bora-gdpr-text {
  line-height: 1.5;
}

.bora-gdpr-text a {
  color: #222;
  text-decoration: underline;
  font-weight: 600;
}


/* ========================================================
   RESPONSIVE — MOBILE FIRST OVERRIDES
   ======================================================== */

@media (max-width: 600px) {
  h1, h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 17px;
  }

  /* Services */
  .main-services-overview {
    margin: 40px auto;
  }

  /* Tour */
  .main-tour-section {
    padding: 40px 16px;
  }

  .main-container {
    padding: 20px 16px;
  }

  /* Forms */
  .main-form-section {
    padding: 40px 16px;
  }

  .main-form-section form {
    padding: 28px 20px;
  }

  .bora-form-section {
    padding: 40px 16px;
  }

  .bora-form-section form {
    padding: 28px 20px;
  }

  /* Portfolio */
  .portfolio-section .portfolio-container {
    padding: 30px 16px;
  }

  .portfolio-card-content {
    padding: 14px 16px;
    min-height: unset;
  }

  /* Bora products */
  .bora-container {
    padding: 20px 16px;
  }

  .bora-section-header {
    margin-bottom: 28px;
  }

  .bora-card-content {
    min-height: unset;
    padding: 16px;
  }

  .bora-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
