/* v1.1.6 | 2026-03-30 */
/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
  --primary: #ff5e14;
  --primary-dark: #bb450e;
  --primary-light: #f5e0e0;
  --header-dark: #0d1b4b;
  --bg-page: #f8f6f2;
  --bg-card: #ffffff;
  --bg-row-alt: #f8f8f8;
  --text-main: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --border: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 6px;
  --transition: 0.25s ease;
  --font:
    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
     LAYOUT
     ======================================== */
.calculator-wrapper {
}

.section {
  margin-bottom: 48px;
}

/* ========================================
     SECTION TITLE  (— Варианты комплектаций —)
     ======================================== */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--header-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================
     CONFIG TABLE  (Варианты комплектаций)
     ======================================== */
.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.config-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

/* --- header row --- */
.config-table thead th {
  background: var(--primary);
  color: #fff;
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
  vertical-align: middle;
  position: sticky;
  top: 0;
  z-index: 2;
}

.config-table thead th:first-child {
  text-align: left;
  width: 40%;
}

.config-table thead th:not(:first-child) {
  width: 20%;
}

.config-table thead .variant-price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

/* --- section header row --- */
.config-table .section-row td {
  background: var(--header-dark) !important;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 14px;
}

/* Продолжение цветной полосы заголовка секции под колонками комплектаций (скроллятся вместе с ними) */
.config-table .section-row td.section-row-fill {
  position: static;
  padding: 0;
  border-left: none;
}

/* --- item rows --- */
.config-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  color: var(--text-main);
}

.config-table tbody td:first-child {
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.config-table tbody tr:nth-child(even):not(.section-row) td {
  background: var(--bg-row-alt);
}

/* --- circle indicator --- */
.indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  vertical-align: middle;
}

/* --- footer row with prices & buttons --- */
.footer-row td {
  padding: 18px 14px 28px 14px !important;
  border-bottom: none !important;
  background: var(--bg-card) !important;
  vertical-align: middle;
}

.footer-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.select-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 32px;
  border: 2px solid var(--primary);
  border-radius: 2px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
}

.select-btn:hover {
  background: var(--primary);
  color: #fff;
}

.select-btn.active {
  background: var(--primary);
  color: #fff;
}

.footer-row td:has(.select-btn.active) {
  background: var(--header-dark) !important;
}

.footer-row td:has(.select-btn.active) .footer-price {
  color: #fff;
}

/* ========================================
     OPTION CARDS  (Фундамент / Инженерия)
     ======================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
}

.option-card {
  position: relative;
  background: var(--bg-card);
  border-bottom: 4px solid var(--primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 18px;
  transition:
    box-shadow var(--transition),
    transform var(--transition),
    background-color var(--transition);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
  cursor: pointer;
}

.option-card:hover,
.option-card.selected {
  background: #0d1b4b;
  -webkit-box-shadow: -32px 32px 75px 0 rgba(122, 131, 153, 0.6);
  box-shadow: -32px 32px 75px 0 rgba(122, 131, 153, 0.6);
  transform: translateY(-3px);
}

/* text colours on dark background */
.option-card:hover .card-label,
.option-card.selected .card-label {
  color: rgba(255, 255, 255, 0.75);
}

.option-card:hover .card-body h3,
.option-card.selected .card-body h3 {
  color: #fff;
}

.option-card:hover .card-desc,
.option-card.selected .card-desc {
  color: rgba(255, 255, 255, 0.85);
}

.option-card:hover .card-price,
.option-card.selected .card-price {
  color: #fff;
}

.option-card:hover .details-toggle,
.option-card.selected .details-toggle {
  color: rgba(255, 255, 255, 0.8);
}

.option-card:hover .details-collapse,
.option-card.selected .details-collapse {
  color: rgba(255, 255, 255, 0.8);
}

.option-card:hover .card-details,
.option-card.selected .card-details {
  color: rgba(255, 255, 255, 0.85);
}

.option-card:hover .card-details.open,
.option-card.selected .card-details.open {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* dim the top image on dark-mode hover */
.option-card:hover .card-img-top::after,
.option-card.selected .card-img-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 75, 0.1);
  pointer-events: none;
}

/* on hover/selected: label turns white, stays visible */
.option-card:hover .ca-label,
.option-card.selected .ca-label {
  color: rgba(255, 255, 255, 0.85);
}

/* on hover/selected: icon gets orange square background, stays in place */
.option-card:hover .ca-icon,
.option-card.selected .ca-icon {
  background: var(--primary);
  color: #fff;
  border-radius: 2px;
}

.option-card:hover .card-action-btn:hover .ca-icon,
.option-card.selected .card-action-btn:hover .ca-icon {
  box-shadow: rgba(255, 94, 20, 0.5) 0px 10px 20px 0px;
}

