/* Final layout safeguards for the logo, editorial photograph and review form. */
/* A grid reserves a separate lane for every header element, so the logo can
   never sit beneath the navigation at intermediate desktop widths. */
.header {
  display: grid;
  grid-template-columns: minmax(150px, 188px) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(14px, 2vw, 28px);
}

.header .brand {
  display: flex;
  width: min(100%, 188px);
  min-width: 0;
  transform: none;
}

.brand-logo-image {
  display: block;
  width: 100%;
  max-width: 188px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.header .navigation {
  min-width: 0;
  justify-content: space-between;
  gap: clamp(10px, 1.55vw, 26px);
  white-space: nowrap;
}

@media (max-width: 1180px) and (min-width: 761px) {
  .header {
    grid-template-columns: 164px minmax(0, 1fr) auto;
    column-gap: 14px;
  }

  .header .brand { width: 164px; }
  .brand-logo-image { max-width: 164px; max-height: 45px; }
  .header .navigation { gap: 12px; font-size: 10px; }
  .header-contacts { gap: 6px; }
  .header-messenger { width: 42px; height: 42px; }
}

.intro {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
}

.intro .intro-visual {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.intro .intro-kicker {
  align-self: flex-start;
  margin: 0;
}

.intro .intro-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #2d2923;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
}

.intro .intro-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro .intro-copy {
  display: block;
}

.intro .intro-copy > p {
  max-width: 560px;
  margin: 28px 0 0;
  color: #5a504a;
  font: 600 16px/1.7 Manrope, Arial, sans-serif;
}

.review-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.review-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.review-form legend,
.review-form > label {
  display: grid;
  gap: 8px;
  color: #68453b;
  font: 800 10px/1.35 Manrope, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 3px;
}

.rating-input input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rating-input label {
  color: #c9aa98;
  font: 400 33px/1 Arial, sans-serif;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  color: #b94d3d;
}

.rating-input label:hover { transform: translateY(-2px); }
.rating-input input:focus-visible + label { outline: 3px solid #315d52; outline-offset: 3px; }

.review-form textarea {
  min-height: 106px;
  padding: 12px 14px;
  border: 1px solid #c9aa98;
  background: #fffaf5;
  color: var(--ink);
  font: 600 14px/1.5 Manrope, Arial, sans-serif;
}

.review-form .review-consent {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 9px;
  color: #68453b;
  font: 700 10px/1.5 Manrope, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.review-consent input { inline-size: 16px; block-size: 16px; margin: 0; accent-color: var(--forest); }
.review-form .dark-button { margin-top: 2px; border: 0; cursor: pointer; }
.review-result { min-height: 20px; margin: 0; color: #68453b; font: 700 12px/1.5 Manrope, Arial, sans-serif; }

@media (max-width: 760px) {
  .header { display: flex; }
  .header .brand { width: 154px; transform: none; }
  .brand-logo-image { width: 154px; max-width: 154px; max-height: 39px; }
  .intro { grid-template-columns: 1fr; gap: 34px; }
  .intro .intro-visual { gap: 15px; }
  .intro .intro-photo { width: min(100%, 540px); aspect-ratio: 1 / 1; }
  .intro .intro-copy > p { margin-top: 20px; font-size: 15px; }
}

/* The global form alignment must not shrink the site assistant inside its flex panel. */
.site-assistant-panel .site-assistant-form {
  align-self: stretch;
  box-sizing: border-box;
  width: calc(100% - 38px);
  min-width: 0;
  margin-top: 0;
}

.site-assistant-panel .assistant-message {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .site-assistant-panel .site-assistant-form {
    grid-template-columns: minmax(0, 1fr) 48px;
    margin-right: 16px;
    margin-left: 16px;
  }

  .site-assistant-panel .site-assistant-messages {
    padding-bottom: 12px;
  }
}

/* The original sofa photograph from the logo stays intact: no crop, no generated replacement. */
.home-page .intro {
  background: linear-gradient(112deg, #f7ede4 0%, #e6eee7 100%);
}

.home-page .intro .intro-photo {
  width: min(100%, 660px);
  aspect-ratio: 16 / 9;
  background: #1f1d1a;
}

.home-page .intro .intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* A full-screen hero lets the sofa lead, while the softened overlay keeps copy legible. */
.home-page .hero {
  position: relative;
  display: block;
  min-height: max(640px, calc(100svh - 130px));
  overflow: hidden;
  background: #26362f;
  isolation: isolate;
}

.home-page .hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
  box-shadow: none;
}

.home-page .hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-page .hero-art::after {
  background: linear-gradient(90deg, rgba(14, 25, 22, .78) 0%, rgba(14, 25, 22, .5) 42%, rgba(14, 25, 22, .08) 76%), linear-gradient(0deg, rgba(14, 25, 22, .24), transparent 45%);
}

.home-page .hero-copy {
  display: flex;
  min-height: max(640px, calc(100svh - 130px));
  max-width: 790px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 10vw, 148px) clamp(24px, 7vw, 110px);
}

.home-page .hero-copy::before,
.home-page .hero-copy .overline,
.home-page .hero-text { color: #f3e8dc; }
.home-page .hero h1 { color: #fffaf5; }
.home-page .hero h1 em { color: #f5c69a; }
.home-page .hero .dark-button { background: #c65c4e; }
.home-page .hero .dark-button:hover { background: #f5c69a; color: var(--forest); }

/* Primary contact choices on the first screen. */
.home-page .header-messenger[href*="max.ru"] { background: var(--forest); border-color: var(--forest); color: #fffaf5; font: 800 10px/1 Manrope, Arial, sans-serif; letter-spacing: .04em; }
.home-page .header-messenger[href*="max.ru"]::before { display: none; }
.home-page .hero-contacts { width: min(100%, 560px); margin-top: 34px; }
.home-page .hero-call,
.home-page .hero-messengers a { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 16px 22px; border-radius: 999px; font: 800 14px/1 Manrope, Arial, sans-serif; letter-spacing: .01em; text-decoration: none; }
.home-page .hero-call { background: #f5bd37; color: #092235; }
.home-page .hero-call:hover { background: #fffaf5; }
.home-page .hero-messengers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.home-page .hero-messengers a { justify-content: space-between; min-height: 58px; border: 1px solid rgba(255, 250, 245, .66); color: #fffaf5; }
.home-page .hero-messengers a:hover { border-color: #f5bd37; background: #f5bd37; color: #092235; }
.home-page .hero-hours { margin: 17px 0 0; color: #f3e8dc; font: 700 12px/1.4 Manrope, Arial, sans-serif; letter-spacing: .03em; }

@media (max-width: 600px) {
  .home-page .hero-contacts { margin-top: 28px; }
  .home-page .hero-call { min-height: 58px; font-size: 12px; }
  .home-page .hero-messengers { grid-template-columns: 1fr; gap: 9px; margin-top: 10px; }
  .home-page .hero-messengers a { min-height: 54px; font-size: 12px; }
}

/* Keep the first visual generous, but not taller than needed. */
.home-page .hero,
.home-page .hero-copy { min-height: clamp(560px, 74svh, 680px); }
.home-page .hero-hours { font-size: 14px; }
.home-page .catalog .section-heading h2 { font-size: clamp(38px, 3.8vw, 58px); }

/* The assistant stays a compact panel at the lower-right corner. */
.site-assistant { right: 22px; bottom: 22px; left: auto; }
.site-assistant .telegram-assistant { width: 100%; margin-left: 0; }
.site-assistant-panel { width: min(370px, calc(100vw - 32px)); max-height: min(590px, calc(100vh - 110px)); }
.site-assistant-head { padding: 18px 19px 16px; }
.site-assistant-head strong { font-size: 23px; }
.site-assistant-messages { padding: 17px 19px 10px; }
.site-assistant-panel .assistant-message { width: auto; max-width: 100%; padding: 12px 13px; font-size: 13px; line-height: 1.5; }
.site-assistant-panel .assistant-message-user { width: auto; }
.assistant-topics { padding: 8px 19px 15px; }
.site-assistant-panel .site-assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  width: calc(100% - 38px);
  min-width: 0;
  margin: 0 19px;
  overflow: hidden;
}
.site-assistant-panel .site-assistant-form input,
.site-assistant-panel .site-assistant-form button {
  box-sizing: border-box;
  min-width: 0;
}
.site-assistant-panel .site-assistant-form input { width: 100%; }
.site-assistant-panel .site-assistant-form button { width: 48px; }
.assistant-links { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 19px 17px; }
.assistant-links a { width: 100%; box-sizing: border-box; }
.assistant-links a:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  background: var(--red);
  color: #fffaf5;
  font-size: 11px;
  line-height: 1.2;
}
.assistant-links a:first-child:hover,
.assistant-links a:first-child:focus-visible { background: var(--forest); color: #fffaf5; }
.assistant-links .assistant-telegram-link {
  padding: 3px 0 0;
  color: var(--forest);
  font-size: 9px;
}

@media (max-width: 600px) {
  .site-assistant { right: 14px; bottom: 14px; left: auto; }
  .site-assistant-panel { width: calc(100vw - 28px); max-height: calc(100vh - 90px); }
  .site-assistant-head, .site-assistant-messages, .assistant-topics, .assistant-links { padding-right: 16px; padding-left: 16px; }
  .site-assistant-panel .site-assistant-form { margin-right: 16px; margin-left: 16px; }
}

/* Keep the original sofa photo intact and make it a large, standalone work image. */
.home-page .intro {
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, .82fr);
  align-items: center;
  gap: clamp(34px, 6vw, 96px);
  padding-top: clamp(72px, 9vw, 132px);
  padding-bottom: clamp(72px, 9vw, 132px);
  background: linear-gradient(112deg, #f5eee7 0%, #e2ece6 100%);
}
.home-page .intro .intro-visual { display: grid; gap: 18px; }
.home-page .intro .intro-photo { width: 100%; max-width: 820px; aspect-ratio: 16 / 9; margin: 0; background: #1f1d1a; }
.home-page .intro .intro-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.home-page .intro .intro-copy { display: grid; gap: 28px; }
.home-page .intro .intro-copy h2 { margin: 0; }
.home-page .intro .intro-copy p { margin: 0; color: #5a504a; font-size: 16px; line-height: 1.72; }

@media (max-width: 760px) {
  .home-page .intro { grid-template-columns: 1fr; gap: 34px; }
  .home-page .intro .intro-photo { max-width: none; }
}
.home-page .hero .art-caption { color: #fffaf5; }

/* About block: one calm composition, with the original work shown at a useful scale. */
.home-page .intro {
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, .62fr);
  gap: clamp(38px, 6vw, 104px);
  padding-top: clamp(76px, 8vw, 118px);
  padding-bottom: clamp(76px, 8vw, 118px);
  background:
    radial-gradient(circle at 86% 18%, rgba(211, 226, 216, .9), transparent 34%),
    linear-gradient(116deg, #efe5da 0%, #f7f1e9 48%, #e5eee7 100%);
}
.home-page .intro .intro-visual {
  position: relative;
  display: block;
  min-width: 0;
}
.home-page .intro .intro-photo {
  width: 100%;
  max-width: none;
  aspect-ratio: 1430 / 727;
  background: #29231e;
  box-shadow: 0 22px 46px rgba(49, 38, 28, .18);
}
.home-page .intro .intro-photo img {
  object-fit: contain;
}
.home-page .intro .intro-kicker {
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: 20px;
  max-width: calc(100% - 40px);
  margin: 0;
  box-shadow: 0 8px 18px rgba(22, 43, 36, .2);
}
.home-page .intro .intro-copy {
  align-content: center;
  gap: 24px;
  max-width: 455px;
}
.home-page .intro .intro-copy h2 {
  font-size: clamp(38px, 3.55vw, 58px);
  line-height: .98;
}
.home-page .intro .intro-copy p {
  max-width: 430px;
  font-size: 16px;
  line-height: 1.72;
}

/* The reference uses large, aligned visual cards. This is Soft Line's own version. */
.home-page .intro {
  grid-template-columns: minmax(0, 1.44fr) minmax(310px, .56fr);
  gap: 0;
  align-items: stretch;
  padding-top: clamp(54px, 6vw, 88px);
  padding-bottom: clamp(54px, 6vw, 88px);
  background: #e7e2d9;
}
.home-page .intro .intro-visual {
  display: flex;
  background: #29231e;
}
.home-page .intro .intro-photo {
  flex: 1;
  aspect-ratio: auto;
  min-height: clamp(330px, 37vw, 520px);
  box-shadow: none;
}
.home-page .intro .intro-photo img {
  object-fit: contain;
}
.home-page .intro .intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: clamp(32px, 4.2vw, 68px);
  background: var(--forest);
  color: #fffaf5;
}
.home-page .intro .intro-copy .intro-kicker {
  position: static;
  align-self: flex-start;
  max-width: none;
  margin: 0 0 22px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #e7b69d;
  font-size: 10px;
}
.home-page .intro .intro-copy h2 {
  color: #fffaf5;
  font-size: clamp(37px, 3.25vw, 54px);
}
.home-page .intro .intro-copy h2 em { color: #e7b69d; }
.home-page .intro .intro-copy p {
  max-width: none;
  color: rgba(255, 250, 245, .84);
  font-size: 15px;
  line-height: 1.72;
}

/* Atelier story, not a catalogue tile. */
.home-page .intro {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  background: linear-gradient(118deg, #e8e1d6 0%, #f5eee6 55%, #dce7df 100%);
}
.home-page .intro .intro-visual {
  display: block;
  overflow: hidden;
  background: transparent;
}
.home-page .intro .intro-photo {
  width: min(100%, 760px);
  min-height: 0;
  aspect-ratio: 1430 / 727;
  margin-inline: auto;
  background: #33271d;
  box-shadow: none;
}
.home-page .intro .intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
}
.home-page .intro .intro-copy {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--ink);
}
.home-page .intro .intro-copy .intro-kicker {
  margin: 0 0 18px;
  color: var(--forest);
  font-size: 10px;
}
.home-page .intro .intro-copy h2 { color: var(--ink); font-size: clamp(33px, 2.8vw, 46px); }
.home-page .intro .intro-copy h2 em { color: var(--red); }
.home-page .intro .intro-copy p { color: #5a504a; font-size: 18px; line-height: 1.62; }
.intro-steps {
  display: grid;
  gap: 0;
  margin: 28px 0 24px;
  padding: 0;
  border-top: 1px solid rgba(49, 93, 82, .28);
  list-style: none;
}
.intro-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(49, 93, 82, .28);
  color: var(--ink);
  font: 700 16px/1.4 Manrope, Arial, sans-serif;
}
.intro-steps span { color: var(--red); font: 800 12px/1.45 Manrope, Arial, sans-serif; letter-spacing: .08em; }
.intro-project-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--red);
  color: var(--forest);
  font: 800 11px/1.35 Manrope, Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.intro-project-link:hover { color: var(--red); }

/* Materials: each shade must read as a separate, clickable sample. */
.material-carousel .material-compare {
  gap: 5px;
  padding: 5px;
  background: #fffaf5;
}
.material-carousel .material-compare figure {
  border: 1px solid rgba(39, 60, 53, .42);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 245, .7);
}
.material-carousel .material-compare figure::after { opacity: .26; }
.material-carousel .material-compare img {
  /* Source photos include adjacent sample edges; crop them out so one tile shows one texture. */
  transform: scale(1.5);
  transform-origin: right center;
}
.material-carousel .material-switch {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 12px 0 0 auto;
}

/* A selected material opens as a genuine full-screen preview. */
.material-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  background: #13201d;
}
.material-dialog-content {
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .42fr);
}
.material-dialog-content > .material-dialog-images,
.material-dialog-content > .material-dialog-images + div {
  min-height: 100dvh;
}
.material-dialog-images img,
.material-dialog.is-comparing .material-dialog-images img {
  height: 100dvh;
  max-height: none;
}
.material-dialog-content > .material-dialog-images + div { background: #f7e9dd; }
.material-carousel .material-compare figure::before {
  position: absolute;
  right: 8px;
  bottom: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 250, 245, .82);
  border-radius: 50%;
  background: rgba(15, 32, 29, .68);
  color: #fffaf5;
  content: '⌕';
  font: 500 22px/26px Arial, sans-serif;
  text-align: center;
  opacity: 0;
  transition: opacity .18s ease;
}
.material-carousel .material-compare figure:hover::before,
.material-carousel .material-compare figure:focus-visible::before { opacity: 1; }
@media (max-width: 760px) {
  .material-carousel .material-compare { gap: 3px; padding: 3px; }
  .material-carousel .material-compare figure::before { right: 6px; bottom: 8px; opacity: 1; }
  .material-carousel .material-switch { margin: 10px auto 0; }
  .material-dialog-content { min-height: 100dvh; grid-template-columns: 1fr; grid-template-rows: minmax(0, 62dvh) 1fr; }
  .material-dialog-content > .material-dialog-images,
  .material-dialog-content > .material-dialog-images + div { min-height: 0; }
  .material-dialog-images img,
  .material-dialog.is-comparing .material-dialog-images img { height: 62dvh; }
}

/* Clear contact routes at each decision point. */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.contact-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(49, 93, 82, .38);
  color: var(--forest);
  font: 800 10px/1 Manrope, Arial, sans-serif;
  letter-spacing: .035em;
  text-decoration: none;
  white-space: nowrap;
}
.contact-actions a:hover,
.contact-actions a:focus-visible { border-color: var(--red); background: var(--red); color: #fffaf5; }
.contact-actions .contact-actions__call { background: var(--forest); border-color: var(--forest); color: #fffaf5; }
.contact-actions .contact-actions__call:hover,
.contact-actions .contact-actions__call:focus-visible { background: var(--red); border-color: var(--red); }
.home-page .intro .contact-actions a { min-height: 48px; padding-inline: 18px; font-size: 13px; }
.projects-contact { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 32px; }
.projects-contact .projects-cta { gap: 34px; margin: 0; padding-bottom: 9px; flex: 0 0 auto; font-size: 13px; }
.projects-contact .projects-cta span { font-size: 22px; }
.projects-contact .contact-actions { margin: 0; justify-content: flex-end; }
.projects-contact .contact-actions a { min-height: 50px; padding-inline: 17px; font-size: 13px; }
.contact-actions--section { margin-top: 20px; }

/* Configurator: a visual starting point for a real, individual quote. */
.services-grid li { padding: 0; }
.services-grid li > button {
  display: flex;
  width: 100%;
  min-height: 144px;
  padding: 24px 22px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.services-grid li > button:hover,
.services-grid li > button:focus-visible { background: rgba(255, 250, 245, .62); }
.services-grid li > button:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.services-grid__title { color: var(--ink); font: 400 clamp(21px, 2vw, 29px)/1.05 Prata, Georgia, serif; letter-spacing: -.035em; }
.services-grid li > button span { color: var(--red); font: 800 11px/1.35 Manrope, Arial, sans-serif; letter-spacing: .04em; }
.sofa-configurator {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(360px, 1.12fr) minmax(260px, .72fr);
  gap: 28px;
  margin-top: 42px;
  padding: clamp(24px, 3.5vw, 52px);
  background: var(--forest);
  color: #fffaf5;
}
.sofa-configurator__intro h3 { margin: 14px 0 18px; font: 400 clamp(32px, 3.4vw, 52px)/1.02 Prata, Georgia, serif; letter-spacing: -.04em; }
.sofa-configurator__intro h3 em { color: #f4c38e; }
.sofa-configurator__intro > p:not(.overline) { margin: 0; color: #dce7df; font: 600 14px/1.65 Manrope, Arial, sans-serif; }
.sofa-configurator .overline { color: #f4c38e; }
.sofa-configurator__form { display: grid; gap: 16px; }
.sofa-configurator fieldset { margin: 0; padding: 0; border: 0; }
.sofa-configurator legend,
.config-select { display: grid; gap: 8px; color: #fffaf5; font: 800 10px/1.35 Manrope, Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.config-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.config-hint { margin: 6px 0 0; color: #dce7df; font: 600 12px/1.45 Manrope, Arial, sans-serif; }
.config-options label { margin: 0; }
.config-options input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.config-options span { display: inline-flex; min-height: 37px; align-items: center; padding: 0 12px; border: 1px solid rgba(255, 250, 245, .42); color: #fffaf5; font: 800 10px/1 Manrope, Arial, sans-serif; letter-spacing: .035em; text-transform: none; cursor: pointer; }
.config-options input:checked + span { border-color: #f4c38e; background: #f4c38e; color: var(--ink); }
.config-options input:focus-visible + span { outline: 2px solid #fffaf5; outline-offset: 2px; }
.config-options--swatches span::before { width: 13px; height: 13px; margin-right: 7px; border: 1px solid rgba(15, 32, 29, .36); border-radius: 50%; background: var(--swatch); content: ''; }
.config-select select { min-height: 42px; padding: 0 11px; border: 1px solid rgba(255, 250, 245, .45); border-radius: 0; background: #fffaf5; color: var(--ink); font: 700 13px Manrope, Arial, sans-serif; }
.sofa-configurator .light-button { margin-top: 2px; background: #f4c38e; color: var(--ink); }
.sofa-configurator .light-button:hover { background: #fffaf5; }
.configurator-result { min-height: 0; margin: 0; color: #dce7df; font: 700 12px/1.5 Manrope, Arial, sans-serif; }
.configurator-price { margin: 4px 0 0; padding: 12px 14px; border-left: 2px solid #f4c38e; background: rgba(255,255,255,.08); color: #fffaf5; font: 800 13px/1.55 Manrope, Arial, sans-serif; }
.sofa-configurator__preview { display: flex; min-height: 350px; padding: 22px; flex-direction: column; justify-content: space-between; background: #e7dfd4; color: var(--ink); }
.sofa-configurator__preview > p { margin: 0; color: var(--forest); font: 800 10px Manrope, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.sofa-visual { position: relative; min-height: 182px; margin: 18px 0; --sofa-color: #e8dfd0; --leg-color: #8c694a; }
.sofa-visual__back,.sofa-visual__seat,.sofa-visual__chaise { position: absolute; display: block; background: var(--sofa-color); box-shadow: inset -12px -9px 22px rgba(63, 49, 37, .14); transition: background .25s ease, width .25s ease; }
.sofa-visual__back { width: 68%; height: 96px; left: 9%; bottom: 64px; border-radius: 38px 38px 12px 12px; }
.sofa-visual__seat { width: 82%; height: 61px; left: 4%; bottom: 19px; border-radius: 12px 12px 25px 25px; }
.sofa-visual__chaise { width: 0; height: 54px; right: 5%; bottom: 19px; border-radius: 12px 12px 25px 25px; opacity: 0; }
.sofa-visual.is-corner .sofa-visual__seat { width: 72%; }
.sofa-visual.is-corner .sofa-visual__chaise { width: 39%; opacity: 1; }
.sofa-visual.is-modular .sofa-visual__back { width: 84%; left: 4%; border-radius: 28px 28px 12px 12px; }
.sofa-visual.is-modular .sofa-visual__seat { width: 84%; left: 4%; border-radius: 12px; }
.sofa-visual__leg { position: absolute; width: 6px; height: 34px; bottom: 0; background: var(--leg-color); transform: skewX(-9deg); }
.sofa-visual__leg--one { left: 13%; }.sofa-visual__leg--two { left: 67%; }.sofa-visual__leg--three { right: 8%; }
.sofa-configurator__preview dl { display: grid; gap: 10px; margin: 0; }
.sofa-configurator__preview dl div { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid rgba(49, 93, 82, .25); }
.sofa-configurator__preview dt { color: #6e645e; font: 800 9px Manrope, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.sofa-configurator__preview dd { margin: 0; color: var(--ink); font: 800 11px/1.35 Manrope, Arial, sans-serif; text-align: right; }

/* Readable sofa drawing: back cushions, seat cushions, arms and four legs. */
.sofa-visual { min-height: 210px; margin: 12px 0; }
.sofa-visual__back { z-index: 1; width: 72%; height: 94px; left: 14%; bottom: 76px; border-radius: 28px 28px 10px 10px; }
.sofa-visual__back i { position: absolute; top: 8px; bottom: 8px; width: calc(33.333% - 5px); border-radius: 20px 20px 8px 8px; background: rgba(255, 255, 255, .14); box-shadow: inset -6px -6px 13px rgba(53, 40, 28, .1); }
.sofa-visual__back i:nth-child(1) { left: 7px; }.sofa-visual__back i:nth-child(2) { left: calc(33.333% + 1px); }.sofa-visual__back i:nth-child(3) { right: 7px; }
.sofa-visual__seat { z-index: 2; width: 78%; height: 59px; left: 11%; bottom: 38px; border-radius: 10px 10px 20px 20px; }
.sofa-visual__seat i { position: absolute; top: 7px; bottom: 7px; width: calc(33.333% - 5px); border-right: 1px solid rgba(58, 44, 32, .18); }
.sofa-visual__seat i:nth-child(1) { left: 6px; }.sofa-visual__seat i:nth-child(2) { left: calc(33.333% + 1px); }.sofa-visual__seat i:nth-child(3) { right: 6px; border-right: 0; }
.sofa-visual__arm { position: absolute; z-index: 3; width: 13%; height: 80px; bottom: 38px; border-radius: 25px 25px 13px 13px; background: var(--sofa-color); box-shadow: inset -8px -7px 15px rgba(63, 49, 37, .14); }
.sofa-visual__arm--left { left: 5%; }.sofa-visual__arm--right { right: 5%; }
.sofa-visual__chaise { z-index: 2; right: 5%; bottom: 38px; }
.sofa-visual__mechanism { position: absolute; z-index: 4; left: 27%; right: 27%; bottom: 43px; height: 3px; border-radius: 2px; background: transparent; }
.sofa-visual__leg { z-index: 0; width: 7px; height: 31px; bottom: 10px; border-radius: 0 0 2px 2px; transform: skewX(-10deg); }
.sofa-visual__leg--one { left: 16%; }.sofa-visual__leg--two { left: 39%; }.sofa-visual__leg--three { left: 63%; }.sofa-visual__leg--four { right: 16%; }
.sofa-visual.is-corner .sofa-visual__seat { width: 62%; }.sofa-visual.is-corner .sofa-visual__back { width: 59%; }.sofa-visual.is-corner .sofa-visual__chaise { width: 37%; height: 59px; opacity: 1; }
.sofa-visual.is-corner .sofa-visual__arm--right { right: 4%; }.sofa-visual.is-corner .sofa-visual__leg--three { left: auto; right: 30%; }
.sofa-visual.is-modular .sofa-visual__back { width: 78%; left: 11%; }.sofa-visual.is-modular .sofa-visual__seat { width: 78%; left: 11%; border-radius: 10px; }
.sofa-visual.is-storage .sofa-visual__mechanism { background: rgba(62, 45, 30, .42); }
.sofa-visual.is-folding .sofa-visual__seat { height: 70px; bottom: 28px; }.sofa-visual.is-folding .sofa-visual__mechanism { bottom: 33px; height: 8px; background: rgba(62, 45, 30, .34); }
.sofa-visual.is-recliner .sofa-visual__back { transform:rotate(-7deg); transform-origin:bottom center; }.sofa-visual.is-recliner .sofa-visual__mechanism { bottom:34px; height:7px; background:rgba(62,45,30,.34); }

/* The configurator becomes a two-column layout before text can squeeze or overlap. */
@media (min-width: 761px) and (max-width: 1120px) {
  .sofa-configurator { grid-template-columns:minmax(260px, .85fr) minmax(0, 1.15fr); }
  .sofa-configurator__preview { grid-column:1 / -1; min-height:310px; }
}

@media (max-width: 760px) {
  .contact-actions { gap: 7px; }
  .contact-actions a { min-height: 40px; padding: 0 11px; }
  .projects-contact { align-items: flex-start; flex-direction: column; gap: 18px; }
  .projects-contact .contact-actions { justify-content: flex-start; }
  .services-grid li > button { min-height: 0; padding: 20px 0; }
  .sofa-configurator { grid-template-columns: 1fr; gap: 25px; margin-top: 32px; padding: 28px 20px; }
  .sofa-configurator__preview { min-height: 300px; }
}

/* Readable small type: labels and actions remain refined, but are comfortable to read. */
.home-page .announcement { font-size: 12px; }
.home-page .navigation,
.home-page .header-link { font-size: 13px; }
.home-page .overline,
.home-page .intro .intro-copy .intro-kicker { font-size: 12px; }
.home-page .detail-story span,
.home-page .material-carousel-hint,
.home-page .material-status,
.home-page .material-compare figcaption { font-size: 12px; }
.home-page .detail-story p { font-size: 15px; }
.home-page .services-gallery span,
.home-page .services-grid li > button span { font-size: 13px; }
.home-page .config-select,
.home-page .sofa-configurator legend { font-size: 12px; }
.home-page .config-options span { min-height: 42px; font-size: 12px; }
.home-page .config-hint,
.home-page .configurator-result { font-size: 13px; }
.home-page .sofa-configurator__preview > p,
.home-page .sofa-configurator__preview dt { font-size: 11px; }
.home-page .sofa-configurator__preview dd { font-size: 13px; }
.home-page .process li > span { font-size: 12px; }
.home-page .process li p { font-size: 16px; }
.home-page .estimate-contacts a { font-size: 14px; }
.home-page .estimate-form label,
.home-page .consultation-form label { font-size: 12px; }
.home-page .estimate-form input,
.home-page .estimate-form select,
.home-page .estimate-form textarea,
.home-page .consultation-form input:not([type="checkbox"]),
.home-page .consultation-form textarea { font-size: 16px; }
.home-page .estimate-result,
.home-page .consultation-form .form-result { font-size: 13px; }
.home-page .consultation-form .consent { font-size: 11px; }
.home-page .consultation-form .light-button,
.home-page .consultation-link { font-size: 13px; }
.home-page .review-steps span { font-size: 12px; }
.home-page .review-steps p { font-size: 15px; }
.home-page .review-master-link,
.home-page .reviews-action small { font-size: 12px; }
.home-page footer p,
.home-page .footer-policy { font-size: 12px; }

/* Detail stories: one deliberate rhythm instead of competing text scales. */
.home-page .detail-stories-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  align-items: end;
  gap: clamp(42px, 7vw, 110px);
  margin-bottom: 52px;
}
.home-page .detail-stories-heading > div { max-width: 700px; }
.home-page .detail-stories-heading h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(42px, 4.1vw, 58px);
  line-height: 1.02;
}
.home-page .detail-stories-heading > p {
  max-width: 370px;
  margin: 0 0 5px;
  color: #5a504a;
  font-size: 18px;
  line-height: 1.6;
}
.home-page .detail-stories-heading .overline { margin-bottom: 15px; }

@media (max-width: 760px) {
  .home-page .announcement { font-size: 10px; }
  .home-page .navigation,
  .home-page .header-link { font-size: 12px; }
  .home-page .config-options span { min-height: 40px; font-size: 11px; }
  .home-page .detail-stories-heading { display: block; margin-bottom: 34px; }
  .home-page .detail-stories-heading h2 { font-size: clamp(37px, 10vw, 48px); }
  .home-page .detail-stories-heading > p { margin-top: 22px; font-size: 16px; }
}

@media (max-width: 760px) {
  .home-page .hero,
  .home-page .hero-copy { min-height: max(650px, calc(100svh - 70px)); }
  .home-page .hero-copy { padding: 82px 24px 58px; }
  .home-page .hero-art img { object-position: 61% center; }
  .home-page .hero-art::after { background: linear-gradient(0deg, rgba(14, 25, 22, .74) 0%, rgba(14, 25, 22, .28) 70%, rgba(14, 25, 22, .08) 100%); }
  .home-page .intro .intro-photo { width: 100%; }
  .home-page .intro { grid-template-columns: 1fr; gap: 0; }
  .home-page .intro .intro-photo { min-height: auto; aspect-ratio: 1430 / 727; }
  .home-page .intro .intro-copy { max-width: none; padding: 34px 0 0; }
  .home-page .intro .intro-copy .intro-kicker { margin-bottom: 17px; }
}

/* Real-work gallery: one calm scale for the heading, copy and project labels. */
.home-page .services .section-heading {
  position: relative;
  align-items: start;
  gap: clamp(46px, 8vw, 130px);
  margin-bottom: 42px;
}
.home-page .services .section-heading > div { max-width: 690px; }
.home-page .services .section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 3.25vw, 51px);
  line-height: 1.04;
  letter-spacing: -.047em;
}
.home-page .services .section-heading > p {
  max-width: 405px;
  margin-top: 34px;
  padding: 2px 0 2px 23px;
  border-left: 2px solid var(--red);
  color: #5d514a;
  font-size: 16px;
  line-height: 1.68;
}
.home-page .services .section-heading .overline {
  margin-bottom: 13px;
  color: var(--forest);
  font-size: 12px;
  letter-spacing: .075em;
}
.home-page .services-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 0;
}
.home-page .services-gallery a {
  display: grid;
  grid-template-rows: minmax(0, 255px) auto;
  border: 1px solid rgba(112, 78, 58, .13);
  box-shadow: 0 9px 22px rgba(74, 51, 38, .06);
}
.home-page .services-gallery img {
  width: 100%;
  height: 255px;
  padding: 0;
  object-fit: cover;
}
.home-page .services-gallery span {
  min-height: 68px;
  padding: 17px 18px;
  color: var(--forest);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .055em;
}
.home-page .services-gallery__more {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 25px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--red);
  color: var(--red);
  font: 800 13px/1.25 Manrope, Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.home-page .services-gallery__more span { font-size: 20px; }

@media (max-width: 760px) {
  .home-page .services .section-heading { margin-bottom: 30px; }
  .home-page .services .section-heading h2 { font-size: clamp(34px, 8.8vw, 43px); }
  .home-page .services .section-heading > p { margin-top: 22px; padding-left: 16px; font-size: 16px; }
  .home-page .services-gallery { grid-template-columns: 1fr; gap: 12px; }
  .home-page .services-gallery a { grid-template-rows: 240px auto; }
  .home-page .services-gallery img { height: 240px; }
  .home-page .services-gallery span { min-height: 0; padding: 15px 16px; font-size: 12px; }
  .home-page .services-gallery__more { margin-top: 21px; font-size: 12px; }
}

/* The product selector follows the project gallery instead of looking like a price table. */
.home-page .services-selector-heading {
  max-width: 620px;
  margin: 45px 0 20px;
  color: #5d514a;
  font: 600 16px/1.65 Manrope, Arial, sans-serif;
}
.home-page .services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  border: 0;
}
.home-page .services-grid li,
.home-page .services-grid li:nth-child(3n) {
  min-height: 0;
  padding: 0;
  border: 0;
}
.home-page .services-grid li > button {
  min-height: 132px;
  padding: 21px 22px;
  border: 1px solid rgba(112, 78, 58, .17);
  background: var(--service-card-bg, rgba(255, 253, 249, .7));
  box-shadow: 0 8px 18px rgba(74, 51, 38, .045);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.home-page .services-grid li > button:hover,
.home-page .services-grid li > button:focus-visible {
  background: #fffaf5;
  box-shadow: 0 13px 24px rgba(74, 51, 38, .11);
  transform: translateY(-3px);
}
.home-page .services-grid li > button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.home-page .services-grid li:nth-child(odd) { --service-card-bg: #fffaf5; }
.home-page .services-grid li:nth-child(2) { --service-card-bg: #e0e8e1; }
.home-page .services-grid li:nth-child(4) { --service-card-bg: #eee1d4; }
.home-page .services-grid li:nth-child(6) { --service-card-bg: #dfe7e5; }
.home-page .services-grid li:nth-child(8) { --service-card-bg: #eadbd5; }
.home-page .services-grid__title {
  color: var(--forest);
  font-size: clamp(22px, 1.8vw, 27px);
  line-height: 1.1;
}
.home-page .services-grid li > button span:not(.services-grid__title) {
  color: var(--red);
  font-size: 12px;
  letter-spacing: .025em;
}

@media (max-width: 760px) {
  .home-page .services-selector-heading { margin: 34px 0 17px; font-size: 15px; }
  .home-page .services-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-page .services-grid li > button { min-height: 105px; padding: 18px; }
  .home-page .services-grid__title { font-size: 23px; }
}

/* Service chooser: coloured, calm cards instead of a technical table. */
.home-page .services-grid { gap: 12px; margin-top: 2px; }
.home-page .services-grid li > button {
  position: relative;
  min-height: 154px;
  padding: 19px 21px 20px;
  overflow: hidden;
  border: 1px solid rgba(61, 77, 68, .15);
  background: var(--service-card-bg, #fffaf5);
}
.home-page .services-grid li > button::after {
  position: absolute;
  width: 96px;
  height: 96px;
  right: -31px;
  bottom: -42px;
  border: 1px solid rgba(44, 72, 62, .15);
  border-radius: 50%;
  content: '';
}
.home-page .services-grid li:nth-child(1) { --service-card-bg: #f5e5da; }
.home-page .services-grid li:nth-child(2) { --service-card-bg: #dce8e1; }
.home-page .services-grid li:nth-child(3) { --service-card-bg: #eee1d1; }
.home-page .services-grid li:nth-child(4) { --service-card-bg: #e2ecea; }
.home-page .services-grid li:nth-child(5) { --service-card-bg: #e8ddd6; }
.home-page .services-grid li:nth-child(6) { --service-card-bg: #e7e0d0; }
.home-page .services-grid li:nth-child(7) { --service-card-bg: #dce7e4; }
.home-page .services-grid li:nth-child(8) { --service-card-bg: #eee2db; }
.home-page .services-grid li:nth-child(9) { --service-card-bg: #e1e9dc; }
.home-page .services-grid li > button:hover,
.home-page .services-grid li > button:focus-visible {
  background: var(--service-card-bg, #fffaf5);
  box-shadow: 0 14px 25px rgba(54, 45, 38, .12);
}
.home-page .services-grid__number {
  color: var(--red);
  font: 800 11px/1 Manrope, Arial, sans-serif;
  letter-spacing: .1em;
}
.home-page .services-grid__title { max-width: 83%; margin-top: auto; font-size: clamp(22px, 1.65vw, 26px); }
.home-page .services-grid li > button .services-grid__action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid rgba(48, 71, 62, .2);
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .015em;
}
.home-page .services-grid__action b { color: var(--red); font-size: 19px; font-weight: 400; }

/* A clearer sofa configurator with three visible steps. */
.sofa-configurator { grid-template-columns: minmax(235px, .7fr) minmax(390px, 1.2fr) minmax(250px, .7fr); }
.config-selected-item {
  margin: 22px 0 0 !important;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 250, 245, .26);
  color: #dce7df !important;
  font: 700 13px/1.45 Manrope, Arial, sans-serif !important;
}
.config-selected-item strong { display: block; margin-top: 3px; color: #f4c38e; font-size: 16px; }
.sofa-configurator__form { align-content: start; gap: 17px; }
.sofa-configurator .config-step { padding-bottom: 16px; border-bottom: 1px solid rgba(255, 250, 245, .2); }
.sofa-configurator .config-step legend { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sofa-configurator .config-step legend span {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: #f4c38e;
  color: var(--ink);
  font-size: 10px;
}
.sofa-configurator .config-options { gap: 7px; margin-top: 11px; }
.sofa-configurator .config-options span { min-height: 40px; padding: 0 13px; font-size: 12px; letter-spacing: .01em; }
.sofa-configurator .config-options--mechanisms { margin-top: 13px; }
.sofa-configurator .config-options--mechanisms span { border-color: rgba(244, 195, 142, .55); }
.sofa-configurator .config-options--mechanisms input:checked + span { background: #fffaf5; }
@media (max-width: 760px) {
  .home-page .services-grid li > button { min-height: 132px; }
  .home-page .services-grid__title { font-size: 24px; }
  .sofa-configurator .config-options span { min-height: 42px; font-size: 12px; }
}

/* Sofa preview: a large, straight upholstered silhouette, not a schematic on legs. */
.sofa-configurator__preview {
  min-height: 480px;
  padding: 25px;
  background: linear-gradient(145deg, #f5efe7, #ddd4c8);
}
.sofa-visual {
  min-height: 300px;
  margin: 18px -10px 12px;
  border: 1px solid rgba(74, 57, 43, .12);
  background: radial-gradient(circle at 75% 13%, rgba(255,255,255,.72), transparent 31%), linear-gradient(135deg, rgba(255,255,255,.25), rgba(119,86,61,.07));
  overflow: hidden;
}
.sofa-visual::before {
  position: absolute;
  z-index: 0;
  right: 8%;
  bottom: 6%;
  left: 8%;
  height: 19%;
  border-radius: 2px 2px 11px 11px;
  background: linear-gradient(180deg, rgba(36, 28, 21, .05), rgba(36, 28, 21, .22));
  content: '';
}
.sofa-visual__back,
.sofa-visual__seat,
.sofa-visual__arm {
  background: linear-gradient(124deg, rgba(255,255,255,.28), transparent 44%), repeating-linear-gradient(100deg, rgba(255,255,255,.055) 0 1px, rgba(44,30,20,.025) 1px 3px), var(--sofa-color);
  box-shadow: inset -15px -13px 23px rgba(57, 41, 28, .14), 0 11px 15px rgba(60, 42, 27, .12);
}
.sofa-visual__back {
  z-index: 1;
  width: 75% !important;
  height: 128px;
  left: 12.5% !important;
  bottom: 35% !important;
  border-radius: 13px 13px 4px 4px;
}
.sofa-visual__back i {
  top: 9px;
  bottom: 8px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(110deg, rgba(255,255,255,.14), transparent 45%);
}
.sofa-visual__seat {
  z-index: 3;
  width: 82% !important;
  height: 84px;
  left: 9% !important;
  bottom: 14% !important;
  border-radius: 4px 4px 11px 11px;
}
.sofa-visual__seat i { top: 9px; bottom: 8px; }
.sofa-visual__arm {
  z-index: 4;
  width: 13%;
  height: 134px;
  bottom: 14% !important;
  border-radius: 7px 7px 5px 5px;
}
.sofa-visual__arm--left { left: 5%; }
.sofa-visual__arm--right { right: 5%; }
.sofa-visual__chaise,
.sofa-visual__mechanism,
.sofa-visual__leg { display: none !important; }
.sofa-visual.is-corner .sofa-visual__seat,
.sofa-visual.is-corner .sofa-visual__back,
.sofa-visual.is-modular .sofa-visual__seat,
.sofa-visual.is-modular .sofa-visual__back { width: 82% !important; left: 9% !important; }
.sofa-visual.is-recliner .sofa-visual__back { transform: none; }
@media (max-width: 760px) {
  .sofa-configurator__preview { min-height: 420px; padding: 20px; }
  .sofa-visual { min-height: 270px; }
  .sofa-visual__back { height: 112px; }
  .sofa-visual__seat { height: 75px; }
  .sofa-visual__arm { height: 120px; }
}

/* A generous, legible sofa sketch; proportions scale with its own canvas. */
.sofa-configurator {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  grid-template-areas: "intro intro" "preview form";
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.sofa-configurator__intro { grid-area: intro; max-width: 760px; }
.sofa-configurator__form { grid-area: form; min-width: 0; }
.sofa-configurator__preview {
  grid-area: preview;
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 2.5vw, 36px);
  background: #e9e1d5;
}
.sofa-preview-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sofa-preview-heading p { margin: 0; color: var(--forest); font: 800 13px/1.4 Manrope, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.sofa-preview-heading span, .sofa-configurator__preview .sofa-preview-note { color: #514e48; font: 500 14px/1.55 Manrope, Arial, sans-serif; }
.sofa-configurator__preview .sofa-preview-note { margin: 0 0 22px; text-transform: none; letter-spacing: 0; }
.sofa-visual {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.55;
  margin: 12px 0 16px;
}
.sofa-visual::before { left: 7%; right: 7%; bottom: 8%; height: 8%; border-radius: 50%; filter: blur(13px); }
.sofa-visual__back, .sofa-visual.is-corner .sofa-visual__back, .sofa-visual.is-modular .sofa-visual__back {
  left: 12% !important; width: 76% !important; bottom: 36% !important; height: 47%;
  border-radius: 10px 10px 5px 5px;
  box-shadow: inset 0 5px 12px rgba(255,255,255,.22), inset 0 -10px 18px rgba(44,36,30,.16), 0 4px 8px rgba(52,42,33,.15);
}
.sofa-visual__back i { top: 7%; bottom: 7%; border-radius: 7px; background: rgba(255,255,255,.08); box-shadow: inset -3px -5px 12px rgba(45,35,28,.12), inset 2px 2px 8px rgba(255,255,255,.12); }
.sofa-visual__seat, .sofa-visual.is-corner .sofa-visual__seat, .sofa-visual.is-modular .sofa-visual__seat, .sofa-visual.is-folding .sofa-visual__seat {
  left: 9% !important; width: 82% !important; bottom: 13% !important; height: 30%;
  border-radius: 6px 6px 9px 9px;
  box-shadow: inset 0 8px 12px rgba(255,255,255,.16), inset 0 -13px 18px rgba(39,31,25,.2), 0 7px 10px rgba(54,42,32,.14);
}
.sofa-visual__seat i { top: 10%; bottom: 17%; border-right-color: rgba(52,42,32,.2); }
.sofa-visual__arm { width: 13%; height: 42%; bottom: 13% !important; border-radius: 8px 8px 9px 9px; box-shadow: inset 3px 4px 10px rgba(255,255,255,.18), inset -7px -8px 15px rgba(45,35,28,.18); }
.sofa-visual__arm--left { left: 5%; }
.sofa-visual__arm--right, .sofa-visual.is-corner .sofa-visual__arm--right { right: 5%; }
.sofa-configurator__preview dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.sofa-configurator__preview dl div { display: block; min-width: 0; }
.sofa-configurator__preview dt { font-size: 11px; }
.sofa-configurator__preview dd { margin-top: 5px; text-align: left; font-size: 14px; }
@media (max-width: 800px) {
  .sofa-configurator { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "preview" "form"; }
  .sofa-configurator__preview { grid-column: auto; }
  .sofa-visual { min-height: 0; }
}
@media (max-width: 480px) {
  .sofa-configurator__preview { padding: 18px; }
  .sofa-visual { aspect-ratio: 1.35; }
  .sofa-configurator__preview dl { gap: 12px; }
}

/* Схематичное трёхместное представление и выбранные функции. */
.sofa-visual { aspect-ratio: 1.85; }
.sofa-visual__mechanism { display: none !important; }
.sofa-visual.is-folding .sofa-visual__mechanism,
.sofa-visual.is-recliner .sofa-visual__mechanism {
  display: block !important; position: absolute; z-index: 4;
  left: 20%; right: 20%; bottom: 3%; height: 18%;
  border: 2px solid rgba(60,48,39,.48); border-radius: 5px;
  background: var(--sofa-color); box-shadow: inset 0 -9px 12px rgba(50,40,30,.2);
}
.sofa-visual[data-mechanism="dolphin"] .sofa-visual__mechanism { left: 40%; right: 12%; transform: translateY(5%); }
.sofa-visual[data-mechanism="accordion"] .sofa-visual__mechanism { left: 18%; right: 18%; background: repeating-linear-gradient(90deg, var(--sofa-color) 0 31%, rgba(60,48,39,.4) 32% 33%); }
.sofa-visual[data-mechanism="recliner"] .sofa-visual__mechanism { left: 12%; right: 65%; transform: rotate(-8deg); }
.sofa-visual__storage { display: none; position: absolute; z-index: 5; left: 28%; right: 28%; bottom: 15%; height: 10%; border: 2px solid rgba(60,48,39,.65); border-radius: 3px; background: rgba(65,49,38,.28); }
.sofa-visual.is-storage .sofa-visual__storage { display: block; }
.sofa-visual.is-lift-storage .sofa-visual__storage { display: block; bottom: 27%; height: 13%; transform: skewY(-5deg); }
@media (max-width: 480px) { .sofa-visual { aspect-ratio: 1.65; } }

/* Keep the sofa sketch calm; explain internal functions in words, not blocks over the image. */
.sofa-visual.is-folding .sofa-visual__mechanism,
.sofa-visual.is-recliner .sofa-visual__mechanism,
.sofa-visual .sofa-visual__mechanism,
.sofa-visual .sofa-visual__storage { display: none !important; }
.sofa-visual.is-recliner .sofa-visual__back { transform: none; }
.config-mechanism-explanation { margin-top: 14px; padding: 14px 16px; border-left: 3px solid #f4c38e; background: rgba(255, 250, 245, .1); color: #fffaf5; }
.config-mechanism-explanation strong { display: block; font: 700 14px/1.4 Manrope, Arial, sans-serif; }
.config-mechanism-explanation p { margin: 5px 0 0; color: #eef3ee; font: 400 14px/1.55 Manrope, Arial, sans-serif; }
.sofa-configurator .config-options--mechanisms input:focus-visible + span { outline: 3px solid #f4c38e; outline-offset: 3px; }
.mechanism-diagram { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.mechanism-diagram svg { display: block; flex: 0 0 150px; width: 150px; max-width: 55%; height: auto; color: #315d52; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: #f5eee5; border-radius: 8px; }
.mechanism-diagram .diagram-sofa { fill: #dfc3af; }
.mechanism-diagram .diagram-part { fill: #ecc28f; }
.mechanism-diagram .diagram-arrow { stroke: #b54d3e; stroke-width: 3; }
.mechanism-diagram span { color: #eef3ee; font: 500 12px/1.45 Manrope, Arial, sans-serif; }
.sofa-mechanism-marker { position: absolute; z-index: 10; bottom: 2%; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; max-width: 85%; padding: 5px 10px 5px 5px; border-radius: 30px; background: #fffaf5; color: #284f45; box-shadow: 0 3px 12px rgba(45,35,28,.16); font: 700 12px/1.2 Manrope, Arial, sans-serif; white-space: nowrap; }
.sofa-mechanism-marker[hidden] { display: none; }
.sofa-mechanism-marker__icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #c65849; color: #fff; font: 700 17px/1 Arial, sans-serif; }
.sofa-mechanism-overlay { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.sofa-mechanism-overlay[hidden] { display: none; }
.sofa-mechanism-overlay svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(255,250,245,.9)); }
.sofa-mechanism-overlay .overlay-guide { stroke: #315d52; stroke-width: 3; stroke-dasharray: 6 5; }
.sofa-mechanism-overlay .overlay-accent { stroke: #315d52; stroke-width: 3; }
.sofa-mechanism-overlay .overlay-arrow { stroke: #c34f40; stroke-width: 4; }
.sofa-mechanism-overlay .overlay-wheel { fill: #fffaf5; stroke: #315d52; stroke-width: 3; }

/* A corner chaise projects toward the viewer; modular sections are separated. */
.sofa-visual.is-corner .sofa-visual__back { left: 10% !important; width: 70% !important; }
.sofa-visual.is-corner .sofa-visual__seat { left: 8% !important; width: 71% !important; }
.sofa-visual.is-corner .sofa-visual__arm--right { right: 6%; }
.sofa-visual.is-corner .sofa-visual__chaise {
  display: block !important; opacity: 1; z-index: 4; right: 6%; bottom: 5%;
  width: 28%; height: 38%; border-radius: 8px 8px 13px 13px;
  background: var(--sofa-color);
  box-shadow: inset 0 8px 12px rgba(255,255,255,.18), inset -7px -12px 16px rgba(39,31,25,.2), 0 6px 10px rgba(54,42,32,.16);
}
.sofa-visual.is-corner .sofa-visual__chaise::after { content: ''; position: absolute; left: 8%; right: 8%; top: 42%; border-top: 1px solid rgba(52,42,32,.25); }
.sofa-visual.is-modular .sofa-visual__back i { background: rgba(255,255,255,.12); border: 2px solid rgba(52,42,32,.15); }
.sofa-visual.is-modular .sofa-visual__seat { background: transparent; box-shadow: none; overflow: visible; }
.sofa-visual.is-modular .sofa-visual__seat i { top: 0; bottom: 0; width: calc(33.333% - 6px); border: 0; border-radius: 7px; background: var(--sofa-color); box-shadow: inset 0 7px 12px rgba(255,255,255,.18), inset 0 -13px 18px rgba(39,31,25,.22), 0 5px 9px rgba(54,42,32,.13); }
.sofa-visual.is-modular .sofa-visual__seat i:nth-child(1) { left: 0; }
.sofa-visual.is-modular .sofa-visual__seat i:nth-child(2) { left: calc(33.333% + 3px); }
.sofa-visual.is-modular .sofa-visual__seat i:nth-child(3) { right: 0; }
