/* ANDRAUS — стили модальных окон и форм Contact Form 7.
 * Подключаются только на подтверждённых страницах с такой разметкой.
 */
.ab-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
}

.ab-modal.is-open{
  display:block;
}

.ab-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(8px);
  opacity:0;
  transition:opacity .22s ease;
}

.ab-modal.is-open .ab-modal__backdrop{
  opacity:1;
}

.ab-modal__dialog{
  position:relative;
  width:min(980px, calc(100% - 28px));
  margin:6vh auto 0;
  background:#fff;
  border-radius:22px;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
  border:1px solid rgba(15,23,42,.10);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  max-height:88vh;
  opacity:0;
  transform:translateY(10px) scale(.985);
  transition:opacity .22s ease, transform .22s ease;
}

.ab-modal.is-open .ab-modal__dialog{
  opacity:1;
  transform:translateY(0) scale(1);
}

.ab-modal__dialog > p,
.ab-modal__body > p{
  margin:0 !important;
  padding:0 !important;
}

.ab-modal__dialog > p br{
  display:none !important;
}

.ab-modal__head{
  flex:0 0 auto;
  padding:18px 74px 12px 22px;
  border-bottom:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.96) 100%);
}

.ab-modal__title{
  font-size:20px;
  font-weight:950;
  line-height:1.15;
  color:#0f172a;
}

.ab-modal__sub{
  margin-top:6px;
  font-size:13px;
  line-height:1.35;
  color:rgba(15,23,42,.68);
}

.ab-modal__close{
  position:absolute;
  top:12px;
  right:12px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  cursor:pointer;
  font-size:22px;
  line-height:1;
  color:rgba(15,23,42,.78);
  z-index:5;
}

.ab-modal__close:hover{
  background:#fff;
  color:#0f172a;
  border-color:rgba(31,177,74,.25);
}

.ab-modal__body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding:18px 20px 24px;
  background:#fff;
}

.ab-modal__body::-webkit-scrollbar{
  width:10px;
}

.ab-modal__body::-webkit-scrollbar-thumb{
  background:rgba(15,23,42,.18);
  border-radius:10px;
  border:2px solid rgba(255,255,255,.90);
}

.ab-modal__body::-webkit-scrollbar-track{
  background:rgba(15,23,42,.06);
  border-radius:10px;
}

.ab-th-tools{
  margin-bottom:12px;
}

.ab-th-search{
  position:relative;
}

#ab-th-search{
  width:100%;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  padding:0 44px 0 14px;
  font-weight:700;
  font-size:14px;
  color:#0f172a;
  outline:none;
}

#ab-th-search::placeholder{
  color:rgba(15,23,42,.45);
  font-weight:650;
}

#ab-th-search:focus{
  border-color:rgba(31,177,74,.55);
  box-shadow:0 14px 34px rgba(0,0,0,.10);
}

.ab-th-clear{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.95);
  cursor:pointer;
  font-size:20px;
  line-height:1;
  color:rgba(15,23,42,.70);
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease;
}

.ab-th-search.is-dirty .ab-th-clear{
  opacity:1;
  pointer-events:auto;
}

.ab-th-chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.ab-th-chip{
  height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(15,23,42,.03);
  cursor:pointer;
  font-weight:900;
  font-size:12px;
  color:rgba(15,23,42,.85);
  transition:transform .14s ease, border-color .14s ease, background .14s ease;
}

.ab-th-chip:hover{
  transform:translateY(-1px);
  border-color:rgba(31,177,74,.45);
  background:rgba(31,177,74,.10);
}

.ab-th-count{
  margin-top:10px;
  font-size:12.5px;
  color:rgba(15,23,42,.60);
  font-weight:650;
}

.ab-th-count b{
  color:rgba(15,23,42,.90);
}

.ab-th-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(108px, 1fr));
  gap:10px;
  align-content:start;
}

.ab-th{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:6px 8px;
  border-radius:14px;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  color:#0f172a;
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease;
}

.ab-th:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 40px rgba(0,0,0,.12);
  border-color:rgba(31,177,74,.55);
  color:#0b6b2a;
}

.ab-th:active{
  transform:translateY(-1px);
}

.ab-th.is-hidden{
  display:none !important;
}

.ab-th-note{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(15,23,42,.03);
  border:1px solid rgba(15,23,42,.08);
  color:rgba(15,23,42,.70);
  font-size:13px;
  line-height:1.35;
}
.ab-3000-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.ab-3000-body .ab-thick-card__head{
  width:100%;
  text-align:center;
}

