* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  background: #ededed;
  color: #000;
}

a {
  color: #004b80;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  background: #ededed;
  min-height: 100vh;
}

.layout {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.info-bar {
  background: #f5a000;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  font-size: 11px;
  color: #fff;
  font-weight: 600;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px 8px;
  background: #fff;
}

.site-header__brand img {
  max-height: 110px;
  width: auto;
}

.site-header__menu {
  font-size: 11.5px;
  color: #004b80;
  text-align: right;
  line-height: 1.5;
}

.main-area {
  padding: 4px 6px 40px;
}

.panel {
  background: #fff;
  border: 1px solid #f5a000;
  padding: 12px 12px 26px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 0 0 1px #f5a000 inset;
}

.panel__head {
  text-align: center;
  font-size: 12px;
  color: #004b80;
  font-weight: 700;
  border-top: 1px solid #f5a000;
  padding-top: 8px;
  margin-top: 4px;
}

.button-group {
  display: flex;
  justify-content: center;
  margin: 10px 0 10px;
}

.btn-action {
  background: linear-gradient(180deg, #c30000 0%, #a10000 100%);
  border: 1px solid #7a0000;
  color: #fff;
  font-weight: 700;
  padding: 8px 20px;
  min-width: 160px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-size: 12px;
}

.btn-action:active {
  transform: translateY(1px);
}

.note-text {
  font-size: 12px;
  margin: 4px 0 10px;
}

.grid-holder {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  border: 1px solid #b5b5b5;
  padding: 6px 8px;
  text-align: center;
  vertical-align: top;
  line-height: 1.25;
}

.data-table th {
  background: #f5f5f5;
  font-weight: 700;
}

.txt-start {
  text-align: left;
}

.subtext {
  display: block;
  font-size: 11px;
  color: #555;
}

.w-role { width: 44%; }
.w-place { width: 9%; }
.w-pay { width: 12%; }
.w-open { width: 10%; }
.w-backup { width: 9%; }
.w-price { width: 12%; }

.area-title {
  font-size: 12px;
  margin: 14px 0 6px;
}

.grid-holder--sm {
  max-width: 230px;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.mini-table th,
.mini-table td {
  border: 1px solid #b5b5b5;
  padding: 6px 8px;
  text-align: left;
}

.mini-table th {
  background: #f5f5f5;
  font-weight: 700;
}

.mini-table--doc {
  max-width: 240px;
}

.ico-cell {
  width: 24px;
  text-align: center;
}
.ico-cell img {
  width: 18px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.doc-link {
  color: #003f97;
  font-weight: 600;
}

.site-footer {
  background: #0a3051;
  color: #fff;
  padding: 14px 0 16px;
  margin-top: 12px;
}

.site-footer__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.site-footer__logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer__main {
  height: 36px;
  width: auto;
}

.site-footer__phone {
  height: 34px;
  width: auto;
}

.site-footer__txt {
  line-height: 1.4;
  color: #d9e6f2;
}

.site-footer__nav {
  color: #d9e6f2;
  text-align: right;
  flex: 1;
}

.site-footer__nav a {
  color: #d9e6f2;
}

.float-chat {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: none;
}

.d-none { display: none !important; }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 12px;
  z-index: 20000;
  overflow-y: auto;
}

.dialog {
  position: relative;
  background: #fff;
  border-radius: 6px;
  max-width: 640px;
  width: 100%;
  padding: 18px 18px 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.step-view h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0a3051;
}

.step-view p {
  margin: 0 0 12px;
  font-size: 13px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.form-field span {
  font-weight: 700;
  color: #0a3051;
}

.form-field input,
.form-field select {
  padding: 6px 8px;
  border: 1px solid #b5b5b5;
  border-radius: 3px;
  font-size: 12px;
  width: 100%;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 12px;
}

.opt-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.opt-row.tight {
  gap: 6px;
}

.block-head {
  margin-bottom: 8px;
}

.block-box {
  border: 1px solid #f5a000;
  padding: 10px 12px 12px;
  margin-bottom: 12px;
}

.err-msg {
  color: #c30000;
  font-size: 12px;
  margin-top: 6px;
}

.has-error {
  border-color: #c30000 !important;
}

.small-err {
  color: #c30000;
  font-size: 11px;
  margin-top: 4px;
}

.btn-center {
  justify-content: center;
  margin-top: 12px;
}

.confirm-btns .btn-action {
  min-width: 120px;
}

.gap-end {
  height: 120px;
}

.pcd-form {
  display: grid;
  gap: 8px;
}

.pcd-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.pcd-item input[type="text"] {
  width: 100%;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-size: 12px;
}

.review-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fafafa;
}

.review-label {
  font-weight: 700;
  color: #0a3051;
}

.review-value {
  color: #222;
  word-break: break-word;
}

.review-note {
  font-size: 13px;
  margin: 12px 0;
}

.review-title {
  font-weight: 700;
  color: #0a3051;
  margin: 16px 0 8px;
  padding-top: 8px;
  border-top: 1px solid #f5a000;
}

.support-list {
  display: grid;
  gap: 10px;
}

.support-item {
  display: grid;
  grid-template-columns: auto 260px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.support-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  color: #0a3051;
}

.support-item input[type="text"] {
  width: 100%;
  font-size: 12px;
}

.about-card {
  border: 1px solid #f5a000;
  padding: 12px 14px 14px;
  margin-bottom: 12px;
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #004b80;
}

.about-card p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.35;
}

.hero-banner {
  background: url('images/atendimento.jpg') center top no-repeat;
  background-size: cover;
  height: 420px;
}

.text-content {
  padding: 12px 8px 18px;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .site-header__menu {
    text-align: left;
  }

  .panel {
    padding: 16px 10px 22px;
  }

  .w-role { width: 52%; }
  .w-place,
  .w-pay,
  .w-open,
  .w-backup,
  .w-price { width: auto; }

  .grid-holder--sm {
    max-width: 100%;
  }

  .site-footer {
    padding: 16px 0 18px;
  }

  .site-footer__wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-footer__nav {
    text-align: left;
    width: 100%;
  }

  .dialog {
    padding: 14px 12px 18px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: 100%;
  }

  .site-header__brand img {
    max-height: 90px;
  }

  .btn-action {
    width: 170px;
    text-align: center;
  }

  .site-footer__logos {
    gap: 10px;
  }

  .grid-holder {
    width: 100%;
  }

  .ico-cell img {
    display: none;
  }

  .dialog {
    max-width: 95vw;
    width: 95vw;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    box-shadow: none;
    padding: 14px 12px 18px;
    margin: 10px auto;
  }

  .opt-row {
    gap: 6px;
  }

  #pix-qrcode img {
    max-width: 260px;
    width: 100%;
    height: auto;
  }
}
