/* Cottage settlement solution: premium B2B hierarchy for Russian buyers. */
.cottage-solution-page {
  --cottage-ink: #101c24;
  --cottage-ink-soft: #1d3036;
  --cottage-navy: #0d1c24;
  --cottage-pine: #18383a;
  --cottage-copper: #c86b31;
  --cottage-copper-dark: #a95121;
  --cottage-paper: #fbfaf7;
  --cottage-warm: #f3ede5;
  --cottage-mist: #eaf1ee;
  --cottage-line: #ded6cd;
  --cottage-muted: #66737b;
  --cottage-shadow: 0 18px 42px rgba(16, 28, 36, .11), 0 4px 12px rgba(16, 28, 36, .05);
  --cottage-shadow-lift: 0 25px 58px rgba(16, 28, 36, .16), 0 7px 16px rgba(16, 28, 36, .08);
  color: var(--cottage-ink);
  background: var(--cottage-paper);
}

.cottage-solution-page .breadcrumb-wrap {
  background: #f6f1eb;
  border-bottom: 1px solid rgba(222, 214, 205, .9);
}

.cottage-solution-page .breadcrumb-wrap ol { margin-bottom: 0; }

/* Hero: make the object and buying route clear before the project detail. */
body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 480px;
  padding: clamp(82px, 8vw, 116px) 0 88px !important;
  background:
    radial-gradient(circle at 86% 14%, rgba(200, 107, 49, .24), transparent 27%),
    radial-gradient(circle at 35% 112%, rgba(71, 143, 126, .24), transparent 43%),
    linear-gradient(118deg, var(--cottage-navy) 0%, #142c32 55%, var(--cottage-pine) 100%) !important;
  border-bottom: 4px solid var(--cottage-copper);
  box-shadow: 0 18px 38px rgba(13, 28, 36, .17);
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .72) 58%, transparent 100%);
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -245px;
  bottom: -435px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(226, 157, 107, .4);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(226, 157, 107, .06), 0 0 100px rgba(200, 107, 49, .12);
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 1060px;
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero .hero-badge {
  color: rgba(247, 250, 250, .94);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .21);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .1);
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero h1 {
  max-width: 1000px;
  color: #fff !important;
  font-size: clamp(2.25rem, 4.75vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .18);
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero .hero-sub {
  max-width: 790px;
  color: rgba(241, 245, 246, .82) !important;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.75;
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero .btn-primary-jbss {
  background: var(--cottage-copper) !important;
  border-color: var(--cottage-copper) !important;
  box-shadow: 0 12px 26px rgba(200, 107, 49, .28);
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero .btn-primary-jbss:hover {
  background: var(--cottage-copper-dark) !important;
  border-color: var(--cottage-copper-dark) !important;
  transform: translateY(-2px);
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero .btn-secondary-jbss {
  color: #f7fafa !important;
  border-color: rgba(255, 255, 255, .38) !important;
  background: rgba(255, 255, 255, .06) !important;
}

.cottage-solution-page .section-pad {
  position: relative;
  padding-top: clamp(72px, 7vw, 108px);
  padding-bottom: clamp(72px, 7vw, 108px);
}

.cottage-solution-page .label-tag {
  color: var(--cottage-copper-dark);
  letter-spacing: .12em;
}

.cottage-solution-page .section-title { text-wrap: balance; }

/* Visual brief: show the settlement as a scoped project, not a generic photo. */
body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(62px, 7vw, 94px) 0;
  background: linear-gradient(135deg, var(--cottage-warm) 0%, #fcfbf8 55%, var(--cottage-mist) 100%);
  border-bottom: 1px solid var(--cottage-line);
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -170px;
  bottom: -220px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(200, 107, 49, .16);
  border-radius: 50%;
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .brief-grid {
  grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr);
  gap: clamp(32px, 4vw, 58px);
  align-items: center;
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .brief-copy h2 {
  margin-bottom: 14px;
  color: var(--cottage-ink);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.12;
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .brief-copy p {
  max-width: 640px;
  color: var(--cottage-muted);
  line-height: 1.72;
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .brief-points {
  gap: 12px 20px;
  margin-top: 22px;
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .brief-points li {
  position: relative;
  padding: 9px 12px 9px 24px;
  border: 1px solid rgba(222, 214, 205, .72);
  border-radius: 9px;
  background: rgba(255, 255, 255, .56);
  color: var(--cottage-ink-soft);
  line-height: 1.5;
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .brief-points li::before {
  left: 10px;
  top: 1.1em;
  width: 7px;
  height: 7px;
  background: var(--cottage-copper);
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .brief-points li:nth-child(3) {
  grid-column: 1 / -1;
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .visual-placeholder.visual-image {
  min-height: 0;
  aspect-ratio: 2 / 1;
  padding: 0;
  border: 1px solid rgba(200, 107, 49, .52);
  border-radius: 14px;
  background: #f6efe8;
  box-shadow: var(--cottage-shadow-lift);
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .visual-placeholder.visual-image::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 10px;
  pointer-events: none;
}

body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .visual-placeholder.visual-image img {
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

/* Project inputs: frame the evidence image and give the matrix an auditable order. */
body.cottage-solution-page section.section-pad:has(.hero-media) {
  background: linear-gradient(135deg, #f5efe8 0%, #fbfaf7 62%, #edf3ef 100%);
  border-top: 1px solid var(--cottage-line);
  border-bottom: 1px solid var(--cottage-line);
}

body.cottage-solution-page section.section-pad:has(.hero-media) .row {
  align-items: center;
}

body.cottage-solution-page section.section-pad:has(.hero-media) .hero-media {
  position: relative;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(200, 107, 49, .35);
  border-radius: 15px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--cottage-shadow);
}

body.cottage-solution-page section.section-pad:has(.hero-media) .hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 10px;
}

body.cottage-solution-page section.section-pad:has(.hero-media) .cottage-project-caption {
  margin: 12px 2px 1px;
  padding: 3px 0 3px 12px;
  border-left: 3px solid var(--cottage-copper);
  background: rgba(255, 255, 255, .64);
  color: var(--cottage-muted);
  line-height: 1.55;
}

body.cottage-solution-page section.section-pad:has(.hero-media) .compare-table {
  overflow: hidden;
  border: 1px solid var(--cottage-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--cottage-shadow);
}

body.cottage-solution-page section.section-pad:has(.hero-media) .compare-table thead th {
  border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, #b95e28, var(--cottage-copper));
  color: #fff;
}

body.cottage-solution-page section.section-pad:has(.hero-media) .compare-table tbody th {
  width: 28%;
  color: var(--cottage-ink-soft);
  font-weight: 700;
}

/* Logic cards: distinguish one home, several nodes and the shared gate. */
body.cottage-solution-page section.section-pad:not(.bg-light-section):has(.card-jbss) {
  background: var(--cottage-paper);
}

body.cottage-solution-page section.section-pad:not(.bg-light-section):has(.card-jbss) .section-head {
  max-width: 820px;
}

body.cottage-solution-page section.section-pad:not(.bg-light-section):has(.card-jbss) .card-jbss,
body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .card-jbss {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  border: 1px solid var(--cottage-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--cottage-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.cottage-solution-page section.section-pad:not(.bg-light-section):has(.card-jbss) .card-jbss::before,
body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .card-jbss::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cottage-copper), rgba(200, 107, 49, .1));
}

body.cottage-solution-page section.section-pad:not(.bg-light-section):has(.card-jbss) .card-jbss:hover,
body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .card-jbss:hover {
  border-color: rgba(200, 107, 49, .48);
  box-shadow: var(--cottage-shadow-lift);
  transform: translateY(-5px);
}

body.cottage-solution-page section.section-pad:not(.bg-light-section):has(.card-jbss) .card-jbss h3,
body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .card-jbss h3 {
  color: var(--cottage-ink);
}

body.cottage-solution-page section.section-pad:not(.bg-light-section):has(.card-jbss) .card-jbss p,
body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .card-jbss p {
  color: var(--cottage-muted) !important;
  line-height: 1.65 !important;
}

/* Partner handoff: keep the right card on the first checklist baseline. */
body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #f4eee6 0%, #faf7f2 58%, #edf3ef 100%);
  border-top: 1px solid var(--cottage-line);
  border-bottom: 1px solid var(--cottage-line);
}

body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list)::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -160px;
  bottom: -220px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(200, 107, 49, .14);
  border-radius: 50%;
}

body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .icon-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .icon-list li {
  position: relative;
  padding: 13px 16px 13px 42px;
  border: 1px solid rgba(222, 214, 205, .86);
  border-radius: 10px;
  background: rgba(255, 255, 255, .74);
  color: var(--cottage-ink-soft);
  line-height: 1.55;
}

body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .icon-list li::before {
  content: "✓";
  position: absolute;
  top: 12px;
  left: 15px;
  color: var(--cottage-copper);
  font-weight: 800;
}

body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .col-lg-5 {
  align-self: flex-start;
}

@media (min-width: 992px) {
  body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .col-lg-5 {
    /* Align the handoff card with the first procurement condition. */
    padding-top: 153px;
  }
}

body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .card-jbss {
  min-height: 0;
  height: auto;
  border-top-color: var(--cottage-copper);
}

body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .btn-primary-jbss {
  background: var(--cottage-copper);
  border-color: var(--cottage-copper);
  box-shadow: 0 9px 20px rgba(200, 107, 49, .18);
}

/* FAQ: one orderly answer stack with enough breathing room for scanning. */
body.cottage-solution-page section.section-pad:has(.faq-list) {
  background: linear-gradient(180deg, #fbfaf7 0%, #f3ede5 100%);
  border-top: 1px solid var(--cottage-line);
}

body.cottage-solution-page section.section-pad:has(.faq-list) .section-title {
  max-width: 820px;
}

body.cottage-solution-page section.section-pad:has(.faq-list) .faq-list {
  overflow: hidden;
  max-width: 100%;
  border: 1px solid var(--cottage-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--cottage-shadow);
}

body.cottage-solution-page section.section-pad:has(.faq-list) .faq-item {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e8dfd7;
  border-radius: 0;
  box-shadow: none;
}

body.cottage-solution-page section.section-pad:has(.faq-list) .faq-item:last-child { border-bottom: 0; }

body.cottage-solution-page section.section-pad:has(.faq-list) .faq-item summary {
  min-height: 66px;
  padding: 18px 22px;
  color: var(--cottage-ink);
}

body.cottage-solution-page section.section-pad:has(.faq-list) .faq-answer {
  color: var(--cottage-muted);
  background: #fffdfa;
}

/* CTA: close with one clear project action, not another competing card grid. */
body.cottage-solution-page section.section-pad:has(.cta-section) {
  background: linear-gradient(180deg, #f3ede5 0%, #fbfaf7 100%);
}

body.cottage-solution-page .cta-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 16%, rgba(200, 107, 49, .25), transparent 28%),
    linear-gradient(118deg, var(--cottage-navy) 0%, #193337 100%);
  box-shadow: 0 24px 55px rgba(16, 28, 36, .2), 0 6px 14px rgba(16, 28, 36, .08);
}

body.cottage-solution-page .cta-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -240px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(226, 157, 107, .36);
  border-radius: 50%;
}

body.cottage-solution-page .cta-section h2 { color: #fff; }
body.cottage-solution-page .cta-section p { color: rgba(241, 245, 246, .76); }

.cottage-solution-page a:focus-visible,
.cottage-solution-page button:focus-visible,
.cottage-solution-page summary:focus-visible {
  outline: 3px solid rgba(200, 107, 49, .55);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .brief-grid {
    grid-template-columns: 1fr;
  }

  body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .visual-placeholder.visual-image {
    max-width: 820px;
  }

  body.cottage-solution-page section.section-pad.bg-light-section:has(.icon-list) .col-lg-5 {
    padding-top: 0;
  }
}

@media (max-width: 767.98px) {
  body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero {
    min-height: 0;
    padding: 64px 0 68px !important;
  }

  body.cottage-solution-page[data-page-kind="solution-cottage"] .page-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: -.025em;
  }

  .cottage-solution-page .section-pad {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .brief-grid {
    gap: 32px;
  }

  body.cottage-solution-page[data-page-kind="solution-cottage"] .b2b-visual-brief .brief-points {
    grid-template-columns: 1fr;
  }

  body.cottage-solution-page section.section-pad:has(.hero-media) .col-lg-7 {
    min-width: 0;
    overflow-x: auto;
  }

  body.cottage-solution-page section.section-pad:has(.hero-media) .compare-table {
    display: table;
    width: 620px;
    min-width: 620px;
  }

  body.cottage-solution-page section.section-pad:has(.faq-list) .faq-item summary {
    min-height: 60px;
    padding: 16px;
  }

  body.cottage-solution-page .btn-primary-jbss,
  body.cottage-solution-page .btn-secondary-jbss,
  body.cottage-solution-page .btn-tg { width: 100%; justify-content: center; }
}

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