a.open-thickness.ab-btn-diameter{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:max-content;
  margin:18px auto 0!important;
  padding:12px 54px!important;
  min-height:46px;
  border-radius:10px;
  background:#0f244c!important;
  color:#fff!important;
  font-weight:700;
  font-size:16px;
  line-height:1.2;
  text-decoration:none!important;
  -webkit-text-decoration:none!important;
  transition:background .2s ease, transform .2s ease;
  box-sizing:border-box;
}

a.open-thickness.ab-btn-diameter::before{
  content:"⌀";
  font-size:16px;
  line-height:1;
  font-weight:700;
}

a.open-thickness.ab-btn-diameter:hover{
  background:#124d5f !important;
  color:#fff !important;
}

a.open-thickness.ab-btn-diameter:visited,
a.open-thickness.ab-btn-diameter:focus,
a.open-thickness.ab-btn-diameter:active{
  color:#fff !important;
  text-decoration:none !important;
}

.ab-thickness-text{
  margin:18px 0 0;
}

.ab-thickness-text h2{
  font-size:20px;
  font-weight:900;
  margin:0 0 8px;
}

.ab-thickness-text p{
  margin:0;
  color:rgba(15,23,42,.75);
  line-height:1.55;
}
.ab-modal__body .wpcf7 form{
  margin:0;
}

.ab-modal__body .ab-cf7-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 14px;
}

.ab-modal__body .wpcf7 p{
  margin:0;
}

.ab-modal__body label{
  display:block;
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
  color:rgba(15,23,42,.86);
  margin:0 0 6px;
}

.ab-modal__body input[type="text"],
.ab-modal__body input[type="email"],
.ab-modal__body input[type="tel"],
.ab-modal__body textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.14);
  background:#ffffff;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  padding:12px 14px;
  font-size:14px;
  color:#0f172a;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease;
}

.ab-modal__body textarea{
  min-height:120px;
  resize:vertical;
}

.ab-modal__body input::placeholder,
.ab-modal__body textarea::placeholder{
  color:rgba(15,23,42,.42);
  font-weight:600;
}

.ab-modal__body input:focus,
.ab-modal__body textarea:focus{
  border-color:rgba(31,177,74,.55);
  box-shadow:0 14px 34px rgba(31,177,74,.10);
}

.ab-modal__body input[type="file"]{
  width:100%;
  border-radius:14px;
  border:1px dashed rgba(15,23,42,.22);
  background:rgba(15,23,42,.03);
  padding:12px 14px;
}

.ab-modal__body .wpcf7-response-output{
  margin:12px 0 0 !important;
  border-radius:14px;
  font-weight:700;
}

.ab-modal__body .wpcf7-not-valid-tip{
  font-size:12px;
  margin-top:6px;
}

.ab-modal__body .wpcf7-submit{
  width:100%;
  border:0;
  border-radius:16px;
  padding:14px 16px;
  font-weight:950;
  letter-spacing:.4px;
  text-transform:uppercase;
  background:#0b63ce;
  color:#fff;
  box-shadow:0 18px 42px rgba(11,99,206,.22);
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
  margin-top:10px;
}

.ab-modal__body .wpcf7-submit:hover{
  transform:translateY(-1px);
  box-shadow:0 22px 55px rgba(11,99,206,.28);
  filter:brightness(1.02);
}

.ab-modal__body .wpcf7-acceptance{
  margin-top:12px;
  font-size:12.5px;
  line-height:1.45;
  color:rgba(15,23,42,.68);
  font-weight:600;
}

.ab-modal__body .wpcf7-acceptance input[type="checkbox"]{
  transform:translateY(2px);
  margin-right:8px;
}

.ab-modal__body .wpcf7-acceptance a{
  color:#0f172a;
  text-decoration:none;
  border-bottom:1px solid rgba(15,23,42,.25);
  transition:color .18s ease, border-color .18s ease;
}

.ab-modal__body .wpcf7-acceptance a:hover{
  color:#1fb14a;
  border-color:#1fb14a;
}
#thickness-popup .ab-modal__dialog{
  width:min(920px, calc(100% - 20px));
  max-height:90vh;
}

#thickness-popup .ab-modal__head{
  padding:14px 68px 10px 16px;
}

