/* WINEKEYS / Винный калькулятор. Только внутри .wkc — без конфликтов с другими страницами. */
.wkc {
  --wkc-accent: var(--wkf-accent, #ff705e);
  --wkc-ink: var(--wkf-ink, #252320);
  --wkc-muted: var(--wkf-muted, #77726e);
  --wkc-line: var(--wkf-border, #ece5df);
  --wkc-serif: var(--wkf-serif, Georgia, 'Times New Roman', serif);
  --wkc-sans: var(--wkf-sans, Arial, Helvetica, sans-serif);
  margin-block: 65px 105px;
  color: var(--wkc-ink);
  font: 400 15px/1.5 var(--wkc-sans);
}

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

.wkc .wkc__heading {
  max-width: 860px;
  margin-bottom: 32px;
}

.wkc .wkf-eyebrow {
  margin: 0 0 13px;
}

.wkc__title {
  margin: 0;
  color: var(--wkc-ink);
  font: 400 clamp(35px, 4vw, 58px)/1.1 var(--wkc-serif);
  letter-spacing: -.045em;
}

.wkc__title span {
  color: var(--wkc-accent);
}

.wkc__subtitle {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--wkc-muted);
  line-height: 1.7;
}

.wkc__panel {
  padding: clamp(18px, 2.5vw, 38px);
  background: #fff;
  border: 1px solid #eee9e5;
  border-radius: 22px;
  box-shadow: 0 14px 48px rgba(70, 53, 44, .045);
}

.wkc fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wkc legend {
  float: left;
  width: 100%;
}

.wkc fieldset> :not(legend) {
  clear: both;
}

.wkc__legend {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--wkc-ink);
  font: 400 clamp(21px, 2vw, 27px)/1.2 var(--wkc-serif);
}

.wkc__step {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #665e58;
  background: #f3eeea;
  font: 600 16px/1 var(--wkc-serif);
}

.wkc__dimensions {
  padding-bottom: 31px !important;
  border-bottom: 1px solid var(--wkc-line) !important;
}

.wkc__dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.wkc__dimension {
  min-width: 0;
  padding-right: 25px;
  border-right: 1px solid var(--wkc-line);
}

.wkc__dimension:last-child {
  border-right: 0;
  padding-right: 0;
}

.wkc__dimension-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 16px;
}

.wkc__dimension-top label {
  color: #3e3936;
  font: 400 17px/1.2 var(--wkc-serif);
}

.wkc__number-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 43px;
  padding-right: 10px;
  border: 1px solid #e3dad4;
  border-radius: 10px;
  background: #fff;
}

.wkc__number-wrap:focus-within {
  outline: 2px solid #ffbbb0;
}

.wkc__number-wrap input {
  display: block;
  width: 78px;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  border-radius: 10px;
  background: transparent;
  padding: 5px 8px;
  color: var(--wkc-ink);
  text-align: right;
  font: 500 16px/1 var(--wkc-sans);
  outline: none !important;
  box-shadow: none !important;
  appearance: textfield;
}

.wkc__number-wrap input::-webkit-inner-spin-button,
.wkc__number-wrap input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.wkc__number-wrap span {
  color: #827c76;
  font-size: 11px;
}

.wkc__range {
  display: block;
  width: 100%;
  height: 6px;
  margin: 14px 0 13px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--wkc-accent) var(--wkc-progress, 0%), #e6e0dc var(--wkc-progress, 0%));
  outline-offset: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.wkc__range::-webkit-slider-thumb {
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 50%;
  background: var(--wkc-accent);
  box-shadow: 0 0 0 4px #fff;
  appearance: none;
  -webkit-appearance: none;
}

.wkc__range::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 50%;
  background: var(--wkc-accent);
  box-shadow: 0 0 0 4px #fff;
}

.wkc__range-endpoints {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #968f89;
}

.wkc__choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 30px;
}

.wkc__choices-group:first-child {
  padding-right: 34px;
  border-right: 1px solid var(--wkc-line);
}

.wkc__segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wkc__choice {
  display: block;
  position: relative;
  cursor: pointer;
  min-width: 0;
}

.wkc__choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wkc__choice span {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 11px 10px;
  border: 1px solid #e8e2dd;
  border-radius: 11px;
  background: #faf9f7;
  color: #3d3835;
  font: 400 15px/1.3 var(--wkc-serif);
  text-align: center;
  transition: background .2s ease, border-color .2s ease;
}

.wkc__choice input:checked+span {
  border-color: var(--wkc-accent);
  background: #fff0ec;
}

.wkc__choice input:focus-visible+span {
  outline: 3px solid #ffbaa9;
  outline-offset: 2px;
}