/* card image placeholder — hidden in new design */
.card-image {
  display: none;
}

/* top image for option cards */
.card-img-top {
  position: relative;
  margin: -22px -24px 18px;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.option-card:hover .card-img-top img {
  transform: scale(1.05);
}

/* small category label above the title */
.card-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 6px;
}

.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0d1b4b;
  line-height: 1.2;
}

.card-body .card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.card-body .card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* "Что входит в стоимость?" toggle */
.details-toggle,
.details-collapse {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #1a6fd4;
  font-style: normal;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-align: left;
  padding: 0;
  text-underline-offset: 5px;
}

.option-card:hover .details-toggle:hover,
.option-card:hover .details-collapse:hover,
.option-card.selected .details-toggle:hover,
.option-card.selected .details-collapse:hover {
  color: rgba(255, 255, 255, 0.99);
}

.details-toggle[hidden] {
  display: none;
}

.card-details {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding-top 0.4s ease,
    padding-bottom 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px dashed transparent;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-details.open {
  max-height: 800px;
  padding-top: 10px;
  padding-bottom: 4px;
  border-top-color: var(--border);
  margin-top: 10px;
}

/* "Свернуть ↑" button inside expanded details */
.details-collapse {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #1a6fd4;
  font-style: normal;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-align: left;
  padding: 0;
}

.details-collapse:hover {
  color: #1558aa;
}

.card-details ul {
  padding-left: 18px;
  margin: 6px 0;
}

.card-details p {
  margin: 4px 0;
}

/* Add/remove button on card — plain text label + bare "+" character */
.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: none;
  background: transparent;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 14px;
  padding: 0;
  align-self: flex-start;
}

/* "Добавить" / "Убрать" text */
.ca-label {
  font-size: 15px;
  font-weight: 400;
  color: #001659;
  transition: color var(--transition);
}

/* bare "+" / "−" character — fixed size so adding bg doesn't shift layout */
.ca-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border-radius: 6px;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  color: #555e7a;
  transition:
    color var(--transition),
    background var(--transition);
}

.card-action-btn--remove .ca-label,
.card-action-btn--remove .ca-icon {
  color: var(--primary);
}

.card-action-btn--remove:hover .ca-icon {
  color: #fff;
}

.card-action-btn--remove:hover .ca-label,
.card-action-btn--add:hover .ca-label {
  color: var(--primary);
}

/* .option-card.selected appearance handled above with hover block */

/* ========================================
     ADDITIONAL WORKS TABLE
     ======================================== */
.works-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.work-row {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background var(--transition);
  cursor: pointer;
}

.work-row:last-child {
  border-bottom: none;
}

.work-row:nth-child(even) {
  background: var(--bg-row-alt);
}

.work-row:hover,
.work-row.selected {
  background: var(--header-dark);
}

.work-row .work-name {
  flex: 1;
  /* font-size: 14px; */
  color: var(--text-main);
  transition: color var(--transition);
}

.work-row:hover .work-name,
.work-row.selected .work-name {
  color: #fff;
}

.work-row .work-price {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  margin-right: 12px;
  transition: color var(--transition);
  margin-left: 20px;
}

.work-row:hover .work-price,
.work-row.selected .work-price {
  color: #fff;
}

.work-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateX(10px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    background var(--transition);
  white-space: nowrap;
}

.work-row:hover .work-action-btn,
.work-action-btn.visible {
  opacity: 1;
  transform: translateX(0);
}

.work-action-btn--add {
  background: var(--primary);
  color: #fff;
}

.work-action-btn--add:hover {
  background: var(--primary-dark);
}

.work-action-btn--remove {
  background: var(--primary);
  color: #fff;
  opacity: 1;
  transform: translateX(0);
}

.work-action-btn--remove:hover {
  background: var(--primary-dark);
}

/* ========================================
     FIXED BOTTOM BAR
     ======================================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--header-dark);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.bottom-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bottom-bar-info {
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

#bar-label {
  opacity: 0.8;
}

#bar-config-name {
  font-weight: 700;
}

.bar-price {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.bar-btn {
  flex-shrink: 0;
  padding: 14px 32px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.bar-btn:hover {
  background: #fff;
}

.bar-btn--submit {
  border-color: var(--primary);
  background: var(--primary);
}

.bar-btn--submit:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* ========================================
     MODAL (Feedback Form)
     ======================================== */
.hc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.hc-modal-overlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hc-modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  padding-top: 0;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hc-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.hc-modal-close:hover {
  color: var(--primary);
}

.hc-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--header-dark);
}

.hc-modal-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

.hc-modal-summary h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0 6px;
}

.hc-modal-summary h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 10px 0 4px;
  color: var(--text-secondary);
}

.hc-modal-summary ul {
  padding-left: 20px;
  margin: 4px 0 10px;
}

