.vk-scc {
  --vk-scc-border: rgba(21, 27, 38, 0.12);
  --vk-scc-border-strong: rgba(21, 27, 38, 0.22);
  --vk-scc-text: #151b26;
  --vk-scc-muted: #687080;
  --vk-scc-bg: #ffffff;
  --vk-scc-soft: #f5f6f8;
  --vk-scc-accent: var(--gb-accent);
  --vk-scc-radius: 3px;

  width: 100%;
  color: var(--vk-scc-text);
  font: inherit;
}

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

.vk-scc [hidden] {
  display: none !important;
}

/* Layout */

.vk-scc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.vk-scc__main {
  min-width: 0;
}

.vk-scc__intro {
  margin-bottom: clamp(32px, 5vw, 58px);
}

/* Intro */

.vk-scc__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--vk-scc-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vk-scc__title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.vk-scc__lead {
  max-width: 760px;
  margin: 0;
  color: var(--vk-scc-muted);
  font-size: 17px;
  line-height: 1.6;
}

/* Sections */

.vk-scc__section {
  padding: 34px 0;
  border-top: 1px solid var(--vk-scc-border);
}

.vk-scc__section-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.vk-scc__section-head h3 {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1.2;
}

.vk-scc__section-head p {
  margin: 0;
  color: var(--vk-scc-muted);
  line-height: 1.5;
}

.vk-scc__step {
  padding-top: 5px;
  color: var(--vk-scc-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Cards */

.vk-scc__cards {
  display: grid;
  gap: 12px;
}

.vk-scc__cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vk-scc__cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vk-scc__card {
  position: relative;
  cursor: pointer;
}

.vk-scc__card > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vk-scc__card-ui {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 170px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--vk-scc-border);
  border-radius: var(--vk-scc-radius);
  background: var(--vk-scc-bg);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.vk-scc__card:hover .vk-scc__card-ui {
  border-color: var(--vk-scc-border-strong);
  transform: translateY(-1px);
}

.vk-scc__card > input:focus-visible + .vk-scc__card-ui {
  outline: 2px solid var(--gb-accent);
  outline-offset: 2px;
}

.vk-scc__card > input:checked + .vk-scc__card-ui {
  border-color: var(--gb-accent);
  box-shadow: inset 0 0 0 1px var(--gb-accent);
}

.vk-scc__card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.vk-scc__card strong {
  font-size: 17px;
  line-height: 1.25;
}

.vk-scc__card small {
  color: var(--vk-scc-muted);
  line-height: 1.45;
}

.vk-scc__card-price {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
}

.vk-scc__radio-dot {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid var(--vk-scc-border-strong);
  border-radius: 50%;
}

.vk-scc__card > input:checked + .vk-scc__card-ui .vk-scc__radio-dot::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gb-accent);
  content: "";
}

/* Included note */

.vk-scc__included-box,
.vk-scc__included-note {
  margin-top: 0;
  margin-bottom: 10px;
  padding: 15px 17px;
  border-radius: 12px;
  background: var(--vk-scc-soft);
  color: var(--vk-scc-muted);
  font-size: 14px;
  line-height: 1.55;
}

.vk-scc__included-box strong {
  color: var(--vk-scc-text);
}

/* Fields and counters */

.vk-scc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vk-scc__field {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--vk-scc-border);
  border-radius: var(--vk-scc-radius);
}

.vk-scc__field-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.vk-scc__field-copy strong {
  font-size: 15px;
}

.vk-scc__field-copy small {
  color: var(--vk-scc-muted);
  line-height: 1.4;
}

.vk-scc__field-copy span {
  font-size: 12px;
  font-weight: 700;
}

.vk-scc__counter {
  display: grid;
  grid-template-columns: 36px 56px 36px;
  flex: 0 0 auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--vk-scc-border);
  border-radius: 10px;
}

.vk-scc__counter button,
.vk-scc__counter input {
  height: 38px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
}

.vk-scc__counter button {
  cursor: pointer;
  font-size: 20px;
}

.vk-scc__counter button:hover {
  background: var(--vk-scc-soft);
}

.vk-scc__counter input {
  width: 100%;
  appearance: textfield;
  -moz-appearance: textfield;
  font-size: 14px;
  font-weight: 700;
}

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

/* Conditional fields */

.vk-scc__conditional {
  margin-top: 12px;
}

.vk-scc__conditional > .vk-scc__field {
  width: 100%;
}

.vk-scc__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vk-scc__options > .vk-scc__conditional {
  margin-top: 0;
}

.vk-scc__option {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 30%;
  gap: 12px;
  align-items: start;
  min-height: 104px;
  padding: 17px;
  border: 1px solid var(--vk-scc-border);
  border-radius: var(--vk-scc-radius);
  background: var(--vk-scc-bg);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.vk-scc__option--wide {
  grid-column: 1 / -1;
  min-height: auto;
  margin-top: 12px;
}

.vk-scc__option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vk-scc__option:has(input:checked) {
  border-color: var(--gb-accent);
  box-shadow: inset 0 0 0 1px var(--gb-accent);
}

.vk-scc__option:has(input:focus-visible) {
  outline: 2px solid var(--gb-accent);
  outline-offset: 2px;
}

.vk-scc__option-check {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--vk-scc-border-strong);
  border-radius: 5px;
}

