/* One canonical Figma contact panel serves additions, shows and contacts. */
.additions-contact {
  --container-width: 72.5rem;
  --page-gutter: var(--compact-page-gutter);
  --contact-field-border: rgb(163 130 233 / 80%);
  --contact-placeholder: rgb(132 116 166 / 40%);
  --contact-consent: rgb(255 255 255 / 46.4%);
  padding-block: var(--contact-space-before) var(--contact-space-after);
  color: var(--color-white);
  overflow-wrap: anywhere;
}
.additions-contact__shell { position: relative; container: additions-contact / inline-size; }
.additions-contact__card { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid rgb(178 152 251 / 37%); border-radius: clamp(1.75rem, 4vw, 2.5rem); overflow: clip; }
/* Soften only the empty extended edges; original scene pixels stay sharp. */
.additions-contact__card::before { content: ""; position: absolute; z-index: -2; inset: -1rem; background: var(--contact-bottom-edge) center bottom / 100% auto repeat-y; filter: blur(1rem); }
.additions-contact__heading { position: relative; isolation: isolate; grid-row: 1; min-width: 0; padding: 4.5rem min(1.25rem, 5cqw) 1.5rem; text-align: center; }
.additions-contact__heading::before { content: ""; position: absolute; z-index: -1; inset: -1rem; background: var(--contact-top-edge) center top / 100% auto repeat-y; filter: blur(1rem); clip-path: inset(1rem); }
.additions-contact__heading::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 1.5rem; background: var(--contact-top-edge) center top / 100% auto repeat-y; mask-image: linear-gradient(transparent, #000); pointer-events: none; }
/* 9cqi keeps «Остались вопросы?» on one line on the narrowest phones; enlarged text still scales from 1.5rem. */
.additions-contact__heading h2 { margin: 0; font-size: max(1.5rem, min(clamp(1.75rem, calc(1.55179rem + .991042vw), 2.344625rem), 9cqi)); font-weight: 600; line-height: 1.04; }
.additions-contact__heading p { max-width: 21.6875rem; margin: 1.25rem auto 0; font-size: clamp(.8125rem, calc(.73459rem + .38955vw), .902125rem); font-weight: 500; line-height: 1.25; }
.additions-contact__scene { position: relative; grid-row: 2; display: block; width: 100%; pointer-events: none; }
.additions-contact__scene::after { content: ""; position: absolute; z-index: -1; inset: 100% 0 auto; height: 1.5rem; background: var(--contact-bottom-edge) center top / 100% auto repeat-y; mask-image: linear-gradient(#000, transparent); }
.additions-contact__scene img { display: block; width: 100%; height: auto; max-width: none; }
.additions-contact__badge { position: absolute; z-index: 1; width: clamp(4.5rem, 11vw, 7.5719rem); height: auto; right: 1rem; top: -1.2245rem; pointer-events: none; }
.contact-form { grid-row: 3; min-width: 0; width: 100%; margin: 0; padding: 1.25rem min(3cqw, 1.25rem) 1.5rem; container: contact-form / inline-size; }
.contact-form .offer-form__row { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: .625rem; min-height: 0; border: 0; border-radius: 0; background: transparent; }
.contact-form .offer-field { display: block; min-width: 0; width: 100%; }
.contact-form .offer-field input, .contact-form .offer-field textarea, .contact-form .offer-phone { width: 100%; min-width: 0; min-height: 3.525508rem; border: 1px solid var(--contact-field-border); border-radius: 1.875rem; background: rgb(255 255 255 / 80%); }
.contact-form .offer-field input, .contact-form .offer-field textarea { display: block; padding: 1.125rem 1.1875rem; font: inherit; font-size: .875rem; font-weight: 400; line-height: 1.3; color: #2c2c2c; }
.contact-form .offer-field textarea { min-height: 8.307919rem; resize: vertical; }
.contact-form .offer-field textarea:not(:focus) { resize: none; }
.contact-form .offer-field input::placeholder, .contact-form .offer-field textarea::placeholder, .contact-form .offer-phone input::placeholder { color: var(--contact-placeholder); opacity: 1; }
.contact-form .offer-phone { gap: .4375rem; padding-inline: 1.6875rem 1.1875rem; }
.contact-form .offer-phone input { padding: 0; min-height: 2.75rem; font-size: .875rem; font-weight: 400; line-height: 1.3; color: #2c2c2c; }
.contact-form .offer-phone__prefix { gap: .5791rem; font-size: .875rem; font-weight: 400; letter-spacing: .05em; }
.contact-form .offer-phone__prefix img { width: 1.0625rem; height: .7171rem; }
.contact-form .offer-phone__prefix .offer-phone__chevron { width: .5rem; height: .1932rem; opacity: 1; }
.contact-form .offer-form__submit { width: 100%; min-height: 3.890216rem; padding: 1rem; margin-top: .125rem; font-size: .8020625rem; font-weight: 500; line-height: 1.2; color: #876b2b; background: linear-gradient(84.056608deg, var(--color-gold-start) .75162%, var(--color-gold-end) 99.459%); }
.contact-form .offer-form__consents { gap: 0; margin-top: .8125rem; }
/* Thanks: a light 409 × 120 card centred over the fields (Figma ASUbb6hQZf8cAetY2CnRN6 6820:3239). */
.contact-form[data-sent] > .form-success { inset: 0; width: min(25.5625rem, 100%); min-height: 7.5rem; margin: auto; padding: 1rem 1.25rem 1rem min(2.5625rem, 6%); border-color: rgb(163 130 233 / 80%); border-radius: 1.875rem; background: rgb(255 255 255 / 80%); color: #8474a6; }
.contact-form[data-sent] > .form-success .form-success__text { color: rgb(132 116 166 / 70%); }
/* On phones the form spans the panel; keep the card off its rounded edges. */
@media (width < 48rem) { .contact-form[data-sent] > .form-success { width: min(25.5625rem, 100% - 2rem); } }
.contact-form .offer-consent { grid-template-columns: .8125rem minmax(0, 1fr); gap: 1rem; min-height: 2.75rem; align-items: center; }
.contact-form .offer-consent > span { color: var(--contact-consent); font-size: .5625rem; font-weight: 400; line-height: 1.19; }
.contact-form .offer-consent input { appearance: none; margin: 0; border: 1px solid rgb(255 255 255 / 10%); border-radius: .1875rem; background: rgb(243 243 243 / 43%); }
.contact-form .offer-consent input:checked { appearance: auto; background: none; }
.contact-form .offer-consent__underlined { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .12em; }
.contact-form [hidden] { display: none !important; }

/* Enlarged text keeps the whole number visible instead of squeezing its input. */
@container contact-form (width < 14em) {
  .contact-form .offer-phone { flex-wrap: wrap; gap: .25rem; padding: .375rem; }
  .contact-form .offer-phone__prefix { flex-basis: 100%; }
  .contact-form .offer-phone input { flex: 1 0 100%; min-height: 2em; }
}

/* Columns follow available space; desktop source typography remains the cap. */
@media (48rem <= width < 75rem) {
  @container additions-contact (min-width: 38em) {
    .additions-contact__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; }
    .additions-contact__card::before { background-image: var(--contact-scene-top-edge); }
    .additions-contact__heading { grid-column: 1; grid-row: 1; padding: 2.875rem 1.5rem 1.5rem; background: none; text-align: left; }
    .additions-contact__heading p { margin-inline: 0; }
    .additions-contact__heading::before, .additions-contact__heading::after { display: none; }
    /* The art group (centre at 2/3 of the scene height) sits in the middle of the free space under the text.
       The scene is a zero-height anchor so it never stretches the card; the image (height 40.09cqi of the
       card width) hangs from it, and its original top and bottom rows continue the scene above and below. */
    .additions-contact__scene { z-index: -1; grid-column: 1 / -1; grid-row: 2; align-self: center; height: 0; }
    .additions-contact__scene img { position: absolute; top: 0; left: 0; translate: 0 -66.667%; }
    .additions-contact__scene::before { content: ""; position: absolute; inset: auto 0 calc(100% + 26.72cqi); height: 1.5rem; background: var(--contact-scene-top-edge) center top / 100% auto repeat-y; mask-image: linear-gradient(transparent, #000); }
    .additions-contact__scene::after { z-index: auto; inset: calc(13.36cqi - 1px) 0 auto; height: 100vh; background-image: var(--contact-scene-bottom-edge); mask-image: none; }
    .contact-form { grid-column: 2; grid-row: 1 / span 2; padding-top: 4.5rem; padding-bottom: 1rem; background: none; }
  }
}
@media (width >= 75rem) {
  .additions-contact { --page-gutter: var(--desktop-page-gutter); }
  @container additions-contact (min-width: 65em) {
  .additions-contact__card { min-height: var(--contact-card-height); grid-template-columns: minmax(0, 1fr) minmax(0, 24.5625rem); gap: 3.75rem; padding: 2.8125rem 7.5rem var(--contact-bottom-padding) 3.6875rem; border-radius: 2.5rem; }
  .additions-contact__card::before, .additions-contact__heading::before, .additions-contact__heading::after { display: none; }
  .additions-contact__scene { position: absolute; z-index: -1; grid-area: auto; inset: 0; width: 100%; height: 100%; }
  .additions-contact__scene::after { display: none; }
  .additions-contact__scene img { height: 100%; object-fit: cover; }
  .additions-contact__heading { grid-row: 1; padding: 0; background: none; text-align: left; }
  .additions-contact__heading h2 { font-size: 2.344625rem; }
  .additions-contact__heading p { margin: 1.5625rem 0 0 .1875rem; font-size: .902125rem; }
  .additions-contact__heading p span { display: block; }
  .additions-contact__badge { width: 7.5719rem; right: 2.77625rem; }
  .contact-form { grid-column: 2; grid-row: 1; padding: .6875rem 0 0; background: none; }
  .contact-form .offer-form__row { gap: .595625rem; }
  .contact-form .offer-field--name, .contact-form .offer-phone { max-width: 18.8125rem; }
  .contact-form .offer-field textarea { padding-top: 1.25rem; }
  .contact-form .offer-form__submit { max-width: 14.5625rem; margin-top: .195625rem; margin-left: .0625rem; }
  .contact-form .offer-consent { min-height: .875rem; }
  .contact-form .offer-form__consents { width: calc(100% + 4rem); gap: .375rem; margin-top: 1rem; }
  }
}