.hc-modal-summary li {
  margin-bottom: 3px;
}

.hc-modal-summary .summary-total {
  font-size: 18px;
  font-weight: 700;
  margin-top: 14px;
}

.hc-modal-summary .summary-note {
  font-size: 12px;
  font-style: italic;
  color: var(--text-light);
  margin-top: -20px;
}

.hc-modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0px 0px 10px 0px;
  max-width: none;
  background-color: #e4e4e4;
}

/* --- form --- */
.hc-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--header-dark);
}

.form-label .label-title {
  display: block;
}

.form-label .required {
  display: inline;
  font-weight: 400;
}

.form-label input,
.form-label textarea {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-main);
  margin-top: 6px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #c8cdd8;
  border-radius: 0;
  outline: none;
  transition: border-color var(--transition);
}

.form-label input:focus,
.form-label textarea:focus {
  border-bottom-color: var(--primary);
}

.form-label textarea {
  resize: vertical;
  min-height: 100px;
}

.required {
  color: var(--primary);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-secondary);
  margin-bottom: 13px;
  margin-top: 10px;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

.hc-feedback-form input[type="tel"] {
  margin: 0 0 25px;
}

.submit-btn {
  padding: 14px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background var(--transition);
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.form-error {
  border-color: var(--primary) !important;
}

.hc-form-message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.45;
}

.hc-form-message--success {
  background: rgba(46, 160, 67, 0.12);
  border: 1px solid rgba(46, 160, 67, 0.45);
  color: #1b4332;
}

.hc-form-message--error {
  background: rgba(200, 50, 50, 0.1);
  border: 1px solid rgba(200, 50, 50, 0.4);
  color: #7f1d1d;
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========================================
     UNIFIED PRIMARY BUTTON STYLE
     ======================================== */
.select-btn,
.work-action-btn,
.bar-btn,
.submit-btn {
  border: none;
  border-radius: 2px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.select-btn:hover,
.work-action-btn:hover,
.bar-btn:hover,
.submit-btn:hover {
  background: #ff6b21;
  box-shadow: rgba(255, 94, 20, 0.5) 0px 10px 20px 0px;
  transform: translateY(-1px);
}

/* ========================================
     STICKY HEADER CLONE
     ======================================== */
.sticky-header-clone {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  overflow: hidden;
  display: none;
  background: var(--primary, #ff5e14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.sticky-header-clone.is-visible {
  display: block !important;
}
.sticky-header-clone .config-table {
  border-collapse: collapse;
  table-layout: fixed;
}

/* ========================================
     RESPONSIVE
     ======================================== */
@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Таблица комплектаций: планшет ── */
@media (max-width: 1025px) {
  /* Первый столбец (названия позиций) — прилипает при горизонтальном скролле */
  .config-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--primary);
    font-size: 10px;
  }

  .config-table .section-row td {
    font-size: 10px;
    padding: 7px 14px;
  }

  .indicator {
    width: 13px;
    height: 13px;
  }

  .config-table thead th {
    font-size: 8px;
    padding: 5px 7px;
  }

  .config-table thead .variant-price {
    font-size: 11px;
    margin-top: 0;
    line-height: 10px;
    padding: 0;
    padding-bottom: 8px;
    padding-top: 2px;
  }

  .config-table tbody td {
    font-size: 13px;
  }

  .bar-btn {
    padding: 11px 14px;
    font-size: 11px;
  }

  .bottom-bar-inner {
    padding: 10px 20px;
  }

  .bottom-bar-info {
    font-size: 13px;
  }

  .bar-price {
    font-size: 16px;
  }

  .footer-price {
    font-size: 15px;
  }

  .select-btn {
    padding: 10px 24px;
    font-size: 10px;
  }

  .config-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg-card);
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.07);
  }

  .config-table tbody tr:nth-child(even):not(.section-row) td:first-child {
    background: var(--bg-row-alt);
  }

  /* Заголовок секции в первой колонке — sticky (раньше `position: unset !important` на всех td секции отменял это правило) */
  .config-table .section-row td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.07);
  }

  .config-table .footer-row td:first-child {
    background: var(--bg-card) !important;
  }

  /* Уменьшаем минимальную ширину — меньший скролл */
  .config-table {
    min-width: 620px;
  }

  /* Подсказка о скролле */
  .table-scroll-wrapper {
    position: relative;
  }

  .table-scroll-wrapper::after {
    content: "← листайте, чтобы увидеть все варианты →";
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    padding: 6px 0 2px;
    letter-spacing: 0.3px;
    background: var(--bg-card);
  }
}

