/* B18 — M15-aligned editorial system, 04.09.2026 */
:root {
  --b18-ink: #171814;
  --b18-paper: #f3efe7;
  --b18-warm: #faf8f3;
  --b18-green: #69b93f;
  --b18-muted: #6f7069;
  --b18-line: rgba(23, 24, 20, .16);
  --b18-light-line: rgba(255, 255, 255, .2);
  --b18-ease: cubic-bezier(.22, 1, .36, 1);
}

.b18-v2 {
  background: var(--b18-paper);
  color: var(--b18-ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.menu-open {
  position: fixed;
  top: var(--menu-scroll-y, 0);
  width: 100%;
}

.b18-v2 h1,
.b18-v2 h2,
.b18-v2 h3 {
  text-wrap: balance;
}

.b18-v2 p {
  text-wrap: pretty;
}

.b18-v2 .site-header {
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
}

.b18-v2 .brandmark {
  width: clamp(150px, 11.5vw, 174px);
  height: 48px;
}

.b18-v2 .brandmark img {
  max-height: 45px;
}

.b18-v2 .desktop-nav {
  gap: clamp(18px, 2vw, 34px);
}

.b18-v2 .mobile-menu__catalog {
  width: fit-content;
  margin-top: 22px;
  padding-bottom: 5px;
  color: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.4);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Hero */
.b18-hero .hero__image {
  object-position: center;
}

.b18-hero .hero__shade {
  background:
    linear-gradient(90deg, rgba(8,10,8,.88) 0%, rgba(8,10,8,.55) 38%, rgba(8,10,8,.08) 72%),
    linear-gradient(0deg, rgba(8,10,8,.78) 0%, transparent 38%);
}

.b18-hero .hero__content {
  width: min(850px, calc(100vw - 2 * var(--r5-gutter)));
}

.b18-hero h1 {
  max-width: 12ch;
  font-size: clamp(54px, 6vw, 94px);
  line-height: .92;
}

.b18-hero .hero__lead {
  max-width: 640px;
}

.b18-hero .hero__facts span:first-child {
  color: #fff;
}

/* Package choice */
.b18-packages {
  border-bottom: 1px solid var(--b18-line);
}

.b18-packages .section-heading h2 {
  max-width: 15ch;
}

.b18-packages .package-card figure {
  aspect-ratio: 3 / 2;
}

.b18-packages .package-card__copy {
  min-height: 260px;
}

.package-price-note {
  max-width: 860px;
  margin: clamp(36px, 5vw, 62px) 0 0;
  padding-left: 20px;
  color: var(--b18-muted);
  border-left: 3px solid var(--b18-green);
  font-size: clamp(14px, 1.1vw, 17px);
}

.package-compare {
  margin-top: 28px;
  border-block: 1px solid var(--b18-line);
}

.package-compare > summary,
.product-detail > summary,
.b18-rooms details > summary,
.cost-status details > summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 650;
}

.package-compare > summary::-webkit-details-marker,
.product-detail > summary::-webkit-details-marker,
.b18-rooms details > summary::-webkit-details-marker,
.cost-status details > summary::-webkit-details-marker {
  display: none;
}

.package-compare > summary span,
.product-detail > summary span,
.b18-rooms details > summary span,
.cost-status details > summary span {
  font-size: 25px;
  font-weight: 300;
  transition: transform .2s ease;
}

.package-compare[open] > summary span,
.product-detail[open] > summary span,
.b18-rooms details[open] > summary span,
.cost-status details[open] > summary span {
  transform: rotate(45deg);
}

.package-compare__body {
  padding: 0 0 36px;
}

.package-compare__body article {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) repeat(3, minmax(150px, 1fr));
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--b18-line);
}

.package-compare__body h3,
.package-compare__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.package-compare__body h3 {
  font-weight: 720;
}

.package-compare__body p {
  color: var(--b18-muted);
}

.package-compare__body p b {
  display: block;
  margin-bottom: 4px;
  color: var(--b18-ink);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.package-compare__body .text-link {
  margin-top: 22px;
}

/* Family scene */
.b18-life .life__copy {
  max-width: 690px;
}

.b18-life .life__copy h2,
.b18-catalog .life__copy h2 {
  max-width: 11ch;
  font-size: clamp(44px, 5.3vw, 82px);
  line-height: .96;
}

.b18-life > img {
  object-position: 51% center;
}

/* Inside */
.b18-inside {
  padding-block: var(--r5-section-y);
  background: var(--b18-warm);
}

.b18-inside .section-heading h2 {
  max-width: 14ch;
  margin-top: 20px;
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 430;
  line-height: .98;
  letter-spacing: -.055em;
}

.inside-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 110px);
}