.vk-scc__option > input:checked ~ .vk-scc__option-check {
  border-color: var(--gb-accent);
  background: var(--gb-accent);
}

.vk-scc__option > input:checked ~ .vk-scc__option-check::after {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg);
  content: "";
}

.vk-scc__option-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.vk-scc__option-body strong {
  font-size: 15px;
  line-height: 1.3;
}

.vk-scc__option-body small {
  color: var(--vk-scc-muted);
  line-height: 1.4;
}

.vk-scc__option-price {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  white-space: normal;
	grid-column: span 3;
}

.vk-scc__subfield {
  grid-column: 1 / -1;
  margin-top: -2px;
}

.vk-scc__subfield .vk-scc__field {
  background: var(--vk-scc-soft);
}

.vk-scc__options > .vk-scc__included-note {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* Summary */

.vk-scc__summary-wrap {
  position: sticky;
  top: 120px;
}

.vk-scc__summary {
  position: sticky;
  top: 28px;
  padding: 26px;
  border: 1px solid var(--vk-scc-border);
  border-radius: var(--vk-scc-radius);
  background: var(--vk-scc-bg);
  box-shadow: 0 18px 50px rgba(21, 27, 38, 0.08);
}

.vk-scc__summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--vk-scc-muted);
  font-size: 13px;
}

.vk-scc__summary-price {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.vk-scc__summary-extra {
  margin-top: 9px;
  color: var(--vk-scc-muted);
  font-size: 13px;
  line-height: 1.4;
}

.vk-scc__summary-note {
  margin: 10px 0 20px;
  color: var(--vk-scc-muted);
  font-size: 13px;
  line-height: 1.5;
}

.vk-scc__summary-project {
  padding-top: 18px;
  border-top: 1px solid var(--vk-scc-border);
  font-size: 18px;
  font-weight: 700;
}

.vk-scc__summary-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 20px;
  padding: 0;
  list-style: none;
}

.vk-scc__summary-list li {
  position: relative;
  padding-left: 16px;
  color: var(--vk-scc-muted);
  font-size: 13px;
  line-height: 1.45;
}

.vk-scc__summary-list li::before {
  position: absolute;
  left: 0;
  color: var(--vk-scc-text);
  content: "•";
}

.vk-scc__summary-included {
  padding-top: 18px;
  border-top: 1px solid var(--vk-scc-border);
}

.vk-scc__summary-included > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.vk-scc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vk-scc__chips span {
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--vk-scc-soft);
  color: var(--vk-scc-muted);
  font-size: 11px;
  line-height: 1.2;
}

/* Gift */

.vk-scc__gift {
  margin-top: 20px;
  padding: 15px;
  border-radius: var(--vk-scc-radius);
  background-color: var(--gb-accent);
}

.vk-scc__gift * {
  color: var(--gb-paper-2) !important;
}

.vk-scc__gift strong {
  font-size: 14px;
}

.vk-scc__gift p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

/* Buttons */

.vk-scc__cta,
.vk-scc__copy {
  width: 100% !important;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 11px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.vk-scc__cta {
  margin-top: 14px;
  border: 1px solid var(--vk-scc-text);
  background: var(--vk-scc-text);
  color: #fff;
}

.vk-scc__copy {
  margin-top: 8px;
  border: 1px solid var(--vk-scc-border);
  background: transparent;
  color: var(--vk-scc-text);
}

.vk-scc__cta:hover,
.vk-scc__copy:hover {
  opacity: 0.84;
}

/* Overrides */

.vk-scc__main * {
  color: #000;
}

.vk-scc__field,
.vk-scc__card-ui {
  background-color: #fff;
}

/* Tablet */

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

  .vk-scc__summary-wrap {
    order: 2;
  }

  .vk-scc__summary {
    position: static;
  }
}

/* Mobile */

@media (max-width: 760px) {
  .vk-scc__cards--3,
  .vk-scc__cards--2,
  .vk-scc__grid,
  .vk-scc__options {
    grid-template-columns: 1fr;
  }

  .vk-scc__card-ui {
    min-height: 0;
  }

  .vk-scc__section-head {
    grid-template-columns: 34px 1fr;
  }

  .vk-scc__option {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .vk-scc__option-price {
    grid-column: 2;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .vk-scc__section {
    padding: 28px 0;
  }

  .vk-scc__field {
    flex-direction: column;
    align-items: flex-start;
  }

  .vk-scc__counter {
    grid-template-columns: 44px 1fr 44px;
    width: 100%;
  }

  .vk-scc__summary {
    padding: 20px;
    border-radius: 16px;
  }
}
/* v2: dynamic project/add-on builder */
.vk-scc__cards--projects {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.vk-scc__addon-wrap {
  min-width: 0;
}

.vk-scc__addon-wrap > .vk-scc__option {
/*   height: 100%; */
	height: stretch;
    max-height: 160px;
}

.vk-scc__addon-wrap > .vk-scc__subfield {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .vk-scc__cards--projects {
    grid-template-columns: 1fr;
  }
}
