/* КнигДекор · продающая страница индивидуального подбора */

.selection-page {
  padding-bottom: 0;
  background: var(--surface-page, #f3f3ef);
}

.selection-page main {
  overflow: hidden;
}

.selection-container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.selection-eyebrow {
  display: block;
  margin-bottom: 13px;
  color: var(--c-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.selection-hero {
  padding: 24px 0 clamp(64px, 8vw, 104px);
}

.selection-crumbs {
  margin-bottom: 28px;
}

.selection-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}

.selection-hero__copy {
  min-width: 0;
}

body.selection-page.theme-v2 .selection-hero h1 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.selection-hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--c-text-muted);
  font-size: clamp(1.08rem, 1.65vw, 1.24rem);
  line-height: 1.62;
}

.selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
  margin-top: 30px;
}

.selection-text-link,
.selection-section__link {
  min-height: 44px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--c-text);
  font-weight: 900;
}

.selection-text-link:hover,
.selection-section__link:hover {
  color: var(--c-accent);
}

.selection-hero__note {
  max-width: 560px;
  margin: 17px 0 0;
  color: var(--c-text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.selection-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 30px 0 0;
  padding: 0;
  color: #4d504b;
  font-size: 0.86rem;
  font-weight: 800;
  list-style: none;
}

.selection-hero__facts li {
  position: relative;
  padding-left: 18px;
}

.selection-hero__facts li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  content: "";
}

.selection-hero__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 30px;
  background: var(--surface-placeholder);
  box-shadow: 0 24px 64px rgba(45, 31, 31, 0.12);
}

.selection-hero__media img {
  width: 100%;
  height: clamp(490px, 51vw, 640px);
  display: block;
  object-fit: cover;
  object-position: center 60%;
}

.selection-hero__media figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  color: #fff;
  background: rgba(28, 28, 25, 0.72);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.selection-section {
  padding: clamp(68px, 8vw, 104px) 0;
}

.selection-section__head {
  max-width: 760px;
  margin-bottom: 32px;
}

.selection-section__head--row {
  max-width: none;
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
}

body.selection-page.theme-v2 .selection-section h2,
body.selection-page.theme-v2 .selection-contact h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.selection-section__head > p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--c-text-muted);
  font-size: 1.02rem;
  line-height: 1.66;
}

.selection-examples {
  background: #fff;
}

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

.selection-example {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  background: var(--surface-placeholder);
}

.selection-example img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.selection-example:hover img {
  transform: scale(1.02);
}

.selection-example figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(24, 25, 22, 0.75);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
  font-weight: 800;
}

.selection-scale {
  padding-top: 0;
  background: var(--surface-page);
}

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

.selection-scale-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.2vw, 38px);
  border: 1px solid rgba(32, 35, 31, 0.08);
  border-radius: 26px;
  background: #fff;
}

.selection-scale-card--room {
  background: #e8eee7;
}

.selection-scale-card--library {
  color: #fffcee;
  background: #273c5d;
}

.selection-scale-card > span {
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--c-accent);
  background: #f7eeee;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.selection-scale-card--library > span {
  color: #fffcee;
  background: rgba(255, 255, 255, 0.12);
}

body.selection-page.theme-v2 .selection-scale-card h3 {
  max-width: 15ch;
  margin: auto 0 0;
  padding-top: 36px;
  font-size: clamp(1.55rem, 2.45vw, 2.05rem);
  line-height: 1.08;
}

body.selection-page.theme-v2 .selection-scale-card--library h3 {
  color: #fffcee;
}