.inside-plan {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .7fr 1.25fr;
  min-height: clamp(310px, 28vw, 450px);
  padding: 16px;
  border: 1px solid rgba(23,24,20,.32);
  background: #e4dfd4;
}

.inside-plan::before {
  position: absolute;
  inset: 16px;
  border: 7px solid var(--b18-ink);
  pointer-events: none;
  content: "";
}

.inside-plan__room {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  padding: clamp(22px, 3vw, 42px);
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid rgba(23,24,20,.38);
}

.inside-plan__room:last-of-type {
  border-right: 0;
}

.inside-plan__room--steam {
  background:
    linear-gradient(135deg, rgba(105,185,63,.12), transparent 56%),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(23,24,20,.035) 12px 13px);
}

.inside-plan__room--water {
  background: rgba(255,255,255,.48);
}

.inside-plan__room--rest {
  background: #cec6b7;
}

.inside-plan__room span {
  position: absolute;
  top: 26px;
  left: clamp(22px, 3vw, 42px);
  color: var(--b18-green);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .16em;
}

.inside-plan__room strong {
  max-width: 8ch;
  font-size: clamp(21px, 2.3vw, 36px);
  font-weight: 470;
  line-height: 1;
  letter-spacing: -.045em;
}

.inside-plan__room small {
  margin-top: 10px;
  color: var(--b18-muted);
  font-size: 11px;
  line-height: 1.35;
}

.inside-plan__width,
.inside-plan__depth {
  position: absolute;
  color: var(--b18-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 740;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.inside-plan__width {
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.inside-plan__depth {
  top: 50%;
  left: -48px;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.inside-layout__copy {
  border-top: 1px solid var(--b18-line);
  padding-top: 28px;
}

.inside-layout__copy p {
  margin: 0 0 22px;
  color: var(--b18-muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.inside-layout__copy strong {
  color: var(--b18-ink);
}

/* Interior diptych */
.b18-rooms {
  background: var(--b18-paper-soft);
}

.b18-rooms .section-heading h2 {
  max-width: 13ch;
}

.b18-rooms article:first-child::before {
  content: "01 · ПАРНАЯ";
}

.b18-rooms article:last-child::before {
  content: "02 · ОТДЫХ И ВОДА";
}

.b18-rooms article {
  padding-bottom: 22px;
}

.b18-rooms article details {
  margin: 24px 20px 0;
  border-top: 1px solid var(--b18-line);
}

.b18-rooms article details > summary {
  min-height: 66px;
  font-size: 13px;
}

.b18-rooms article details p {
  padding: 0 0 24px;
  margin: 0;
  font-size: 14px;
}

.concept-note {
  max-width: 840px;
  margin: 32px 0 0;
  color: var(--b18-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Product chapters */
.b18-product {
  scroll-margin-top: 68px;
}

.b18-product .product__chapter-copy strong {
  max-width: 14ch;
}

.b18-product--individual .product__chapter-copy strong {
  font-size: clamp(48px, 6.4vw, 100px);
}

.b18-product.product--base .product__chapter {
  --chapter-accent: var(--b18-green);
  background: linear-gradient(118deg, #111310 0%, #242a22 55%, #111310 100%);
}

.b18-product.product--premium .product__chapter {
  --chapter-accent: #e3bd83;
  background: linear-gradient(118deg, #2f2922 0%, #5f4634 55%, #8e6847 100%);
}

.b18-product.product--autonomous .product__chapter {
  --chapter-accent: #8acb67;
  background: linear-gradient(118deg, #101511 0%, #2e3a2d 58%, #53614b 100%);
}

.b18-product.product--autonomous {
  background: #dfe2d8;
}

.b18-product .product__intro::after {
  content: "6 000 × 3 000 × 2 800 мм · наружное пятно 18 м² · парная + душевая + комната отдыха · точный состав — в персональной спецификации";
}

.b18-product--individual .kicker,
.b18-product--individual .product__intro > p:not(.kicker):not(.product__technical),
.b18-product--individual .product__technical,
.b18-product--individual .product__intro::after {
  color: #565951;
}

.b18-product--individual .product__intro h2,
.b18-product--individual .product__price {
  color: var(--b18-ink);
}

.b18-product--individual .product__intro::after {
  border-color: var(--b18-line);
}

.b18-product--individual .gallery::after {
  display: none;
  content: none;
}

.b18-product .product__intro h2 {
  max-width: 11ch;
}

.b18-single-gallery .gallery__main,
.b18-light-gallery .gallery__main {
  aspect-ratio: 16 / 9;
}

.b18-light-gallery {
  position: relative;
}

.b18-light-gallery .gallery__main img {
  transition: opacity .24s ease, transform .5s var(--b18-ease);
}

.b18-light-gallery .gallery__main img.is-switching {
  opacity: .42;
  transform: scale(1.008);
}

.scene-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 180px));
  width: fit-content;
  margin: 14px 0 0 auto;
  border: 1px solid var(--b18-line);
}

.scene-tabs button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  color: var(--b18-muted);
  background: transparent;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scene-tabs button + button {
  border-left: 1px solid var(--b18-line);
}

.scene-tabs button.is-active {
  color: #fff;
  background: var(--b18-ink);
}

.product-detail {
  margin-top: clamp(30px, 4vw, 54px);
  border-block: 1px solid var(--b18-line);
}

.product-detail > summary {
  min-height: 82px;
  font-size: clamp(16px, 1.35vw, 20px);
}

.product-detail > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 30px;
  padding: 0 0 38px;
}

.product-detail p {
  margin: 0;
  color: var(--b18-muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-detail b {
  display: block;
  margin-bottom: 7px;
  color: var(--b18-ink);
}

/* Workshop to family */
.b18-journey .materials__copy h2 {
  max-width: 12ch;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 12px;
  margin-top: clamp(52px, 8vw, 104px);
}

.journey-grid figure {
  position: relative;
  grid-column: span 6;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: #2b2f29;
}

.journey-grid figure:nth-child(1) {
  grid-column: span 7;
}

.journey-grid figure:nth-child(2) {
  grid-column: span 5;
}

.journey-grid figure:nth-child(3) {
  grid-column: span 12;
  aspect-ratio: 16 / 7;
}

.journey-grid figure:nth-child(4) {
  grid-column: span 5;
}

.journey-grid figure:nth-child(5) {
  grid-column: span 7;
}

.journey-grid figure::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(7,9,7,.9));
  content: "";
}

.journey-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--b18-ease);
}

.journey-grid figure:hover img {
  transform: scale(1.018);
}

.journey-grid figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 2.2vw, 34px);
  bottom: clamp(18px, 2.2vw, 34px);
  left: clamp(18px, 2.2vw, 34px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 15px;
  color: #fff;
}

.journey-grid figcaption span {
  grid-row: 1 / 3;
  color: var(--b18-green);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .12em;
}

.journey-grid figcaption b {
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -.04em;
}

.journey-grid figcaption small {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  line-height: 1.4;
}

.journey-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--b18-light-line);
}

.journey-bottom p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 1.55;
}

/* Price */
.b18-cost {
  padding-block: var(--r5-section-y);
  background: var(--b18-warm);
}

.cost-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
  column-gap: clamp(48px, 8vw, 130px);
  align-items: end;
}

