/* ========================================================= 
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #0f172a;
  background-color: #ffffff;
  line-height: 1.45;
}

body.no-scroll{
  overflow: hidden;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px){
  .container{ padding: 0 16px; }
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header{
  background: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  position: relative;
  z-index: 20;
}

.header-inner{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 12px 0;
}

.header-left{
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.header-brand{
  display: flex;
  flex-direction: column;
}

.brand-name{
  font-size: 18px;
  font-weight: 600;
}

.brand-subtitle{
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}

.main-nav{
  display: flex;
  justify-content: center;
  gap: 24px;
}

.nav-link{
  position: relative;
  text-decoration: none;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
}

.nav-link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ffb300;
  transition: width .2s ease;
}

.nav-link:hover::after{
  width: 100%;
}

.header-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
}

.header-line{
  white-space: nowrap;
}

.header-contacts{
  display: flex;
  gap: 16px;
}

.header-phone::before{ content: "☎ "; }
.header-email::before{ content: "✉ "; }

/* Burger */

.menu-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: #ffb300;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after{
  width: 18px;
  height: 2px;
  background: #000;
  position: relative;
  display: block;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after{
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-icon::before{ top: -6px; }
.menu-toggle-icon::after{ top: 6px; }

@media (max-width: 768px){
  .header-inner{
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px;
  }

  .menu-toggle{
    display: inline-flex;
    justify-self: end;
  }

  .main-nav{
    display: none;
  }

  .header-right{
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .header-contacts{
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40;
  background: rgba(0,0,0,0.10);
}

.mobile-menu.open{
  display: block;
}

.mobile-menu-panel{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 0 24px rgba(0,0,0,0.25);
  padding-top: 16px;
}

.menu-close{
  border: none;
  background: #ffb300;
  width: 44px;
  height: 44px;
  margin-left: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.menu-close-icon{
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
}

.menu-close-icon::before,
.menu-close-icon::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: #000;
}

.menu-close-icon::before{ transform: rotate(45deg); }
.menu-close-icon::after{ transform: rotate(-45deg); }

.mobile-menu-item{
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  color: #0f172a;
  text-decoration: none;
  border-top: 1px solid #eeeeee;
}

.mobile-menu-item:last-child{
  border-bottom: 1px solid #eeeeee;
}

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

.page-main{
  flex: 1 1 auto;
}

/* =========================================================
   CONFIGURATOR
   ========================================================= */

.pumpcalc{
  padding: 20px 0 36px;
}

.pumpcalc-head{
  margin-bottom: 16px;
}

.pumpcalc-title{
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.pumpcalc-sub{
  margin: 0;
  font-size: 13.5px;
  color: #475569;
}

/* Shell */

.pc-shell{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  background: #fff;
  overflow: hidden;
  overflow-x: clip; /* safety for accidental horizontal overflow */
}

/* Top */

.pc-top{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  padding: 16px;
  min-width: 0;
}

@media (max-width: 980px){
  .pc-top{ grid-template-columns: 1fr; }
}

/* Media */

.pc-media2{
  position: relative;
  height: 320px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 980px){
  .pc-media2{ height: 240px; }
}

.pc-media2 img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.pc-badge{
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(15,23,42,.88);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* Form */

.pc-h2{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.pc-hr{
  height: 2px;
  background: #ffb300;
  margin-bottom: 12px;
  border-radius: 999px;
}

.pc-form2{
  display: grid;
  gap: 12px;
  min-width: 0;
}

.pc-row2{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

@media (max-width: 720px){
  .pc-row2{ grid-template-columns: 1fr; }
}

.pc-label{
  font-size: 13px;
  font-weight: 600;
}

.pc-fieldStack{
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pc-hint2{
  font-size: 12px;
  color: #64748b;
}

.pc-hidden{
  display: none !important;
}

/* Inputs (Configurator) */

.pc-shell select,
.pc-shell input,
.pc-shell textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
}

.pc-shell select:focus,
.pc-shell input:focus,
.pc-shell textarea:focus{
  outline: none;
  border-color: #ffb300;
  box-shadow: 0 0 0 3px rgba(255,179,0,.18);
}

/* Bottom */

.pc-bottom{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  min-width: 0;
}

@media (max-width: 980px){
  .pc-bottom{ grid-template-columns: 1fr; }
}

/* Summary */

.pc-summaryBox{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  max-width: 860px;
  min-width: 0;
}

.pc-summaryTitle{
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pc-summaryList{
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-summaryItem{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 6px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed #e5e7eb;
  min-width: 0;
}

.pc-summaryItem:last-child{
  border-bottom: none;
}

.pc-summaryItem .k{
  color: #475569;
  font-weight: 500;
  min-width: 0;
}

.pc-summaryItem .v{
  font-weight: 600;
  min-width: 0;
  white-space: normal;       /* FIX: убрали nowrap */
  overflow-wrap: anywhere;   /* FIX: перенос по длинным словам */
  text-align: right;
}

/* Mobile: key/value in one column to avoid overflow */
@media (max-width: 520px){
  .pc-summaryItem{
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .pc-summaryItem .v{
    text-align: left;
  }
}

/* Action */

.pc-action{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  min-width: 0;
}

.pc-actionTotal{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
}

.pc-actionTotal .k{
  font-size: 13px;
  font-weight: 700;
}

.pc-actionTotal .v{
  font-size: 22px;
  font-weight: 700;
  min-width: 0;
}

.pc-cta{
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: #ffb300;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.pc-cta:active{
  transform: translateY(1px);
}

.pc-mini2{
  margin-top: 12px;
  font-size: 12px;
  color: #475569;
}

.pc-miniTitle{
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.pc-steps2{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

/* =========================================================
   COMMON SECTION HEAD
   ========================================================= */

.section-head{
  margin-bottom: 16px;
}

.section-title{
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 700;
}

.section-sub{
  margin: 0;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.5;
}

/* =========================================================
   WHERE BUY
   ========================================================= */

.wherebuy{
  padding: 34px 0 40px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.wherebuy-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.wherebuy-grid--single{
  grid-template-columns: 1fr;
}

.wherebuy-card{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

.wherebuy-title{
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 700;
}

.wherebuy-list{
  margin: 0;
  padding-left: 18px;
  color: #475569;
  display: grid;
  gap: 6px;
}

.wherebuy-note{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  color: #0f172a;
  font-size: 13px;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-company{
  padding: 40px 0 54px;
  border-top: 1px solid #e5e7eb;
}

.about-title{
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px 0;
}

.about-text{
  max-width: 820px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.about-text p{
  margin: 0 0 12px;
}

.about-text p:last-child{
  margin-bottom: 0;
}

/* =========================================================
   CONTACTS — красиво разделено (contacts + map)
   ========================================================= */

.contacts{
  padding: 34px 0 48px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.contacts-shell{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  overflow: hidden;
}

.contacts-shell__grid{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  align-items: stretch;
}

@media (max-width: 980px){
  .contacts-shell__grid{
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }
}

.contacts-shell__grid::after{
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: calc(42% + 8px);
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(148,163,184,.55), transparent);
  pointer-events: none;
  opacity: .9;
}

@media (max-width: 980px){
  .contacts-shell__grid::after{ display:none; }
}

.contacts-info{
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(2,6,23,.05);
}

.contacts-map{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(2,6,23,.05);
  overflow: hidden;
}

.contacts-title{
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
}

.contact-line{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.contact-line:last-of-type{
  border-bottom: none;
}

.contact-k{
  color: #64748b;
  font-weight: 600;
  font-size: 12.5px;
}

.contact-v{
  color: #0f172a;
  font-weight: 500;
  font-size: 13px;
}

.contact-link{
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px solid rgba(15,23,42,.25);
}

.contact-link:hover{
  border-bottom-color: rgba(15,23,42,.55);
}

.contacts-note{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.map-frame{
  height: 100%;
  min-height: 320px;
}

.map-frame iframe{
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.contacts-shell__footer{
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.45;
  background: #ffffff;
}

/* =========================================================
   MODAL
   ========================================================= */

.pc-modalMask{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.pc-modal{
  width: min(560px, 100%);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(2,6,23,.35);
}

.pc-modalHead{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.pc-modalHead b{
  font-size: 14px;
  font-weight: 700;
}

.pc-x{
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #0f172a;
}

.pc-modalBody{
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.pc-formArea{
  display: grid;
  gap: 12px;
}

.pc-modalGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px){
  .pc-modalGrid{ grid-template-columns: 1fr; }
}

.pc-modal input,
.pc-modal textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
}

.pc-modal textarea{
  min-height: 110px;
  resize: vertical;
}

.pc-modal input::placeholder,
.pc-modal textarea::placeholder{
  color: #94a3b8;
  font-weight: 400;
}

.pc-modal input:focus,
.pc-modal textarea:focus{
  outline: none;
  border-color: #ffb300;
  box-shadow: 0 0 0 3px rgba(255,179,0,.18);
}

.pc-modalGrid input{
  height: 44px;
}

.pc-send{
  margin-top: 6px;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
  cursor: pointer;
}

.pc-send:active{
  transform: translateY(1px);
}

.pc-statusBox{
  display: none;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.pc-status-ok{
  color: #047857;
  font-weight: 700;
  font-size: 13px;
}

.pc-status-err{
  color: #b91c1c;
  font-weight: 700;
  font-size: 13px;
}

.pc-statusSub{
  margin-top: 6px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.35;
}

.pc-summaryBox--modal{
  margin-top: 6px;
}

.pc-summaryTotal{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.pc-summaryTotal .k{
  font-weight: 700;
  color: #0f172a;
}

.pc-summaryTotal .v{
  font-weight: 700;
  color: #0f172a;
}