@media (max-width: 769px) {
  .config-table thead .variant-price {
    font-size: 10px;
  }
  .config-table tbody td {
    font-size: 10px;
    line-height: 18px;
  }
  .footer-price {
    font-size: 12px;
  }
  .select-btn {
    padding: 10px 15px;
  }

  .work-row .work-price {
    font-size: 11px;
  }

  .work-row .work-name {
    font-size: 10px;
  }

  .work-action-btn {
    font-size: 9px;
  }

  .bar-price {
    font-size: 14px;
  }

  .bar-btn {
    padding: 9px 15px;
    font-size: 11px;
  }
}

/* ── Таблица комплектаций: мобильный ── */
@media (max-width: 640px) {
  .config-table thead th:first-child {
    width: 44%;
  }

  .config-table thead th:not(:first-child) {
    width: 18.67%;
  }

  /* Уменьшаем индикатор */
  .indicator {
    width: 13px;
    height: 13px;
  }

  /* Кнопки и цены в футере таблицы */
  .footer-row td {
    padding: 12px 8px !important;
  }

  .config-table thead th {
    font-size: 6px;
}

  .config-table thead .variant-price {
    font-size: 8px;
    line-height: 6px;
    margin-bottom: -3px;
  }

  .footer-price {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .select-btn {
    padding: 8px 10px;
    font-size: 9px;
    letter-spacing: 0;
  }

  /* Уменьшаем min-width ещё сильнее */
  .config-table {
    min-width: 480px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .option-card {
    padding: 14px;
  }

  .card-img-top {
    margin: -14px -14px 14px;
    height: 150px;
  }

  .card-image {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    font-size: 26px;
  }

  .bottom-bar-inner {
    flex-direction: column;
    text-align: center;
    padding: 12px 14px;
    gap: 10px;
  }

  .bottom-bar-info {
    justify-content: center;
    font-size: 13px;
  }

  .bar-btn {
    width: 100%;
  }

  .work-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .work-action-btn {
    opacity: 1;
    transform: translateX(0);
  }

  .hc-modal {
    padding: 24px 18px;
  }
}

@media (max-width: 400px) {
  body {
    padding-bottom: 110px;
  }

  .config-table {
    min-width: 420px;
  }

  .config-table thead th {
    font-size: 5px;
  }

  .config-table thead .variant-price {
    font-size: 6px;
  }

  .config-table tbody td {
    font-size: 9px;
    line-height: 15px;
  }

  .select-btn {
    font-size: 7px;
  }

  .footer-price {
    font-size: 8px;
  }
  .indicator {
    width: 10px;
    height: 10px;
}

.config-table .section-row td {
    font-size: 9px;
    padding: 6px 14px;
  }

  .bottom-bar-info {
    font-size: 9px;
  }

  .bar-price {
    font-size: 12px;
  }

  .bar-btn {
    padding: 7px 15px;
    font-size: 9px;
  }
}

.mkdf-side-menu-slide-from-right .mkdf-fixed-wrapper.fixed,
.mkdf-side-menu-slide-from-right .mkdf-sticky-header {
  display: none;
}

.mkdf-wrapper-inner .mkdf-page-header {
  /* display: none; */
}

.mkdf-wrapper-inner .mkdf-mobile-header.mobile-header-appear {
  display: none;
}

@media only screen and (max-width: 480px) {
  .mkdf-container-inner,
  .mkdf-elementor-row-grid-section > .elementor-container,
  .mkdf-grid,
  .mkdf-row-grid-section {
    width: 100%;
  }
}
@media only screen and (max-width: 680px) {
  .mkdf-container-inner,
  .mkdf-elementor-row-grid-section > .elementor-container,
  .mkdf-grid,
  .mkdf-row-grid-section {
    width: 100%;
  }
}
@media only screen and (max-width: 768px) {
  .mkdf-container-inner,
  .mkdf-elementor-row-grid-section > .elementor-container,
  .mkdf-grid,
  .mkdf-row-grid-section {
    width: 100%;
  }
}
@media only screen and (max-width: 1024px) {
  .mkdf-container-inner,
  .mkdf-elementor-row-grid-section > .elementor-container,
  .mkdf-grid,
  .mkdf-row-grid-section {
    width: 100%;
  }
}
@media only screen and (max-width: 1200px) {
  .mkdf-container-inner,
  .mkdf-elementor-row-grid-section > .elementor-container,
  .mkdf-grid,
  .mkdf-row-grid-section {
    width: 100%;
  }
}

.mkdf-content {
  padding: 0px 20px;
}


@media (max-width: 480px) {
  .mkdf-content {
    padding: 0;
  }
  .mkdf-woo-single-page .mkdf-single-product-content {
    padding: 0 20px;
  }
}

.mkdf-footer-top-alignment-left {
  padding: 0px 20px;
}

.mkdf-wrapper .mkdf-wrapper-inner {
  margin-bottom: -26px;
}

#foundation-section,
#engineering-section,
#additional-section {
  padding: 0 20px;
}