.selection-scale-card p {
  margin: 15px 0 0;
  color: var(--c-text-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.selection-scale-card--library p {
  color: rgba(255, 252, 238, 0.76);
}

.selection-process {
  padding-top: 0;
}

.selection-process__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(44px, 7vw, 90px);
  align-items: start;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid #deddd5;
  border-radius: 30px;
  color: var(--c-text);
  background: #fbfaf6;
  box-shadow: 0 18px 48px rgba(45, 31, 31, 0.06);
}

.selection-process .selection-section__head {
  margin: 0;
}

.selection-process .selection-eyebrow {
  color: #d9a9ae;
}

body.selection-page.theme-v2 .selection-process h2,
body.selection-page.theme-v2 .selection-process h3 {
  color: var(--c-text);
}

.selection-process .selection-section__head p,
.selection-process__steps p {
  color: #60635d;
}

.selection-knigoed-proof {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid #cfd9e8;
  border-radius: 18px;
  color: #273c5d;
  background: #e8eef7;
}

.selection-knigoed-proof > img {
  width: 132px;
  height: auto;
  display: block;
}

.selection-knigoed-proof > div {
  display: flex;
  gap: 11px;
  align-items: end;
}

.selection-knigoed-proof strong {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.selection-knigoed-proof span {
  max-width: 10ch;
  color: rgba(39, 60, 93, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}

.selection-knigoed-proof > a {
  width: max-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff;
  background: #273c5d;
  font-size: 0.78rem;
  font-weight: 900;
}

.selection-knigoed-proof > a:hover {
  color: #273c5d;
  background: #fffcee;
}

.selection-process__steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selection-process__steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-divider);
}

.selection-process__steps li:first-child {
  padding-top: 0;
}

.selection-process__steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.selection-process__steps > li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f8f4eb;
  background: var(--c-accent);
  font-size: 0.75rem;
  font-weight: 900;
}

body.selection-page.theme-v2 .selection-process__steps h3 {
  margin: 2px 0 0;
  font-size: 1.22rem;
}

.selection-process__steps p {
  margin: 7px 0 0;
  line-height: 1.55;
}

.selection-reasons {
  padding-top: 0;
}

.selection-reasons__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--c-divider);
  border-bottom: 1px solid var(--c-divider);
}

.selection-reasons__grid article {
  min-width: 0;
  padding: 30px 24px 34px;
  border-right: 1px solid var(--c-divider);
}

.selection-reasons__grid article:first-child {
  padding-left: 0;
}

.selection-reasons__grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.selection-reasons__grid strong {
  color: var(--c-accent);
  font-size: 0.78rem;
}

body.selection-page.theme-v2 .selection-reasons__grid h3 {
  margin: 28px 0 0;
  font-size: 1.3rem;
}

.selection-reasons__grid p {
  margin: 10px 0 0;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.selection-faq {
  padding-top: 0;
}

.selection-faq__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}

.selection-faq__list {
  border-top: 1px solid var(--c-divider);
}

.selection-faq details {
  border-bottom: 1px solid var(--c-divider);
}

.selection-faq summary {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 50px 18px 0;
  color: var(--c-text);
  cursor: pointer;
  font-size: 1.03rem;
  font-weight: 900;
  list-style: none;
}

.selection-faq summary::-webkit-details-marker {
  display: none;
}

.selection-faq summary::after {
  position: absolute;
  right: 3px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--c-accent);
  background: #f7eeee;
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
}

.selection-faq details[open] summary::after {
  content: "−";
}

.selection-faq details p {
  max-width: 650px;
  margin: -4px 0 22px;
  color: var(--c-text-muted);
  line-height: 1.65;
}

.selection-contact {
  padding: clamp(56px, 7vw, 88px) 0 clamp(44px, 6vw, 72px);
  background: #fff;
}

.selection-contact__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(38px, 7vw, 86px);
  align-items: center;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 30px;
  background: #e6eee6;
}

.selection-contact__copy > p {
  max-width: 480px;
  margin: 19px 0 0;
  color: var(--c-text-muted);
  font-size: 1.04rem;
  line-height: 1.62;
}

