/* =============================================================
   Калькулятор стоимости проектирования — «Декарт-Строй Проект»
   Фирменный стиль dekartstroy.ru: #0081d2 / #003d76 / #e8f4ff,
   заголовки Oswald (uppercase), текст Inter, радиусы 8/16px.
   Все классы с префиксом dk-calc — не конфликтуют с темой.
   ============================================================= */

.dk-calc {
  --dk-blue: #0081d2;
  --dk-blue-h: #0478c1;
  --dk-navy: #003d76;
  --dk-light: #e8f4ff;
  --dk-text: #110f0f;
  --dk-muted: #555;
  --dk-gray: #b7b7b8;
  --dk-border: #e5e5e5;
  --dk-bg: #f8f8f8;
  --dk-ok: #1a8a45;
  --dk-shadow: 0 24px 24px -16px rgba(15, 15, 15, .2);

  position: relative;
  padding: 128px 0;
  font-family: "Inter", sans-serif;
  color: var(--dk-text);
  background-color: var(--dk-bg);
  /* «декартова» сетка — отсылка к названию бюро */
  background-image:
    linear-gradient(rgba(0, 129, 210, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 129, 210, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.dk-calc *, .dk-calc *::before, .dk-calc *::after { box-sizing: border-box; }
.dk-calc [hidden] { display: none !important; }

.dk-calc__container { width: 1536px; max-width: 100%; margin: 0 auto; padding: 0 15px; }

/* ---------- Шапка блока ---------- */
.dk-calc__head { display: flex; flex-direction: column; gap: 32px; margin-bottom: 40px; }
.dk-calc__eyebrow {
  color: var(--dk-navy); opacity: .3;
  font: 600 20px/120% "Oswald", sans-serif; text-transform: uppercase; margin-bottom: 16px;
}
.dk-calc__title {
  margin: 0; font: 600 56px/120% "Oswald", sans-serif; text-transform: uppercase; color: var(--dk-text);
}
.dk-calc__title span { color: var(--dk-blue); }
.dk-calc__notice {
  display: inline-flex; align-items: center; gap: 10px; margin: 24px 0 0; padding: 10px 16px 10px 12px;
  border-radius: 8px; background: var(--dk-light); color: var(--dk-navy); font-size: 16px; font-weight: 500; line-height: 140%;
}
.dk-calc__notice svg { flex-shrink: 0; width: 22px; height: 22px; fill: none; stroke: var(--dk-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dk-calc__usp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.dk-calc__usp li {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #fff;
  border: 1px solid var(--dk-border); border-radius: 16px; transition: box-shadow .4s, border-color .4s;
}
.dk-calc__usp li:hover { border-color: var(--dk-blue); box-shadow: var(--dk-shadow); }
.dk-calc__usp svg { flex-shrink: 0; width: 48px; height: 48px; padding: 8px; border-radius: 8px; background: var(--dk-light);
  fill: none; stroke: var(--dk-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dk-calc__usp b { display: block; font: 600 18px/120% "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .5px; color: var(--dk-text); }
.dk-calc__usp small { display: block; margin-top: 4px; font-size: 14px; line-height: 140%; color: var(--dk-muted); }

/* ---------- Сетка ---------- */
.dk-calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 496px; gap: 24px; align-items: start; }
.dk-calc__steps { display: flex; flex-direction: column; gap: 16px; }

.dk-calc__step {
  padding: 32px; background: #fff; border: 1px solid var(--dk-border); border-radius: 16px;
  transition: box-shadow .4s;
}
.dk-calc__step:hover { box-shadow: var(--dk-shadow); }
.dk-calc__step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.dk-calc__step-head h3 {
  margin: 0; font: 600 20px/120% "Oswald", sans-serif; letter-spacing: 1px; text-transform: uppercase;
}
.dk-calc__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; background: var(--dk-light); color: var(--dk-blue);
  font: 600 18px/1 "Oswald", sans-serif;
}
.dk-calc__all {
  margin-left: auto; border: 0; background: none; cursor: pointer; padding: 4px 0;
  color: var(--dk-blue); font: 600 16px/24px "Inter", sans-serif; border-bottom: 1px dashed currentColor; white-space: nowrap;
}
.dk-calc__all:hover { opacity: .7; }

/* ---------- Шаг 1: тип ---------- */
.dk-calc__types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dk-calc__type input, .dk-calc__sec input, .dk-calc__opt input, .dk-calc__consent input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.dk-calc__type { position: relative; cursor: pointer; }
.dk-calc__type-box {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 20px; border: 1px solid var(--dk-border); border-radius: 16px; background: #fff;
  transition: all .4s;
}
.dk-calc__type-box svg {
  width: 48px; height: 48px; margin-bottom: 24px; fill: none; stroke: var(--dk-gray);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s;
}
.dk-calc__type-name { font: 600 18px/120% "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.dk-calc__type-note { margin-top: 6px; font-size: 14px; line-height: 140%; color: var(--dk-muted); }
.dk-calc__type-box::after {
  content: ""; position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--dk-border); transition: all .4s;
}
.dk-calc__type:hover .dk-calc__type-box { border-color: var(--dk-blue); }
.dk-calc__type input:checked + .dk-calc__type-box { border-color: var(--dk-blue); background: var(--dk-light); }
.dk-calc__type input:checked + .dk-calc__type-box svg { stroke: var(--dk-blue); }
.dk-calc__type input:checked + .dk-calc__type-box::after {
  border-color: var(--dk-blue);
  background: var(--dk-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.dk-calc__type input:focus-visible + .dk-calc__type-box { outline: 2px solid var(--dk-blue); outline-offset: 2px; }

/* ---------- Шаг 2: площадь ---------- */
.dk-calc__area { display: flex; align-items: center; gap: 32px; }
.dk-calc__area-input {
  position: relative; flex-shrink: 0; width: 200px; height: 64px;
  border: 1px solid #e8e8e8; border-radius: 8px; background: #fff; transition: border-color .4s;
}
.dk-calc__area-input:focus-within { border-color: var(--dk-blue); }
.dk-calc__area-input input {
  width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 56px 0 16px;
  font: 600 32px/1 "Oswald", sans-serif; color: var(--dk-text); -moz-appearance: textfield;
}
.dk-calc__area-input input::-webkit-outer-spin-button,
.dk-calc__area-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dk-calc__area-input span {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font: 600 20px/1 "Oswald", sans-serif; color: var(--dk-gray);
}
.dk-calc__range-wrap { flex-grow: 1; }
.dk-calc input[type="range"] {
  --p: 20%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 12px 0;
  border-radius: 3px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--dk-blue) var(--p), #e5e5e5 var(--p));
}
.dk-calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 6px solid var(--dk-blue); box-shadow: 0 4px 12px rgba(0, 61, 118, .3);
  transition: transform .2s;
}
.dk-calc input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 6px solid var(--dk-blue); box-shadow: 0 4px 12px rgba(0, 61, 118, .3);
}
.dk-calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.dk-calc__range-scale { display: flex; justify-content: space-between; font-size: 14px; color: var(--dk-gray); }
.dk-calc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.dk-calc__chip {
  height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--dk-border); background: #fff;
  font: 500 15px/1 "Inter", sans-serif; color: var(--dk-text); cursor: pointer; transition: all .3s;
}
.dk-calc__chip:hover { border-color: var(--dk-blue); color: var(--dk-blue); }
.dk-calc__chip.is-active { background: var(--dk-blue); border-color: var(--dk-blue); color: #fff; }

.dk-calc__area-note { margin: 16px 0 0; font-size: 14px; line-height: 150%; color: var(--dk-muted); }

/* ---------- Шаг 3: разделы ---------- */
.dk-calc__sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.dk-calc__sec { position: relative; cursor: pointer; }
.dk-calc__sec-box {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px;
  border: 1px solid var(--dk-border); border-radius: 12px; background: #fff; transition: all .3s;
}
.dk-calc__sec-code {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 40px; padding: 0 6px; border-radius: 8px; background: var(--dk-bg);
  font: 600 15px/1 "Oswald", sans-serif; color: var(--dk-navy); transition: all .3s;
}
.dk-calc__sec-text { flex-grow: 1; min-width: 0; }
.dk-calc__sec-text b { display: block; font-size: 16px; font-weight: 600; line-height: 130%; }
.dk-calc__sec-text small { display: block; margin-top: 2px; font-size: 13px; color: var(--dk-muted); }
.dk-calc__sec-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 1px solid #555; transition: all .3s;
}
.dk-calc__sec:hover .dk-calc__sec-box { border-color: var(--dk-blue); }
.dk-calc__sec input:checked + .dk-calc__sec-box { border-color: var(--dk-blue); background: var(--dk-light); }
.dk-calc__sec input:checked + .dk-calc__sec-box .dk-calc__sec-code { background: var(--dk-blue); color: #fff; }
.dk-calc__sec input:checked + .dk-calc__sec-box .dk-calc__sec-check,
.dk-calc__consent input:checked + b {
  border-color: var(--dk-blue);
  background: var(--dk-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.dk-calc__sec input:focus-visible + .dk-calc__sec-box { outline: 2px solid var(--dk-blue); outline-offset: 2px; }

.dk-calc__hint {
  display: block; margin-top: 16px; padding: 12px 16px; border-radius: 8px;
  background: #fff4e6; border: 1px solid #fde0b0; color: #9a5200; font-size: 15px; line-height: 140%;
}
.dk-calc__hint.is-ok { background: #e8f8ee; border-color: #c1edcf; color: var(--dk-ok); }

/* ---------- Шаг 4: дополнительно ---------- */
.dk-calc__options { display: flex; flex-direction: column; }
.dk-calc__opt {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 0;
  border-top: 1px solid var(--dk-border); cursor: pointer;
}
.dk-calc__opt:first-child { border-top: 0; padding-top: 0; }
.dk-calc__opt:last-child { padding-bottom: 0; }
.dk-calc__opt--info { cursor: default; }
.dk-calc__opt-ico {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 28px;
  border-radius: 14px; background: var(--dk-light); color: var(--dk-blue); font: 700 16px/1 "Oswald", sans-serif;
}
.dk-calc__switch { position: relative; flex-shrink: 0; width: 48px; height: 28px; border-radius: 14px; background: #d9d9d9; transition: background .3s; }
.dk-calc__switch::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .3s;
}
.dk-calc__opt input:checked + .dk-calc__switch { background: var(--dk-blue); }
.dk-calc__opt input:checked + .dk-calc__switch::after { transform: translateX(20px); }
.dk-calc__opt input:focus-visible + .dk-calc__switch { outline: 2px solid var(--dk-blue); outline-offset: 2px; }
.dk-calc__opt-text { flex-grow: 1; }
.dk-calc__opt-text b { display: block; font-size: 17px; font-weight: 600; line-height: 130%; }
.dk-calc__opt-text small { display: block; margin-top: 2px; font-size: 14px; color: var(--dk-muted); line-height: 140%; }
.dk-calc__opt-price { flex-shrink: 0; font: 600 18px/1 "Oswald", sans-serif; color: var(--dk-blue); white-space: nowrap; }

/* ---------- Карточка результата ---------- */
.dk-calc__result { position: sticky; top: 148px; }
.dk-calc__card {
  position: relative; overflow: hidden; padding: 32px; border-radius: 16px; color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(150deg, #0081d2 0%, #003d76 100%);
  box-shadow: 0 32px 48px -24px rgba(0, 61, 118, .55);
}
.dk-calc__card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dk-calc__card-label { font: 600 18px/120% "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, .75); }
.dk-calc__tag {
  padding: 6px 12px; border-radius: 50px; background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.dk-calc__old { margin-top: 14px; font: 500 22px/1 "Oswald", sans-serif; color: rgba(255, 255, 255, .55); text-decoration: line-through; }
.dk-calc__badge {
  display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 50px; background: #fff; color: var(--dk-navy);
  font-size: 13px; font-weight: 700; white-space: nowrap; animation: dkPop .4s ease;
}
.dk-calc__save { margin-top: 16px; padding: 10px 14px; border-radius: 8px; background: rgba(255, 255, 255, .14); font-size: 15px; font-weight: 600; }
.dk-calc__lines li.is-minus b { color: #9ff0bd; }
.dk-calc__price { margin-top: 12px; font: 700 64px/110% "Oswald", sans-serif; white-space: nowrap; }
.dk-calc__price small { font-size: 28px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.dk-calc__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.dk-calc__meta b { color: #fff; }

.dk-calc__details { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.dk-calc__details summary {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0 12px; cursor: pointer; list-style: none;
  font: 600 16px/120% "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 1px;
}
.dk-calc__details summary::-webkit-details-marker { display: none; }
.dk-calc__details summary span { margin-left: auto; margin-right: 10px; font: 400 14px/1 "Inter", sans-serif; text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, .7); }
.dk-calc__details summary::after {
  content: ""; width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s;
}
.dk-calc__details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.dk-calc__lines { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.dk-calc__lines li {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0;
  font-size: 15px; line-height: 140%; border-bottom: 1px dashed rgba(255, 255, 255, .15); animation: dkFade .3s ease;
}
.dk-calc__lines li:last-child { border-bottom: 0; }
.dk-calc__lines li span { color: rgba(255, 255, 255, .85); }
.dk-calc__lines li b { white-space: nowrap; font-weight: 600; }
.dk-calc__lines li.is-empty { justify-content: center; color: rgba(255, 255, 255, .7); }

/* ---------- Форма ---------- */
.dk-calc__lead-form { margin-top: 20px; padding: 24px; border-radius: 12px; background: #fff; color: var(--dk-text); }
.dk-calc__form-title { margin-bottom: 6px; font: 600 18px/125% "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.dk-calc__form-sub { margin: 0 0 16px; font-size: 14px; line-height: 150%; color: var(--dk-muted); }
.dk-calc__input {
  display: block; width: 100%; height: 56px; margin-bottom: 8px; padding: 0 16px;
  border: 1px solid #e8e8e8; border-radius: 8px; background: #fff; outline: none;
  font: 400 17px/1 "Inter", sans-serif; color: var(--dk-text); transition: border-color .4s;
}
.dk-calc__input::placeholder { color: var(--dk-muted); }
.dk-calc__input:focus { border-color: var(--dk-blue); }
.dk-calc__input.is-invalid { border-color: #f40d29; animation: dkShake .35s; }
.dk-calc__hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.dk-calc__btn {
  display: flex; white-space: normal; text-align: center; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 12px 24px;
  border: 0; border-radius: 8px; background: var(--dk-blue); color: #fff; cursor: pointer; text-decoration: none;
  font: 600 18px/24px "Inter", sans-serif;  transition: all .4s;
  box-shadow: 0 12px 24px -12px rgba(0, 129, 210, .8);
}
.dk-calc__btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.dk-calc__btn:hover { background: var(--dk-blue-h); border-radius: 24px; color: #fff; text-decoration: none; }
.dk-calc__btn:hover svg { transform: translateX(3px); }
.dk-calc__btn:disabled { opacity: .6; cursor: progress; }
.dk-calc__btn--sm { width: auto; min-height: 44px; white-space: nowrap; padding: 0 18px; font-size: 15px; }
.dk-calc__consent { position: relative; display: flex; gap: 8px; margin-top: 14px; cursor: pointer; font-size: 12px; line-height: 150%; color: var(--dk-text); user-select: none; }
.dk-calc__consent b { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border: 1px solid #555; border-radius: 2px; transition: all .3s; }
.dk-calc__consent a { color: var(--dk-text); text-decoration: underline; }
.dk-calc__consent a:hover { color: var(--dk-blue); }
.dk-calc__consent.is-invalid b { border-color: #f40d29; }
.dk-calc__error { margin-top: 12px; font-size: 14px; color: #f40d29; }

.dk-calc__success {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; padding: 24px; border-radius: 12px;
  background: #fff; color: var(--dk-text); animation: dkPop .4s ease;
}
.dk-calc__success svg { flex-shrink: 0; width: 48px; height: 48px; fill: none; stroke: var(--dk-ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dk-calc__success b { display: block; font: 600 20px/120% "Oswald", sans-serif; text-transform: uppercase; }
.dk-calc__success span { display: block; margin-top: 6px; font-size: 15px; line-height: 150%; color: var(--dk-muted); }

.dk-calc__msg { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.dk-calc__msg > div { display: flex; gap: 8px; }
.dk-calc__msg-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: all .3s;
}
.dk-calc__msg-btn svg { width: 18px; height: 18px; fill: currentColor; }
.dk-calc__msg-btn:hover { background: #fff; color: var(--dk-navy); border-radius: 20px; text-decoration: none; }
.dk-calc__copied { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; animation: dkFade .3s ease; }
.dk-calc__note { margin: 16px 0 0; font-size: 12px; line-height: 150%; color: rgba(255, 255, 255, .6); }

/* ---------- Мобильная плашка ---------- */
.dk-calc-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--dk-navy); color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
  transform: translateY(140%); transition: transform .4s;
}
.dk-calc-bar.is-visible { transform: translateY(0); }
.dk-calc-bar small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
.dk-calc-bar b { display: block; font: 600 22px/1.1 "Oswald", sans-serif; white-space: nowrap; }

/* ---------- Анимации ---------- */
@keyframes dkPop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes dkFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes dkShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.dk-calc__price.is-bump { animation: dkBump .35s ease; }
@keyframes dkBump { 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .dk-calc * { animation: none !important; transition: none !important; } }

/* ---------- Адаптив (брейкпоинты темы) ---------- */
@media (max-width: 1600px) {
  .dk-calc__container { width: 1160px; }
  .dk-calc__title { font-size: 48px; }
  .dk-calc__grid { grid-template-columns: minmax(0, 1fr) 440px; }
  .dk-calc__price { font-size: 56px; }
}
@media (max-width: 1199px) {
  .dk-calc__usp li { padding: 16px; gap: 12px; }
  .dk-calc__usp b { font-size: 16px; }
  .dk-calc__usp svg { width: 40px; height: 40px; }
  .dk-calc__container { width: 960px; }
  .dk-calc__head { gap: 24px; }
  .dk-calc__grid { grid-template-columns: minmax(0, 1fr) 400px; }
  .dk-calc__result { top: 100px; }
  .dk-calc__price { font-size: 48px; }
}
@media (max-width: 992px) {
  .dk-calc { padding: 40px 0; }
  .dk-calc__container { width: 730px; }
  .dk-calc__eyebrow { font-size: 16px; }
  .dk-calc__title { font-size: 32px; }
  .dk-calc__grid { grid-template-columns: 1fr; }
  .dk-calc__result { position: static; }
  .dk-calc__step { padding: 24px 16px; }
  .dk-calc-bar { display: flex; }
}
@media (max-width: 767px) {
  .dk-calc__usp { grid-template-columns: 1fr; }
  .dk-calc__sections { grid-template-columns: 1fr; }
  .dk-calc__notice { font-size: 14px; }
  .dk-calc__container { width: 540px; }
  .dk-calc__types { grid-template-columns: 1fr; gap: 8px; }
  .dk-calc__type-box { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 14px 48px 14px 16px; }
  .dk-calc__type-box svg { width: 36px; height: 36px; margin: 0 14px 0 0; }
  .dk-calc__type-name { font-size: 16px; }
  .dk-calc__type-note { width: 100%; padding-left: 50px; margin-top: -8px; font-size: 13px; }
  .dk-calc__type-box::after { top: 50%; transform: translateY(-50%); }
  .dk-calc__area { flex-direction: column; align-items: stretch; gap: 8px; }
  .dk-calc__area-input { width: 100%; }
}
@media (max-width: 576px) {
  .dk-calc__opt-text b { font-size: 15px; }
  .dk-calc__opt-text small { font-size: 13px; }
  .dk-calc__opt-price { font-size: 15px; }
  .dk-calc__container { width: 100%; }
  .dk-calc__title { font-size: 28px; }
  .dk-calc__card { padding: 24px 16px; }
  .dk-calc__price { font-size: 40px; }
  .dk-calc__price small { font-size: 20px; }
  .dk-calc__msg { flex-direction: column; align-items: stretch; }
  .dk-calc__msg > div a { flex: 1; justify-content: center; }
  .dk-calc__step-head h3 { font-size: 17px; }
}

.dk-calc__old:not([hidden]) + .dk-calc__price { margin-top: 4px; }

/* ---------- Contact Form 7 внутри калькулятора ---------- */
.dk-calc .wpcf7 { margin: 0; }
.dk-calc .wpcf7-form { margin: 0; }
.dk-calc .wpcf7-form-control-wrap { position: relative; display: block; }
.dk-calc .hidden-fields-container { display: none; border: 0; margin: 0; padding: 0; }
.dk-calc .wpcf7-not-valid-tip { display: block; margin: -4px 0 8px; font-size: 13px; line-height: 140%; color: #f40d29; }
.dk-calc .wpcf7-not-valid.dk-calc__input,
.dk-calc .dk-is-invalid .dk-calc__input { border-color: #f40d29; animation: dkShake .35s; }
.dk-calc .wpcf7-response-output { display: none !important; }
.dk-calc .wpcf7-spinner { display: none; }

/* кнопка [submit] — это <input>, стрелку рисует обёртка */
.dk-calc__submit { position: relative; display: block; }
.dk-calc__submit .dk-calc__btn { -webkit-appearance: none; appearance: none; padding: 12px 52px 12px 20px; }
.dk-calc__submit::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/24px no-repeat;
  transition: transform .3s;
}
.dk-calc__submit:hover::after { transform: translateX(3px); }
.dk-calc .wpcf7-form.submitting .dk-calc__btn { opacity: .6; cursor: progress; pointer-events: none; }

/* согласие — чекбокс CF7 (acceptance) в стиле темы */
.dk-calc__consent .wpcf7-list-item { display: block; margin: 0; }
.dk-calc__consent .wpcf7-acceptance label { display: flex; gap: 0; align-items: flex-start; cursor: pointer; }
.dk-calc__consent .wpcf7-acceptance label input {
  position: static; opacity: 1; width: 18px; min-width: 18px; height: 18px; margin: 1px 8px 0 0; pointer-events: auto;
  -webkit-appearance: none; appearance: none; border: 1px solid #555; border-radius: 2px; background: #fff center/14px no-repeat; cursor: pointer; transition: all .3s;
}
.dk-calc__consent .wpcf7-acceptance label input:checked {
  border-color: var(--dk-blue);
  background-color: var(--dk-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
}
.dk-calc__consent .dk-is-invalid label input,
.dk-calc__consent .wpcf7-not-valid input { border-color: #f40d29; }
.dk-calc__consent .wpcf7-list-item-label { display: block; }
@media (max-width: 576px) {
  .dk-calc__submit .dk-calc__btn { font-size: 16px; padding: 12px 44px 12px 16px; }
  .dk-calc__submit::after { right: 14px; }
}

/* ---------- Липкая правая колонка ----------
   В теме у .page-wrapper стоит overflow:hidden — с ним position:sticky не работает.
   overflow:clip так же обрезает всё лишнее, но не мешает sticky.
   Старые браузеры без поддержки clip просто оставят overflow:hidden (колонка не залипнет, вёрстка не сломается). */
@supports (overflow: clip) {
  .page-wrapper { overflow: clip; }
}
.dk-calc__grid { align-items: start; }
/* для администратора: сверху ещё панель WordPress 32px */
.admin-bar .dk-calc__result { top: 180px; }
@media (max-width: 1199px) { .admin-bar .dk-calc__result { top: 132px; } }