#thickness-popup .ab-modal__title{
  font-size:22px;
  line-height:1.05;
}

#thickness-popup .ab-modal__sub{
  margin-top:4px;
  font-size:13px;
  line-height:1.3;
}

#thickness-popup .ab-modal__close{
  width:46px;
  height:46px;
  border-radius:16px;
  font-size:22px;
  top:10px;
  right:10px;
}

#thickness-popup .ab-modal__body{
  padding:12px;
}

#thickness-popup #ab-th-search{
  height:42px;
  font-size:14px;
  border-radius:12px;
  padding:0 38px 0 12px;
}

#thickness-popup .ab-th-chips{
  gap:8px;
  margin-top:8px;
}

#thickness-popup .ab-th-chip{
  min-width:46px;
  height:34px;
  padding:0 10px;
  font-size:13px;
  border-radius:999px;
}

#thickness-popup .ab-th-count{
  margin-top:8px;
  font-size:13px;
}

#thickness-popup .ab-th-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  margin-top:8px;
}

#thickness-popup .ab-th{
  min-height:44px;
  padding:6px 8px;
  border-radius:14px;
  font-size:13px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:0;
}

#thickness-popup .ab-th-note{
  margin-top:8px;
  padding:8px 10px;
  font-size:11px;
  line-height:1.3;
  border-radius:12px;
}


@media (max-width:768px){
  .ab-modal__dialog{
    width:calc(100% - 12px);
    margin:2vh auto 0;
    max-height:94vh;
    border-radius:16px;
  }

  .ab-modal__head{
    padding:14px 56px 10px 14px;
  }

  .ab-modal__title{
    font-size:17px;
    line-height:1.2;
  }

  .ab-modal__sub{
    font-size:12px;
    line-height:1.35;
  }

  .ab-modal__close{
    top:10px;
    right:10px;
    width:38px;
    height:38px;
    border-radius:12px;
    font-size:20px;
  }

  .ab-modal__body{
    padding:12px 12px 16px;
  }

  .ab-th-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .ab-th{
    min-height:40px;
    border-radius:12px;
    font-size:12px;
  }

  a.open-thickness.ab-btn-diameter{
    display:flex !important;
    width:100%;
    text-align:center;
    padding:14px 18px !important;
    font-size:15px;
  }

  #ab-th-search{
    height:42px;
    font-size:13px;
    padding:0 40px 0 12px;
  }

  .ab-th-clear{
    right:6px;
    width:30px;
    height:30px;
    border-radius:10px;
    font-size:18px;
  }

  .ab-th-chip{
    height:32px;
    padding:0 10px;
    font-size:11px;
  }

  .ab-th-count{
    font-size:12px;
  }

  .ab-modal__body .ab-cf7-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .ab-modal__body input[type="text"],
.ab-modal__body input[type="email"],
.ab-modal__body input[type="tel"],
.ab-modal__body textarea{
    padding:11px 12px;
    font-size:14px;
    border-radius:12px;
  }

  .ab-modal__body textarea{
    min-height:110px;
  }

  .ab-modal__body .wpcf7-submit{
    border-radius:14px;
    padding:13px 14px;
    font-size:13px;
  }

  #thickness-popup .ab-modal__dialog{
    width:calc(100% - 12px);
    margin:1vh auto 0;
    border-radius:18px;
    max-height:95vh;
  }

  #thickness-popup .ab-modal__head{
    padding:12px 58px 8px 12px;
  }

  #thickness-popup .ab-modal__title{
    font-size:18px;
  }

  #thickness-popup .ab-modal__sub{
    font-size:12px;
  }

  #thickness-popup .ab-modal__close{
    width:40px;
    height:40px;
    border-radius:14px;
    font-size:20px;
  }

  #thickness-popup .ab-modal__body{
    padding:10px;
  }

  #thickness-popup #ab-th-search{
    height:38px;
    font-size:13px;
    border-radius:10px;
  }

  #thickness-popup .ab-th-chip{
    min-width:42px;
    height:30px;
    font-size:12px;
    padding:0 8px;
  }

  #thickness-popup .ab-th-count{
    font-size:12px;
  }

  #thickness-popup .ab-th-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:6px;
  }

  #thickness-popup .ab-th{
    min-height:40px;
    font-size:12px;
    border-radius:12px;
    padding:5px 6px;
  }

  #thickness-popup .ab-th-note{
    font-size:10px;
    padding:7px 8px;
  }
}