.selection-contact__copy .selection-contact__note {
  max-width: 430px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.selection-contact__copy ul {
  display: grid;
  gap: 8px;
  margin: 25px 0 0;
  padding: 0;
  color: #4d504b;
  font-size: 0.9rem;
  font-weight: 800;
  list-style: none;
}

.selection-contact__copy li::before {
  margin-right: 9px;
  color: var(--c-accent);
  content: "✓";
}

.selection-form {
  min-width: 0;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(30, 33, 30, 0.1);
}

.selection-form .form__input {
  min-height: 56px;
  background: var(--surface-page);
}

.selection-form .form__radio-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.selection-form .form__radio {
  min-width: 0;
}

.selection-form .form__radio span {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  border: 1px solid var(--c-divider);
  border-radius: 13px;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
}

.selection-form .form__radio input:checked + span {
  border-color: var(--c-accent);
  color: #fff;
  background: var(--c-accent);
}

.selection-form .form__radio input:focus-visible + span {
  outline: 3px solid #afc3e3;
  outline-offset: 3px;
}

.selection-form .form__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

.selection-form .form__state:not(:empty) {
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
}

.selection-form .form__state[data-kind="success"] {
  color: #264b30;
  background: #edf6ef;
}

.selection-form .form__state[data-kind="error"] {
  color: #6e2933;
  background: #f8e8ea;
}

.selection-back {
  min-height: 44px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 32px;
  color: var(--c-text);
  font-weight: 900;
}

.selection-back:hover {
  color: var(--c-accent);
}

.selection-page .footer {
  margin-top: 0;
}

@media (max-width: 960px) {
  .selection-hero__grid,
  .selection-process__panel,
  .selection-contact__panel {
    grid-template-columns: 1fr;
  }

  .selection-hero__media img {
    height: min(72vw, 580px);
  }

  .selection-scale__grid {
    grid-template-columns: 1fr 1fr;
  }

  .selection-scale-card--library {
    grid-column: 1 / -1;
  }

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

  .selection-reasons__grid article:nth-child(2) {
    border-right: 0;
  }

  .selection-reasons__grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--c-divider);
  }

  .selection-reasons__grid article:nth-child(3) {
    padding-left: 0;
  }

  .selection-contact__copy {
    max-width: 680px;
  }
}

@media (max-width: 759px) {
  .selection-container {
    width: min(100% - 28px, 560px);
  }

  .selection-hero {
    padding: 18px 0 56px;
  }

  .selection-crumbs {
    display: none;
  }

  .selection-hero__grid {
    gap: 30px;
  }

  body.selection-page.theme-v2 .selection-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }

  .selection-hero__lead {
    margin-top: 19px;
    font-size: 1rem;
  }

  .selection-actions {
    align-items: stretch;
    margin-top: 24px;
  }

  .selection-actions .btn,
  .selection-text-link {
    width: 100%;
    justify-content: center;
  }

  .selection-hero__facts {
    display: grid;
    gap: 9px;
    margin-top: 23px;
  }

  .selection-hero__media {
    border-radius: 22px;
  }

  .selection-hero__media img {
    height: 118vw;
    max-height: 560px;
  }

  .selection-section {
    padding: 60px 0;
  }

  body.selection-page.theme-v2 .selection-section h2,
  body.selection-page.theme-v2 .selection-contact h2 {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
  }

  .selection-section__head--row {
    display: block;
  }

  .selection-section__link {
    margin-top: 12px;
  }

  .selection-examples__grid {
    grid-template-columns: 1fr;
  }

  .selection-example img {
    aspect-ratio: 4 / 4.7;
  }

  .selection-scale__grid,
  .selection-faq__layout {
    grid-template-columns: 1fr;
  }

  .selection-scale-card,
  .selection-scale-card--library {
    min-height: 240px;
    grid-column: auto;
  }

  .selection-process {
    padding-top: 0;
  }

  .selection-process__panel {
    gap: 36px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .selection-reasons {
    padding-top: 0;
  }

  .selection-reasons__grid {
    grid-template-columns: 1fr;
  }

  .selection-reasons__grid article,
  .selection-reasons__grid article:first-child,
  .selection-reasons__grid article:nth-child(3),
  .selection-reasons__grid article:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--c-divider);
  }

  .selection-reasons__grid article:last-child {
    border-bottom: 0;
  }

  .selection-faq__layout {
    gap: 12px;
  }

  .selection-contact {
    padding: 50px 0 38px;
  }

  .selection-contact__panel {
    gap: 30px;
    padding: 28px 18px;
    border-radius: 22px;
  }

  .selection-form {
    padding: 22px 16px;
  }

  .selection-form .form__radio-group {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .selection-page *,
  .selection-page *::before,
  .selection-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