.cost-heading .kicker,
.cost-heading h2 {
  grid-column: 1;
}

.cost-heading h2 {
  max-width: 14ch;
  margin: 20px 0 0;
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 430;
  line-height: .98;
  letter-spacing: -.055em;
}

.cost-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  color: var(--b18-muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}

.cost-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(50px, 8vw, 130px);
  margin-top: clamp(58px, 8vw, 108px);
}

.cost-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--b18-line);
}

.cost-lines li {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 105px;
  border-bottom: 1px solid var(--b18-line);
}

.cost-lines > li > span {
  color: var(--b18-green);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .13em;
}

.cost-lines b,
.cost-lines small {
  display: block;
}

.cost-lines b {
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 620;
}

.cost-lines small {
  margin-top: 5px;
  color: var(--b18-muted);
  font-size: 13px;
}

.cost-lines em {
  color: var(--b18-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cost-status {
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background: var(--b18-ink);
}

.cost-status > div {
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--b18-light-line);
}

.cost-status > div span {
  color: var(--b18-green);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cost-status > div p,
.cost-status details p {
  margin: 9px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  line-height: 1.55;
}

.cost-status details {
  border-bottom: 1px solid var(--b18-light-line);
}

.cost-status details > summary {
  min-height: 68px;
  font-size: 13px;
}

.cost-status .button {
  width: 100%;
  margin-top: 28px;
  color: var(--b18-ink);
  background: var(--b18-green);
}

/* FAQ and catalog */
.b18-v2 .faq .section-heading h2 {
  max-width: 10ch;
}

.b18-catalog {
  min-height: clamp(680px, 60vw, 900px);
}

.b18-catalog > img {
  object-position: center;
}

.b18-catalog .catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Contact form */
.b18-contact::before {
  content: "04 / РАСЧЁТ B18";
}

.b18-contact .contact__intro h2 {
  max-width: 10ch;
}

.b18-form {
  position: relative;
  align-self: start;
  padding: clamp(28px, 4vw, 52px);
  color: #fff;
  border-top: 4px solid var(--b18-green);
  background: #1b2019;
  box-shadow: 0 35px 90px rgba(0,0,0,.25);
}

.b18-form__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--b18-light-line);
  color: rgba(255,255,255,.7);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.b18-form__top i {
  color: var(--b18-green);
  font-style: normal;
}

.b18-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 20px 0 34px;
}