.wkc__extras {
  margin-top: 30px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid var(--wkc-line) !important;
}

.wkc__extras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.wkc__check {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  font-size: 14px;
}

.wkc__check input,
.wkc__consent input {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  accent-color: var(--wkc-accent);
  cursor: pointer;
}

.wkc__estimate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(265px, .75fr);
  gap: 25px;
  align-items: center;
  margin-top: 22px;
  padding: clamp(19px, 2.2vw, 30px);
  border-radius: 18px;
  background: #f8f6f4;
}

.wkc__price-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 400 17px/1.2 var(--wkc-serif);
}

.wkc__info-icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #bbb3ac;
  border-radius: 50%;
  color: #908780;
  font: 400 11px/1 var(--wkc-sans);
}

.wkc__price {
  margin-top: 5px;
  color: #211f1d;
  font: 400 clamp(34px, 4.3vw, 58px)/1.14 var(--wkc-serif);
  letter-spacing: -.055em;
}

.wkc__formula {
  margin-top: 7px;
  font-weight: 600;
  color: #6a625e;
  font-size: 12px;
}

.wkc__price-note {
  max-width: 520px;
  margin: 10px 0 0;
  color: #88817c;
  font-size: 11px;
  line-height: 1.5;
}

.wkc__estimate-actions {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.wkc__primary,
.wkc__secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 49px;
  padding: 11px 16px;
  border-radius: 10px;
  font: 600 13px/1.3 var(--wkc-sans);
  cursor: pointer;
}

.wkc__primary {
  border: 1px solid var(--wkc-accent);
  color: #fff;
  background: var(--wkc-accent);
}

.wkc__primary:hover {
  background: #ec5d4f;
}

.wkc__secondary {
  border: 1px solid #d4b3a8;
  color: #5a4640;
  background: transparent;
}

.wkc__secondary:hover {
  background: #fff;
}

.wkc__action-hint {
  margin: 2px 0 0;
  color: #97908a;
  font-size: 11px;
  line-height: 1.45;
}

.wkc__form {
  margin-top: 23px;
  padding: 23px;
  border: 1px solid #f0e1da;
  border-radius: 15px;
  background: #fffdfa;
}

.wkc__form[hidden] {
  display: none !important;
}

.wkc__form-head h3 {
  margin: 0;
  font: 400 24px/1.2 var(--wkc-serif);
}

.wkc__form-head p {
  margin: 7px 0 15px;
  color: var(--wkc-muted);
  font-size: 13px;
}

.wkc__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wkc__form-grid label {
  display: grid;
  gap: 5px;
  color: #37332f;
  font-size: 13px;
}

.wkc__form-grid input {
  display: block;
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #e5dbd5;
  border-radius: 8px;
  background: white;
  color: var(--wkc-ink);
  font: 14px var(--wkc-sans);
}

.wkc__form-grid input:focus {
  outline: 2px solid #ffbbb0;
}

.wkc__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 17px 0;
  color: #706963;
  font-size: 12px;
}

.wkc__consent a {
  color: #bf594d;
  text-decoration: underline;
}

.wkc__submit {
  max-width: 300px;
}

.wkc__submit:disabled {
  opacity: .6;
  cursor: wait;
}

.wkc__form-status {
  margin: 9px 0 0;
  color: #736e69;
  font-size: 12px;
}

.wkc__honeypot {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.wkc :focus-visible {
  outline: 3px solid #ffb8ad;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .wkc__dimensions-grid {
    gap: 12px;
  }

  .wkc__dimension {
    padding-right: 12px;
  }

  .wkc__dimension-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .wkc__choices-grid {
    gap: 20px;
  }

  .wkc__choices-group:first-child {
    padding-right: 20px;
  }

  .wkc__estimate {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .wkc {
    margin-block: 45px 70px;
  }

  .wkc__panel {
    padding: 20px 16px;
  }

  .wkc__dimensions-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wkc__dimension {
    padding: 0 0 17px;
    border-right: 0;
    border-bottom: 1px solid var(--wkc-line);
  }

  .wkc__dimension:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .wkc__dimension-top {
    flex-direction: row;
    align-items: center;
  }

  .wkc__choices-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .wkc__choices-group:first-child {
    padding-right: 0;
    border-right: 0;
  }

  .wkc__extras-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wkc__estimate {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .wkc__title {
    font-size: 36px;
  }

  .wkc__legend {
    font-size: 21px;
    gap: 9px;
  }

  .wkc__step {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .wkc__segmented {
    gap: 8px;
  }

  .wkc__choice span {
    font-size: 13px;
  }

  .wkc__extras-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .wkc__form-grid {
    grid-template-columns: 1fr;
  }

  .wkc__form {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wkc__choice span {
    transition: none;
  }
}