/* Внутренние страницы kluch-podkluch.ru: хром в языке главной v3.
   Классы с префиксом kpkiv, чтобы не спорить с темой templat258. */

@font-face {
  font-family: "Circe";
  src: url("/wp-content/themes/templat258/fonts/Circe-Regular.woff") format("woff");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Circe";
  src: url("/wp-content/themes/templat258/fonts/Circe-Bold.woff") format("woff");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Circe";
  src: url("/wp-content/themes/templat258/fonts/Circe-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

html[data-kpkiv="1"],
html[data-kpkiv="1"] body {
  overflow-x: clip;
}

body.kpkiv > a.time-sale { display: none !important; }
body.kpkiv #geoselect-popup { display: none !important; }

.kpkiv-dark,
.kpkiv-footer,
.kpkiv-drawer {
  font-family: "Circe", "Nunito", "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
}
.kpkiv-dark *,
.kpkiv-footer *,
.kpkiv-drawer * { box-sizing: border-box; }

.kpkiv-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
  display: block;
}

.kpkiv-dark {
  background: #1E2425;
  color: #fff;
  border-radius: 0 0 24px 24px;
}
.kpkiv-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.kpkiv-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.kpkiv-topin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.3;
  color: #BCBDBE;
  text-align: center;
}
.kpkiv-top a {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.kpkiv-top a:hover { color: #00A7DC; }

body.kpkiv header.kpkiv-header {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  height: auto !important;
  position: static !important;
  display: block !important;
}
.kpkiv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 84px;
  min-width: 0;
}
.kpkiv-logo {
  display: flex;
  align-items: center;
  flex: none;
}
.kpkiv-logo img {
  width: 160px;
  height: 52px;
  max-width: none;
  display: block;
}

.kpkiv-city {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}
body.kpkiv button.kpkiv-citybtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  margin: 0;
  padding: 0 10px 0 16px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
  color: #BCBDBE;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.kpkiv-citybtn b { color: #fff; font-weight: 700; }
.kpkiv-citybtn .kpkiv-icon { width: 16px; height: 16px; }
.kpkiv-citybtn__change { color: #00A7DC; font-weight: 700; }
.kpkiv-citybtn:hover .kpkiv-citybtn__change { color: #fff; }

body.kpkiv nav.kpkiv-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 0 auto;
  padding: 0 !important;
  background: transparent !important;
  position: static !important;
  min-width: 0;
}
.kpkiv-nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.kpkiv-nav a:hover { background: rgba(255, 255, 255, 0.08); }
.kpkiv-nav a.is-active { background: #00A7DC; color: #fff; }

body.kpkiv a.kpkiv-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  height: 44px;
  margin-left: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  overflow: visible;
  max-width: none;
  min-width: max-content;
}
.kpkiv-phone span,
.kpkiv-footphone {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}
.kpkiv-phone:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

body.kpkiv button.kpkiv-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0 0 0 auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.kpkiv-panel {
  display: none;
  position: fixed;
  z-index: 1200;
  width: min(440px, calc(100% - 32px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 8px;
  background: #fff;
  color: #1E2425;
  border: 1px solid #E4E5E5;
  border-radius: 16px;
}
.kpkiv-panel.is-open { display: block; }
.kpkiv-panel__title {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #787C7C;
}
.kpkiv-panel ul { list-style: none; margin: 0; padding: 0; }
.kpkiv-panel a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: #1E2425;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.kpkiv-panel a:hover { background: #EDEEEE; color: #1E2425; }
.kpkiv-panel a.is-current { background: rgba(0, 167, 220, 0.15); color: #00A7DC; }

.kpkiv-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
}
.kpkiv-drawer.is-open { display: block; }
.kpkiv-drawer__bg {
  position: absolute;
  inset: 0;
  background: #1E2425;
  opacity: 0.6;
}
.kpkiv-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  padding: 24px;
  background: #1E2425;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
}
.kpkiv-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body.kpkiv .kpkiv-drawer button.kpkiv-citybtn,
body.kpkiv .kpkiv-drawer button.kpkiv-burger {
  display: inline-flex;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.kpkiv-drawnav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpkiv-drawnav a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.kpkiv-drawnav a:hover { background: rgba(255, 255, 255, 0.08); }
.kpkiv-drawnav a.is-active { background: #00A7DC; }
.kpkiv-drawer__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kpkiv-drawer__foot .kpkiv-phone {
  width: 100%;
  margin: 0;
  min-width: 0;
}
.kpkiv-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.kpkiv-wa:hover { background: #1E2425; color: #fff; border-color: #fff; }

.kpkiv-footer {
  background: #1E2425 !important;
  color: #fff;
  padding: 0 !important;
  margin: 48px 0 0 !important;
  border-radius: 24px 24px 0 0;
}
body.kpkiv footer.kpkiv-footer { display: block !important; }
.kpkiv-footgrid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr);
  gap: 40px;
  padding: 64px 0 40px;
}
.kpkiv-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.kpkiv-brand img { width: 160px; height: 52px; max-width: none; }
.kpkiv-brand b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kpkiv-brand span { color: #BCBDBE; font-size: 14px; }
.kpkiv-footer h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #BCBDBE;
  letter-spacing: 0;
  line-height: 1.3;
}
.kpkiv-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}
.kpkiv-footer a { color: #fff; text-decoration: none; }
.kpkiv-footer a:hover { color: #00A7DC; }
.kpkiv-footphone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.kpkiv-footphone:hover { color: #00A7DC; }
.kpkiv-muted {
  margin-top: 8px;
  color: #BCBDBE;
  font-size: 13px;
  line-height: 1.5;
}
.kpkiv-footbottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: #BCBDBE;
}
.kpkiv-footlinks { display: flex; gap: 16px; flex-wrap: wrap; }
.kpkiv-footbottom a:hover { color: #fff; }

@media (max-width: 1180px) {
  .kpkiv-nav a { padding: 0 8px; font-size: 13px; }
  .kpkiv-phone { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 1040px) {
  body.kpkiv nav.kpkiv-nav,
  body.kpkiv header.kpkiv-header a.kpkiv-phone { display: none !important; }
  body.kpkiv header.kpkiv-header button.kpkiv-burger { display: inline-flex; }
  .kpkiv-city { margin-left: auto; }
  header.kpkiv-header .kpkiv-citybtn b,
  header.kpkiv-header .kpkiv-city .kpkiv-icon { display: none; }
  body.kpkiv header.kpkiv-header button.kpkiv-citybtn {
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
  }
  .kpkiv-bar { height: 72px; }
  .kpkiv-footgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .kpkiv-wrap { padding: 0 16px; }
  .kpkiv-topin { flex-wrap: wrap; }
  .kpkiv-footgrid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; }
  .kpkiv-footphone { font-size: 20px; }
}

/* Кнопки темы внутри контента: одна база, текст в одну строку, hover — фирменный тёмный. */
body.kpkiv .section-1 .buttons .btn,
body.kpkiv .section-4 .btn,
body.kpkiv .section-6 .btn,
body.kpkiv .section-12 .btn,
body.kpkiv .section-36 .btn,
body.kpkiv .section-37 .btn,
body.kpkiv .section-7 button,
body.kpkiv .section-10 button,
body.kpkiv .section-33 button,
body.kpkiv form.send-data button,
body.kpkiv a.scenario-btn,
body.kpkiv a.sticky-mobile-btn,
body.kpkiv a.kpk-lead__btn,
body.kpkiv a.kpk-mp__btn,
body.kpkiv .woocommerce a.button,
body.kpkiv .woocommerce button.button,
body.kpkiv .woocommerce input.button,
body.kpkiv .wc-block-components-button {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #00A7DC;
  color: #fff !important;
  font-family: "Circe", "Nunito", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none;
  cursor: pointer;
}
body.kpkiv .section-1 .buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  width: auto;
}
body.kpkiv .kpk-lead__btns,
body.kpkiv .kpk-mp__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
body.kpkiv a.kpk-lead__btn,
body.kpkiv a.kpk-mp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 200px;
  width: auto;
  max-width: 100%;
  min-width: 200px;
}
body.kpkiv .section-7 button,
body.kpkiv .section-10 button,
body.kpkiv .section-33 button,
body.kpkiv form.send-data button {
  width: 100%;
  margin-bottom: 20px;
}
body.kpkiv a.scenario-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}
body.kpkiv a.sticky-mobile-btn {
  display: none;
  align-items: center;
  justify-content: center;
}
body.kpkiv .section-1 .buttons .btn:hover,
body.kpkiv .section-4 .btn:hover,
body.kpkiv .section-6 .btn:hover,
body.kpkiv .section-12 .btn:hover,
body.kpkiv .section-36 .btn:hover,
body.kpkiv .section-37 .btn:hover,
body.kpkiv .section-7 button:hover,
body.kpkiv .section-10 button:hover,
body.kpkiv .section-33 button:hover,
body.kpkiv form.send-data button:hover,
body.kpkiv a.scenario-btn:hover,
body.kpkiv a.sticky-mobile-btn:hover,
body.kpkiv a.kpk-lead__btn:hover,
body.kpkiv a.kpk-mp__btn:hover,
body.kpkiv .woocommerce a.button:hover,
body.kpkiv .woocommerce button.button:hover,
body.kpkiv .wc-block-components-button:hover {
  background: #1E2425 !important;
  color: #fff !important;
  border-color: #1E2425 !important;
}

@media (max-width: 760px) {
  body.kpkiv .section-1 .buttons .btn { min-width: 0; width: 100%; max-width: 320px; }
}
@media (max-width: 600px) {
  body.kpkiv a.sticky-mobile-btn { display: flex; }
}

/* Форма заявки внизу внутренних страниц — тот же блок, что на главной. */
#contacts { margin: 48px 0 24px; font-family: Circe, "Segoe UI", sans-serif; color: #1E2425; }
#contacts .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
#contacts .kpk-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 16px; row-gap: 12px; align-items: start; }
#contacts .section__head { grid-column: 1; grid-row: 1; margin: 0; }
#contacts .kpk-lead > .card { grid-column: 1; grid-row: 2; background: #fff; border: 1px solid #E4E5E5; border-radius: 16px; padding: 24px; }
#contacts .contact-cta { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 16px; background: #00A7DC; color: #fff; box-sizing: border-box; }
#contacts h2 { margin: 8px 0 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #1E2425; }
#contacts .plate { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; background: #00A7DC; color: #fff; }
#contacts .plate span { font-size: 12px; font-weight: 800; white-space: nowrap; }
#contacts .pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
#contacts .pair { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid #E4E5E5; }
#contacts .pair:nth-last-child(-n+2) { border-bottom: 0; }
#contacts .pair__lbl { font-size: 13px; font-weight: 600; color: #787C7C; }
#contacts .pair__val { font-weight: 700; }
#contacts .pair__val a { color: inherit; text-decoration: none; }
#contacts .tile__lbl { font-size: 13px; font-weight: 600; opacity: .8; }
#contacts .contact-cta__phone { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
#contacts .contact-cta__hours { font-size: 13px; font-weight: 600; opacity: .85; }
#contacts .contact-cta__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#contacts .btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 12px; border-radius: 10px; border: 0; font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; text-decoration: none; }
#contacts .btn_white { background: #fff; color: #1E2425; }
#contacts .cta-form .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#contacts .cta-form .form__row .btn { grid-column: 1 / -1; background: #1E2425; color: #fff; }
#contacts .input, #contacts select.input { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: #1E2425; font: inherit; font-size: 15px; box-sizing: border-box; }
#contacts .form__legal { margin: 8px 0 0; color: #fff; font-size: 12px; font-weight: 500; line-height: 1.35; }
#contacts .form__legal a { color: #fff; }
#contacts .points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
#contacts .point { background: #fff; border: 1px solid #E4E5E5; border-radius: 16px; padding: 24px; }
#contacts .point__name { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
#contacts .point .pairs { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  #contacts .kpk-lead, #contacts .points, #contacts .pairs { grid-template-columns: 1fr; }
  #contacts .section__head, #contacts .kpk-lead > .card, #contacts .contact-cta { grid-column: 1; grid-row: auto; }
  #contacts h2 { font-size: 26px; }
}