.form-progress i {
  height: 3px;
  background: rgba(255,255,255,.16);
  transition: background .2s ease;
}

.form-progress i.is-active {
  background: var(--b18-green);
}

.form-step legend {
  width: 100%;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 430;
  line-height: 1;
  letter-spacing: -.045em;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

.b18-form .choice-grid label {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-grid label span {
  display: grid;
  min-height: 76px;
  align-content: center;
  gap: 3px;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.2);
  transition: border-color .2s, color .2s, background .2s;
}

.choice-grid label:hover span {
  border-color: rgba(255,255,255,.55);
}

.choice-grid input:checked + span {
  color: var(--b18-ink);
  border-color: var(--b18-green);
  background: var(--b18-green);
}

.choice-grid input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.choice-grid b {
  font-size: 12px;
  letter-spacing: .03em;
}

.choice-grid small {
  color: inherit;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.35;
  opacity: .72;
}

.form-step > .form-next {
  width: 100%;
  margin-top: 14px;
}

.b18-form label:not(.consent):not(.honeypot) {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.b18-form input,
.b18-form select,
.b18-form textarea {
  width: 100%;
  min-height: 49px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.3);
  border-radius: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.b18-form textarea {
  resize: vertical;
}

.b18-form input:focus,
.b18-form select:focus,
.b18-form textarea:focus {
  border-color: var(--b18-green);
}

.b18-form input::placeholder,
.b18-form textarea::placeholder {
  color: rgba(255,255,255,.38);
}

.b18-form option {
  color: var(--b18-ink);
}

.form-nav {
  display: grid;
  grid-template-columns: minmax(90px, .42fr) minmax(0, 1.58fr);
  gap: 8px;
  margin-top: 24px;
}

.channel-button {
  min-height: 52px;
  padding: 0 16px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  font-size: 10px;
  font-weight: 740;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.channel-button:hover {
  border-color: #fff;
}

.b18-form .consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 22px;
}

.b18-form .consent input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--b18-green);
}

.b18-form .consent span {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  line-height: 1.5;
}

.b18-form .consent a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.45);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.b18-form__error,
.b18-form__success,
.b18-form__note {
  font-size: 11px;
  line-height: 1.5;
}

.b18-form__error {
  margin: 16px 0 0;
  color: #f0a778;
}

.b18-form__success {
  padding: 12px 14px;
  margin: 16px 0 0;
  color: #eaf5d8;
  border-left: 3px solid var(--b18-green);
  background: rgba(105,185,63,.12);
}

.b18-form__note {
  margin: 18px 0 0;
  color: rgba(255,255,255,.42);
}

.b18-form__note a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.4);
}

.b18-form [aria-invalid="true"] {
  border-bottom-color: #f0a778;
}

.b18-form.is-sending {
  pointer-events: none;
  opacity: .76;
}

.b18-form.is-sending button[type="submit"]::after {
  width: 12px;
  height: 12px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: b18-spin .7s linear infinite;
  content: "";
}

@keyframes b18-spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.b18-v2 .footer-wordmark {
  width: clamp(158px, 14vw, 205px);
}

/* Lightweight reveal with a no-script-safe default */
.b18-v2 [data-reveal] {
  opacity: 1;
}

.b18-v2.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s var(--b18-ease);
}

.b18-v2.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .b18-v2 .desktop-nav {
    gap: 16px;
  }

  .inside-layout,
  .cost-grid {
    grid-template-columns: 1fr;
  }

  .inside-layout__copy {
    max-width: 720px;
  }

  .cost-heading {
    grid-template-columns: 1fr;
  }

  .cost-heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
    max-width: 700px;
    margin-top: 28px;
  }

  .cost-status {
    max-width: 760px;
  }
}

