.fl-page {
  --fl-ink: var(--rail-ink);
  --fl-paper: var(--rail-white);
  --fl-muted: var(--rail-steel);
  --fl-rule: var(--rail-line);
  --fl-accent: var(--rail-accent);
  color: var(--fl-ink);
  background: var(--fl-paper);
  font-family: var(--rail-body);
}
.fl-page *, .fl-page *::before, .fl-page *::after { box-sizing: border-box; }
.fl-page :where(h1,h2,h3,p,figure,dl,dd) { margin: 0; }
.fl-page .container { width: min(100% - clamp(36px, 9vw, 136px), 1280px); max-width: 1280px; padding-inline: 0; margin-inline: auto; }
.fl-page [hidden] { display: none !important; }
.fl-page :where(button,input) { font: inherit; }
.fl-page a { color: inherit; }
.fl-page :is(button,a,input):focus-visible { outline: 3px solid var(--rail-ice); outline-offset: 3px; }
.fl-page :is(section[id]) { scroll-margin-top: 85px; }
.fl-page .fl-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--rail-navy); }
.fl-hero::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, rgba(2,55,96,.48), rgba(2,55,96,.32) 34%, rgba(2,55,96,.06) 58%, transparent 76%); }
.fl-hero-image { width: 100%; height: 100%; position: absolute; inset: 0; z-index: -2; object-fit: cover; object-position: 58% 50%; }
.fl-hero :is(.fl-location,.fl-back,.fl-lede,.fl-hero-caption) { text-shadow: 0 1px 5px rgba(9,18,35,.9); }
.fl-page .fl-hero-content { position: relative; min-height: clamp(480px, 41vw, 590px); padding-block: 27px 35px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.fl-page .fl-back { display: inline-flex; align-items: center; gap: 8px; font-size: .83rem; line-height: 1.3; text-decoration: none; color: var(--rail-white); }
.fl-back:hover, .fl-page .fl-ghost:hover, .fl-figure a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fl-hero-copy { margin: 46px 0; }
.fl-page .fl-location { color: var(--rail-white); font-size: .94rem; font-weight: 600; margin: 0 0 15px; }
.fl-page h1 { max-width: 760px; color: #fff; font-weight: 600; font-size: clamp(2.75rem, 5.1vw, 5.1rem); line-height: 1.03; letter-spacing: -.051em; text-wrap: balance; }
.fl-page .fl-lede { max-width: 515px; margin: 22px 0 0; font-size: clamp(1rem, 1.35vw, 1.27rem); line-height: 1.52; color: var(--rail-white); }
.fl-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.fl-page .fl-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent; border-radius: 6px; padding: 14px 23px; min-height: 52px; line-height: 1.35; text-align: center; text-decoration: none; font-size: 1rem; font-weight: 750; cursor: pointer; transition: background-color .17s ease; }
.fl-page .fl-button-main { color: #fff; background: var(--rail-accent); border-color: var(--rail-accent); }
.fl-page .fl-button-main:hover { background: var(--rail-accent-hover); }
.fl-page .fl-button-dark { color: #fff; background: var(--fl-ink); }
.fl-page .fl-button-dark:hover { background: var(--rail-ink); }
.fl-page :is(.fl-button,.fl-ghost) > span { font-size: 1.13em; font-weight: 500; }
.fl-page .fl-ghost { background: rgba(2,55,96,.72); border: 1px solid var(--rail-ice); border-radius: 6px; cursor: pointer; color: #fff; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; text-decoration: none; line-height: 1.35; font-size: 1rem; font-weight: 700; padding: 13px 20px; }
.fl-page .fl-ghost:hover { background:var(--rail-navy); text-decoration:none; }
.fl-page .fl-hero-caption { align-self: flex-end; color: var(--rail-white); font-size: .68rem; line-height: 1.3; }
.fl-page .fl-unavailable { margin: 0 0 18px; color: var(--fl-accent); font-size: .94rem; }
.fl-stats { border-bottom: 1px solid var(--fl-rule); }
.fl-page .fl-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-block: 0; }
.fl-stat-grid > div { padding: 25px 20px 28px 0; display: grid; grid-template-rows: auto 1fr; align-content: start; align-items: start; gap: 5px; }
.fl-stat-grid > div + div { border-left: 1px solid var(--fl-rule); padding-left: clamp(16px, 2.7vw, 44px); }
.fl-stat-grid dt { grid-row: 2; font-size: .86rem; line-height: 1.35; color: var(--fl-muted); }
.fl-stat-grid dd { grid-row: 1; font-size: clamp(1.35rem, 2.25vw, 2.15rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.12; }
.fl-page .fl-section { padding-block: clamp(54px, 6.2vw, 92px); }
.fl-section-heading { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(28px,5vw,76px); align-items: end; margin-bottom: 37px; }
.fl-page h2 { margin: 0; color: var(--fl-ink); font-size: clamp(2.15rem,3.65vw,3.75rem); line-height: 1.04; font-weight: 600; letter-spacing: -.063em; text-wrap: balance; }
.fl-page :is(.fl-section-heading,.fl-transfer-aside) > p { color: var(--fl-muted); max-width: 555px; font-size: 1rem; line-height: 1.55; }
.fl-plan-layout { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); background: #fff; border: 1px solid var(--fl-rule); }
.fl-plan-body { padding: clamp(22px,3.3vw,50px); }
.fl-page .fl-options { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fl-options label { position: relative; cursor: pointer; }
.fl-options input, .fl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
.fl-options input + span { display: inline-block; padding: 9px 13px; border: 1px solid var(--rail-blue); border-radius: 3px; background: #fff; color: var(--rail-navy); font-size: .86rem; font-weight: 600; line-height: 1.35; }
.fl-options input:checked + span { background: var(--fl-ink); border-color: var(--fl-ink); color: #fff; }
.fl-options input:focus-visible + span { outline: 3px solid var(--rail-ice); outline-offset: 2px; }
.fl-options label:hover input:not(:checked) + span { border-color: var(--fl-ink); }
.fl-plan-heading { margin-block: 29px 17px; }
.fl-plan-heading p, .fl-page .fl-calclot { color: var(--fl-muted); font-weight: 650; font-size: .87rem; }
.fl-plan-heading h3 { color: var(--fl-ink); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -.065em; line-height: 1.17; margin: 4px 0 0; }
.fl-specs, .fl-calc-lines { margin: 0; }
.fl-specs { margin-bottom: 24px; }
.fl-specs > div, .fl-calc-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--fl-rule); font-size: .9rem; line-height: 1.4; }
.fl-specs dt, .fl-calc-lines dt { color: var(--fl-muted); }
.fl-specs dd, .fl-calc-lines dd { text-align: right; font-weight: 650; }
.fl-page .fl-asof { margin: 14px 0 0; font-size: .77rem; line-height: 1.55; color: var(--fl-muted); }
.fl-figure { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; border-left: 1px solid var(--fl-rule); background: var(--rail-wash); padding: clamp(20px, 3vw, 44px); }
.fl-figure > a { flex: 1; display: flex; align-items: center; justify-content: center; }
.fl-figure img { width: 100%; height: 100%; max-height: 360px; object-fit: contain; mix-blend-mode: multiply; }
.fl-figure figcaption { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: space-between; color: var(--fl-muted); font-size: .83rem; }
.fl-figure figcaption a { font-weight: 650; color: var(--fl-ink); }
.fl-comparison { background: var(--rail-wash); }
.fl-calc-panel { display: grid; grid-template-columns: 1fr 1fr; }
.fl-calc-controls, .fl-calc-result { padding: clamp(24px, 3.3vw, 46px); }
.fl-calc-controls { background: #fff; }
.fl-page .fl-calclot { margin-bottom: 20px; }
.fl-page .fl-term-options { margin-bottom: 25px; }
.fl-term-options legend, .fl-input-label { display: block; font-size: .94rem; line-height: 1.38; font-weight: 650; margin-bottom: 8px; padding: 0; }
.fl-input-row { background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 385px; padding: 11px 14px; border: 1px solid var(--rail-steel-light); border-radius: 3px; }
.fl-input-row:focus-within { outline: 2px solid var(--fl-ink); outline-offset: 1px; }
.fl-page .fl-input-row input { width: 100%; min-width: 0; padding: 0; outline: 0; border: 0; color: var(--fl-ink); font-weight: 550; font-size: 1.08rem; line-height: 1.33; background: transparent; }
.fl-input-row input::placeholder { font-weight: 400; color: var(--rail-steel); }
.fl-input-row > span { flex-shrink: 0; color: var(--fl-muted); font-size: .86rem; }
.fl-page .fl-help { color: var(--fl-muted); font-size: .8rem; line-height: 1.5; margin: 9px 0 0; }
.fl-page .fl-example { display: block; padding: 0; margin: 15px 0 0; border: 0; background: none; color: var(--fl-accent); font-size: .86rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.fl-calc-result { color: #fff; background: var(--rail-navy); display: flex; flex-direction: column; justify-content: center; }
.fl-calc-result > p:first-child { color: var(--rail-ice); font-size: .93rem; font-weight: 600; line-height: 1.4; }
.fl-calc-result > strong { font-size: clamp(1.9rem, 3.4vw, 3.55rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.2; margin: 10px 0 18px; }
.fl-calc-result .fl-calc-lines > div { border-color: var(--rail-steel-light); }
.fl-calc-result .fl-calc-lines dt { color: var(--rail-ice); }
.fl-calc-lines > .fl-floor-payment { margin-top: .65rem; padding-top: .85rem; }
.fl-page .fl-ratio { margin: 19px 0 0; font-size: .91rem; line-height: 1.5; color: var(--rail-white); }
.fl-disclosure { border-bottom: 1px solid var(--rail-line); }
.fl-disclosure summary { padding: 19px 0; cursor: pointer; font-weight: 650; font-size: .97rem; }
.fl-disclosure summary:focus-visible { outline: 3px solid var(--rail-ice); outline-offset: 2px; }
.fl-disclosure-inner { padding: 0 0 22px; max-width: 720px; }
.fl-calc-lines .fl-total dt, .fl-calc-lines .fl-total dd { color: var(--fl-ink); font-weight: 750; }
.fl-page .fl-terms-note { max-width: 880px; margin: 17px 0 20px; }
.fl-double { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: clamp(24px,4vw,55px); background: #fff; }
.fl-double h3, .fl-steps h3 { font-size: 1.28rem; line-height: 1.3; color: var(--fl-ink); font-weight: 650; letter-spacing: -.035em; }
.fl-double p, .fl-steps p { color: var(--fl-muted); margin-top: 8px; line-height: 1.5; }
.fl-hand-over { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(30px, 7vw, 120px); }
.fl-page .fl-transfer-aside p { margin: 20px 0 22px; }
.fl-steps { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--fl-rule); }
.fl-steps li { padding: 17px 0 19px; border-bottom: 1px solid var(--fl-rule); }
.fl-steps p { font-size: .94rem; }
@media (max-width: 800px) {
  .fl-page .fl-hero-content { min-height: 470px; }
  .fl-hero-copy { margin: 32px 0; }
  .fl-section-heading, .fl-hand-over { grid-template-columns: 1fr; gap: 17px; }
  .fl-plan-layout { grid-template-columns: 1fr 1fr; }
  .fl-page .fl-section-heading { margin-bottom: 24px; }
  .fl-hand-over .fl-steps { margin-top: 12px; }
  .fl-stats .fl-stat-grid { grid-template-columns: repeat(2,1fr); }
  .fl-stat-grid > div { padding: 16px; }
  .fl-stat-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fl-stat-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--fl-rule); }
  .fl-double { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fl-page .container { width: calc(100% - 36px); }
  .fl-page section.fl-hero { background-color: #14243c; }
  .fl-page .fl-hero-content { min-height: 478px; padding-block: 18px 14px; }
  .fl-page .fl-hero::before { background: linear-gradient(90deg, rgba(2,55,96,.17), transparent 60%); }
  .fl-hero-image { height: clamp(245px, 65vw, 340px); object-position: 56% 45%; mask-image: linear-gradient(#000 70%, transparent); }
  .fl-page section.fl-hero .fl-hero-copy { margin-block: clamp(145px, 41vw, 215px) 18px; }
  .fl-page h1 { font-size: clamp(2.42rem,8.6vw,3.5rem); }
  .fl-page h1 br { display: none; }
  .fl-hero-actions { gap: 6px 18px; margin-top: 22px; }
  .fl-plan-layout, .fl-calc-panel { grid-template-columns: 1fr; }
  .fl-figure { border-left: 0; border-top: 1px solid var(--fl-rule); }
  .fl-figure img { height: 205px; }
  .fl-plan-body, .fl-calc-controls, .fl-calc-result { padding: 22px 18px; }
  .fl-plan-heading { margin-top: 22px; }
  .fl-stat-grid > div + div { padding-left: 15px; }
  .fl-calc-lines > div { gap: 10px; }
  .fl-specs dd, .fl-calc-lines dd { flex-shrink: 0; }
  .fl-page .fl-section { padding-block: 47px; }
}
@media (prefers-reduced-motion: reduce) { .fl-page *, .fl-page *::before, .fl-page *::after { transition: none !important; } }

@media(max-width:480px){
  .fl-hero-actions{display:grid;grid-template-columns:1fr;align-items:stretch;gap:9px}
  .fl-hero-actions .fl-button,.fl-hero-actions .fl-ghost{min-height:47px;padding:11px 15px}
}

/* Фотографии интерьера и строящегося этажа. */
.fl-comparison-followup {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(26px, 4vw, 64px);
  margin-top: 24px;
}
.fl-comparison-conditions { min-width: 0; }
.fl-illustrated-quote { grid-template-columns: 1fr; }
.fl-editorial-image {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  border-radius: 0 var(--rail-radius) 0 var(--rail-radius);
  background: var(--rail-navy);
}
.fl-editorial-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.05;
  object-fit: cover;
}
.fl-editorial-image figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 16px 12px;
  color: white;
  background: linear-gradient(transparent, rgba(3, 20, 33, .85));
  font: 500 .77rem/1.35 var(--rail-body);
}
.fl-handover-photo { margin-top: 24px; }
@media (max-width: 899px) {
  .fl-comparison-followup { grid-template-columns: 1fr; gap: 22px; }
}
@media (min-width: 620px) and (max-width: 899px) {
  .fl-comparison-followup .fl-editorial-image { max-width: 680px; }
}
