html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--dc-font);
  background: #f5f5f5;
  color: #85594e;
  overflow-x: hidden;
}
html {
  overflow-y: hidden;
}
.calc-content {
  width: 100%;
  background: #f5f5f5;
  padding: 30px 20px;
  color: #85594e;
  box-sizing: border-box;
  overflow: visible;
}
.dc-intro {
  margin: 0 0 16px 0;
  color: #4b3c38;
}
.panel {
  background: #ede8e6;
  padding: 48px;
  margin-bottom: 16px;
}
.panel h3,
.montaz-panel h3 {
  margin: 0 0 14px 0;
  font-weight: 600;
  color: #4b3c38;
  text-transform: uppercase;
}
.panel h3 {
  color: #3b3d42;
}
.shape-tvar-group,
.sposob-group,
.calc-material-group,
.calc-podklad-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.dc-option {
  border: 2px dashed #85594e;
  background: transparent;
  color: #4b3c38;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 5px;
}
.dc-option:hover {
  border-style: solid;
  border-color: #fff;
  background: rgba(133, 89, 78, 0.14);
}
.dc-option.is-active {
  border-style: solid;
  border-color: #85594e;
  background: rgba(133, 89, 78, 0.14);
  color: #4b3c38;
}
.calc-shape-btn {
  width: 120px;
  padding: 10px 8px;
  min-height: 40px;
}
.calc-shape-btn img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.calc-sposob-btn {
  width: 150px;
  padding: 12px 8px;
  font-weight: 600;
}
.calc-sposob-btn img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.calc-material-btn,
.calc-podklad-btn {
  width: 140px;
  height: auto;
  font-weight: 600;
  gap: 0;
}
.calc-material-btn {
  padding: 0 0 8px 0;
}
.calc-podklad-btn {
  padding: 5px;
  justify-content: flex-start;
}
.calc-material-btn img,
.calc-podklad-btn img {
  width: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  margin-bottom: 6px;
  transition: opacity 0.2s ease;
}
.calc-podklad-btn img {
  border-radius: 50%;
}
.calc-dlzka-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.dlzka-item {
  width: 100%;
  display: flex;
}
.calc-dlzka-btn {
  width: 100%;
  border: 2px solid #ede8e6;
  background: transparent;
  color: #85594e;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  padding: 2px 12px;
  gap: 16px;
  box-sizing: border-box;
  min-height: 24px;
}
.calc-dlzka-btn img {
  width: auto;
  height: 20px;
  display: block;
  pointer-events: none;
  flex-shrink: 0;
  transition: 0.2s ease;
}
.dc-option-copy {
  font-size: 12px;
  line-height: 1.2;
}
.calc-shape-btn .dc-option-copy {
  font-size: 0;
}
.dc-option-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dc-option-media.is-missing {
  min-height: 48px;
}
.dc-option-fallback {
  font-size: 11px;
  padding: 6px;
}
.tvar-preview-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 14px;
}
.tvar-dims-side {
  flex: 1 1 auto;
  min-width: 0;
}
.tvar-preview-side {
  flex: 0 0 300px;
  width: 300px;
  background: #ede8e6;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tvar-preview-side img {
  width: 100%;
  height: auto;
  display: block;
}
.tvar-preview-hint {
  color: #85594e;
  opacity: 0.6;
}
.calc-dimensions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.calc-dimensions-grid label,
.dim-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-dimensions-grid label {
  font-weight: 700;
  color: #4b3c38;
}
.calc-input,
.calc-dimensions-grid input,
.dc-inquiry input,
.dc-inquiry textarea {
  padding: 10px;
  border: 1px solid transparent;
  background: #e5ddda;
  color: #2f3338;
  box-sizing: border-box;
  width: 100%;
}
.dc-dimension-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dc-dimension-unit {
  min-width: 28px;
  font-size: 12px;
  font-weight: 700;
  color: #85594e;
  text-transform: lowercase;
}
.calc-input[readonly] {
  opacity: 0.6;
  cursor: not-allowed;
}
.area-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}
.area-row label {
  color: #4b3c38;
  white-space: nowrap;
  font-weight: 600;
}
.calc-unit-row {
  margin-top: 14px;
  margin-bottom: 18px;
}
.calc-unit-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.calc-unit-btn {
  min-width: 90px;
  font-weight: 700;
}
.dlzka-montaz-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.dlzka-side {
  flex: 1 1 auto;
  min-width: 0;
}
.montaz-side {
  flex: 15 0 56%;
  width: auto;
}
.montaz-panel {
  background: #ede8e6;
  padding: 16px;
  height: 100%;
  box-sizing: border-box;
}
.video-nadpis {
  margin-bottom: 0 !important;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-wrap .dc-promo-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dc-status {
  margin: 10px 0 0 0;
  padding: 10px 12px;
  background: #efe2d2;
  color: #4f3d31;
  border-radius: 14px;
  border: 1px solid #dfcdbd;
  align-items: center;
  gap: 10px;
}
.dc-status.is-loading,
.dc-status.is-error {
  display: flex;
}
.dc-status.is-loading {
  background: linear-gradient(135deg, #fbf0e1 0%, #f3dfc9 100%);
  border-color: #d8bfa5;
}
.dc-status.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(212, 96, 10, 0.22);
  border-top-color: #d4600a;
  animation: dc-spin 0.8s linear infinite;
  flex: 0 0 auto;
}
.dc-status.is-error {
  background: #f8e0dc;
  border-color: #e4b3ad;
  color: #8b2e22;
}
.dc-status[hidden],
.dc-result[hidden],
.dc-actions[hidden],
.dc-inquiry[hidden],
.dc-calculate-wrap[hidden],
.dc-gdpr[hidden] {
  display: none;
}
.dc-result {
  background: #fff;
  border: 1px solid #d9d0cd;
  padding: 20px;
  margin: 0 0 12px 0;
}
.dc-result h3 {
  margin-top: 0;
  color: #3b3d42;
}
.dc-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dc-result-card {
  background: #f5f0ed;
  border: 1px solid #e0d4cd;
  padding: 16px;
}
.dc-result-card-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #85594e;
  margin-bottom: 8px;
}
.dc-result-card-value {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  color: #3b3d42;
}
.dc-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.dc-calculate-wrap {
  margin: 0 0 16px 0;
}
.dc-btn {
  background: #d4600a;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  width: 100%;
  transition: background 0.2s ease, transform 0.1s ease;
  padding: 16px 32px;
  text-transform: uppercase;
}
.dc-btn-note-marker {
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
}
.dc-btn:disabled {
  cursor: wait;
  opacity: 0.82;
}
.dc-btn:hover {
  background: #c05020;
}
.dc-btn:disabled:hover {
  background: #d4600a;
}
.dc-btn:active {
  transform: translateY(1px);
}
.dc-btn:disabled:active {
  transform: none;
}
.dc-option:disabled,
.dc-dimensions input:disabled {
  cursor: wait;
  opacity: 0.72;
}
.dc-inquiry {
  margin-top: 0;
}
.dc-inquiry h3 {
  margin: 0 0 12px 0;
  color: #3b3d42;
  text-transform: uppercase;
}
.dc-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.dc-contact-grid input,
.dc-inquiry textarea {
  border: 1px solid #cfc7c3;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: #3b3d42;
  background: #fff;
}
.calc-dimensions-grid input:focus,
.dc-contact-grid input:focus,
.dc-inquiry textarea:focus {
  outline: none;
  border-color: #b26a3f;
  box-shadow: 0 0 0 3px rgba(212, 96, 10, 0.12);
}
.dc-field-error {
  border-color: #c43d2f !important;
  box-shadow: 0 0 0 3px rgba(196, 61, 47, 0.12);
  background: #fff7f5;
}
.dc-action-status {
  margin: 10px 0 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dfcdbd;
  color: #4f3d31;
  background: #efe2d2;
}
.dc-action-status.is-loading,
.dc-action-status.is-error,
.dc-action-status.is-success {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dc-action-status.is-loading {
  background: linear-gradient(135deg, #fbf0e1 0%, #f3dfc9 100%);
  border-color: #d8bfa5;
}
.dc-action-status.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(212, 96, 10, 0.22);
  border-top-color: #d4600a;
  animation: dc-spin 0.8s linear infinite;
  flex: 0 0 auto;
}
.dc-action-status.is-error {
  background: #f8e0dc;
  border-color: #e4b3ad;
  color: #8b2e22;
}
.dc-action-status.is-success {
  background: #e5f1e7;
  border-color: #bdd8c1;
  color: #205e2c;
}
.dc-action-status[hidden] {
  display: none;
}
.dc-btn--secondary {
  background: #85594e;
}
.dc-btn--secondary:hover {
  background: #72463a;
}
.dc-gdpr {
  margin: 12px 0 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b5a54;
}
.dc-notice-marker {
  font-size: 0.9em;
  font-weight: 700;
  margin-right: 2px;
}
.dc-gdpr-warning {
  color: #8b2e22;
  font-weight: 700;
}
.dc-gdpr a {
  color: #85594e;
  font-weight: 700;
  text-decoration: underline;
}
.dc-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;
}
@keyframes dc-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 991px) {
  .dlzka-montaz-row {
    display: grid !important;
  }
  .montaz-side {
    width: 100% !important;
  }
}
@media (max-width: 768px) {
  .calc-content {
    padding: 16px 12px;
  }
  .panel {
    padding: 12px;
  }
  .calc-material-btn {
    width: calc(50% - 3px);
  }
  .calc-podklad-btn {
    width: calc(50% - 8px);
  }
  .calc-sposob-btn,
  .calc-shape-btn {
    width: calc(50% - 6px);
  }
  .tvar-preview-row,
  .dlzka-montaz-row {
    flex-direction: column;
  }
  .tvar-preview-side,
  .montaz-side {
    width: 100%;
    flex: 0 0 auto;
  }
  .calc-dimensions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dc-result-grid,
  .dc-actions,
  .dc-contact-grid {
    grid-template-columns: 1fr;
  }
}