@media (max-width: 980px) {
  .b18-v2 .site-header {
    grid-template-columns: 1fr auto;
  }

  .package-compare__body article {
    grid-template-columns: 1fr repeat(3, minmax(120px, 1fr));
  }

  .product-detail > div {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .journey-grid figure:nth-child(n) {
    grid-column: span 6;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 720px) {
  .b18-v2 .brandmark {
    width: 43px;
    height: 44px;
  }

  .b18-v2 .brandmark__mark {
    width: 43px;
    max-height: 42px;
  }

  .b18-hero {
    min-height: 760px;
  }

  .b18-hero .hero__image {
    object-position: 57% center;
  }

  .b18-hero .hero__content {
    width: 100%;
    min-height: 760px;
    padding-top: 110px;
    padding-bottom: 170px;
    justify-content: flex-end;
  }

  .b18-hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 11.6vw, 56px);
    line-height: .95;
  }

  .b18-hero .hero__lead {
    max-width: 34ch;
    font-size: 16px;
  }

  .b18-hero .hero__facts {
    right: var(--r5-gutter);
    left: var(--r5-gutter);
    bottom: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 18px;
    align-items: end;
  }

  .b18-hero .hero__facts span {
    max-width: none;
    white-space: nowrap;
    line-height: 1.25;
  }

  .b18-hero .hero__facts span:nth-child(2) {
    text-align: right;
  }

  .b18-hero .hero__facts span:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }

  .b18-packages .section-heading h2,
  .b18-inside .section-heading h2,
  .cost-heading h2 {
    max-width: 100%;
    font-size: clamp(39px, 11.2vw, 52px);
  }

  .b18-packages .package-card__copy {
    min-height: 220px;
  }

  .package-compare__body article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .package-compare__body article p {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
  }

  .package-compare__body p b {
    margin: 0;
  }

  .b18-life .life__copy h2,
  .b18-catalog .life__copy h2 {
    max-width: 100%;
    font-size: 43px;
  }

  .inside-layout {
    margin-top: 52px;
  }

  .inside-plan {
    grid-template-columns: 1.05fr .7fr 1.25fr;
    min-height: 230px;
    padding: 8px;
  }

  .inside-plan::before {
    inset: 8px;
    border-width: 4px;
  }

  .inside-plan__room {
    padding: 14px 9px;
  }

  .inside-plan__room span {
    top: 14px;
    left: 10px;
    font-size: 8px;
  }

  .inside-plan__room strong {
    max-width: 7ch;
    font-size: 17px;
  }

  .inside-plan__room small {
    font-size: 8px;
  }

  .inside-plan__width {
    bottom: -26px;
  }

  .inside-plan__depth {
    display: none;
  }

  .b18-rooms article details {
    margin-right: 12px;
    margin-left: 12px;
  }

  .b18-product .product__chapter {
    grid-template-columns: 76px minmax(0,1fr);
    gap: 18px;
  }

  .b18-product .product__chapter-number {
    font-size: 74px;
  }

  .b18-product .product__chapter-copy {
    padding-left: 18px;
  }

  .b18-product .product__chapter-copy strong,
  .b18-product--individual .product__chapter-copy strong {
    font-size: clamp(42px, 12vw, 58px);
    line-height: .9;
  }

  .b18-product .product__chapter-copy em {
    font-size: 12px;
  }

  .b18-single-gallery .gallery__main,
  .b18-light-gallery .gallery__main {
    aspect-ratio: 3 / 2;
  }

  .scene-tabs {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .product-detail > div {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .journey-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .journey-grid figure:nth-child(n) {
    grid-column: 1;
    aspect-ratio: 3 / 2;
  }

  .journey-grid figcaption b {
    font-size: 21px;
  }

  .journey-grid figcaption small {
    font-size: 10px;
  }

  .journey-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .journey-bottom .button {
    width: 100%;
  }

  .cost-lines li {
    grid-template-columns: 34px minmax(0,1fr);
    min-height: 118px;
  }

  .cost-lines em {
    grid-column: 2;
    margin-top: -12px;
  }

  .cost-status {
    padding: 26px 20px;
  }

  .b18-catalog .catalog-actions {
    display: grid;
  }

  .b18-contact::before {
    content: "04 / РАСЧЁТ B18";
  }

  .b18-form {
    padding: 26px 20px;
  }

  .form-step legend {
    font-size: 30px;
  }

  .form-nav {
    grid-template-columns: 1fr;
  }

  .form-nav .channel-button {
    order: 2;
  }

  .b18-v2 .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .b18-contact .contact__phone {
    font-size: 30px;
    letter-spacing: -.065em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b18-v2 *,
  .b18-v2 *::before,
  .b18-v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
