:root {
  --r: 18px;
  --r-sm: 10px;
  --gap: clamp(2.5rem, 6vw, 5rem);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-link-color: var(--link);
  --bs-link-hover-color: var(--link-hover);
  --bs-border-color: var(--line);
  --bs-primary: var(--primary);
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.65; overflow-x: hidden; }
img, video { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
p { color: var(--ink2); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
.text-link { color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.text-mute { color: var(--mute); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem; border-radius: 999px; background: var(--bg2); color: var(--link); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.section { position: relative; padding: var(--gap) 0; }
.section-soft { background: var(--bg2); }
.section-surface { background: var(--surface); }
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { font-size: 1.05rem; }
.bg-photo { background-size: cover; background-position: center; background-repeat: no-repeat; color: #fff; }
.bg-photo h1, .bg-photo h2, .bg-photo h3, .bg-photo h4, .bg-photo p, .bg-photo li, .bg-photo .eyebrow { color: #fff; }
.bg-photo .eyebrow { background: rgba(255, 255, 255, .16); }
.bg-photo a:not(.btn) { color: #fff; }
.bg-video { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.bg-video > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bg-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--ov), var(--ov)); z-index: -1; }
.bg-video h1, .bg-video h2, .bg-video h3, .bg-video p, .bg-video li, .bg-video .eyebrow { color: #fff; }
.bg-video a:not(.btn) { color: #fff; }
.bg-video .eyebrow { background: rgba(255, 255, 255, .16); }
.bg-photo .check-list li, .bg-video .check-list li { color: #fff; }
.bg-photo .check-list li::before, .bg-video .check-list li::before { color: #fff; }

.btn { border-radius: 999px; font-weight: 600; padding: .7rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-color: var(--on-primary); --bs-btn-hover-bg: var(--primary-hover); --bs-btn-hover-border-color: var(--primary-hover); --bs-btn-hover-color: var(--on-primary); --bs-btn-active-bg: var(--primary-hover); --bs-btn-active-border-color: var(--primary-hover); --bs-btn-active-color: var(--on-primary); box-shadow: 0 10px 24px -12px var(--primary); }
.btn-accent { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: var(--on-accent); --bs-btn-hover-bg: var(--primary-hover); --bs-btn-hover-border-color: var(--primary-hover); --bs-btn-hover-color: var(--on-primary); }
.btn-outline-primary { --bs-btn-color: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary); --bs-btn-hover-color: var(--on-primary); }
.btn-light-glass { background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); border: 1px solid var(--line); }
.btn-light-glass:hover { background: var(--surface); color: var(--link-hover); }

.card-soft { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -26px var(--shadow); padding: 1.5rem; height: auto; transition: transform .25s ease, box-shadow .25s ease; }
[class*="col-"] > .card-soft:only-child, .carousel-item > .card-soft:only-child { height: 100%; }
.card-soft:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px var(--shadow); }
.glass { background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--surface) 60%, transparent); border-radius: var(--r); padding: 1.75rem; color: var(--ink); }
.glass h1, .glass h2, .glass h3, .glass h4 { color: var(--ink); }
.glass p, .glass li { color: var(--ink2); }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg2); color: var(--link); font-size: 1.25rem; flex: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .85rem; box-shadow: 0 8px 20px -14px var(--shadow); }
.num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--link); line-height: 1; }
.media-frame { border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -34px var(--shadow); background: var(--bg2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-card { aspect-ratio: 4 / 3; }
.divider { height: 1px; background: var(--line); border: 0; margin: 2rem 0; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; color: var(--ink2); }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 0; color: var(--link); }
.table-soft { --bs-table-bg: var(--surface); --bs-table-color: var(--ink); --bs-table-border-color: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.table-soft thead th { background: var(--bg2); color: var(--ink); border-bottom: 2px solid var(--line); }
.scroll-row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.scroll-row > * { flex: 0 0 min(82%, 320px); scroll-snap-align: start; }

.accordion { --bs-accordion-bg: var(--surface); --bs-accordion-border-color: var(--line); --bs-accordion-btn-color: var(--ink); --bs-accordion-active-bg: var(--bg2); --bs-accordion-color: var(--ink); --bs-accordion-active-color: var(--link); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--primary-light); border-radius: var(--r); overflow: hidden; }

.site-header { position: sticky; top: 0; z-index: 1030; background: var(--surface); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 30px -20px var(--shadow); }
.site-header .topbar { background: var(--navy); color: #fff; padding: .4rem 0; }
.site-header .topbar span, .site-header .topbar a { color: #fff; text-decoration: none; }
.site-header .mobile-contacts a { color: var(--ink2); text-decoration: none; }
.site-header .navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); }
.site-header .navbar-brand img { height: 46px; width: auto; }
.site-header .nav-link { color: var(--ink); font-weight: 600; padding: .6rem .9rem; border-radius: 999px; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--link); background: var(--bg2); }
.site-header .mobile-contacts { display: none; }
.navbar-toggler { border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: .45rem .7rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--primary-light); }

.site-footer { background: var(--navy); color: #fff; padding: 4rem 0 1.5rem; border-top: 1px solid var(--line); }
.form-control::placeholder { color: var(--mute); opacity: 1; }
.site-footer h4, .site-footer h5, .site-footer p, .site-footer li, .site-footer span { color: rgba(255, 255, 255, .86); }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: #fff; text-decoration: none; opacity: .88; }
.site-footer a:hover { opacity: 1; color: var(--primary-light); }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .45rem; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; }
.site-footer .social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .12); margin-right: .5rem; }
.site-footer .social a:hover { background: var(--primary); }

.form-control, .form-select { border-radius: var(--r-sm); border: 1px solid var(--line); padding: .8rem 1rem; background: var(--surface); color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem var(--primary-light); }
.form-control.is-invalid { border-color: var(--accent); }
.field-error { color: var(--accent); font-size: .85rem; margin-top: .25rem; display: none; }
.is-invalid + .field-error, .is-invalid ~ .field-error { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }
.btn-loader { display: none; width: 1.1rem; height: 1.1rem; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; margin-left: .5rem; vertical-align: -3px; }
.is-loading .btn-loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; max-width: min(92vw, 380px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: var(--r-sm); padding: 1rem 1.25rem; box-shadow: 0 24px 50px -22px var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .3s ease; }
.notice.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.notice.is-error { border-left-color: var(--accent); }

#cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1999; display: none; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: 920px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.25rem; box-shadow: 0 30px 60px -28px var(--shadow); }
#cookie-banner p { margin: 0; flex: 1 1 280px; font-size: .92rem; }
#cookie-banner .cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.carousel .carousel-item { min-height: clamp(360px, 62vh, 620px); }
.carousel-item > img.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel-item .slide-overlay { position: absolute; inset: 0; background: linear-gradient(var(--ov), var(--ov)); }
.carousel-caption-box { position: absolute; inset: 0; z-index: 2; }
.carousel-indicators [data-bs-target] { background-color: var(--primary-light); }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding: 1rem 0; }
  .site-header .mobile-contacts { display: block; border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .75rem; font-size: .92rem; }
  .site-header .mobile-contacts div { margin-bottom: .35rem; color: var(--ink2); }
}
@media (max-width: 575.98px) {
  .btn { width: 100%; }
  .section-head { text-align: left; }
  .glass { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.tag-scroll { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; }
.tag-scroll .chip { flex: none; cursor: pointer; }
.tag-scroll .chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.hero-photo { position: relative; }
.float-chips { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.fact-strip { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.fact-strip .fact { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.stars { color: var(--primary); letter-spacing: .12em; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.partner-logo { height: 54px; width: auto; max-width: 140px; object-fit: cover; border-radius: var(--r-sm); filter: grayscale(1); opacity: .75; }
.map-frame iframe { width: 100%; min-height: 340px; border: 0; display: block; border-radius: var(--r); }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.price-tag { font-weight: 800; color: var(--link); }
.post-meta { font-size: .9rem; color: var(--mute); }
.cat-badge { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--bg2); color: var(--link); font-size: .75rem; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; gap: 1rem; }
.g-item { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.g-tall { grid-row: span 2; }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem 1rem; color: #fff; background: linear-gradient(transparent, var(--ov)); font-size: .9rem; opacity: 0; transition: opacity .25s ease; }
.g-item:hover .g-cap, .g-item:focus-within .g-cap { opacity: 1; }
.strip-wrap { overflow: hidden; }
.strip-track { display: flex; gap: 1rem; width: max-content; animation: marquee 42s linear infinite; }
.strip-track:hover { animation-play-state: paused; }
.strip-track img { width: 260px; height: 170px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.sticky-side { position: sticky; top: 6.5rem; }
.principle-num { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: var(--primary-light); line-height: 1; }
.cta-panel { background: var(--accent); color: var(--on-accent); border-radius: var(--r); padding: clamp(1.75rem, 4vw, 3rem); }
.cta-panel h2, .cta-panel p, .cta-panel span, .cta-panel li { color: var(--on-accent); }
.quote-box { border-left: 4px solid var(--primary); padding: .25rem 0 .25rem 1.25rem; font-size: 1.1rem; font-style: italic; color: var(--ink2); }
.alpha-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.bg-photo .breadcrumb-item, .bg-photo .breadcrumb-item a { color: #fff; }
.bg-photo .breadcrumb-item.active { color: rgba(255, 255, 255, .75); }
.bg-photo .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .6); }
.calc-out { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: var(--link); line-height: 1.1; }
.hero-search .form-control { padding: 1rem 1.25rem; }
@media (max-width: 767.98px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .float-chips { position: static; margin-top: .75rem; flex-wrap: nowrap; overflow-x: auto; }
  .float-chips .chip { flex: none; }
  .map-frame iframe { min-height: 320px; }
  .sticky-side { position: static; }
}

.search-wrap { position: relative; }
.search-results { position: absolute; top: calc(100% + .4rem); left: 0; right: 0; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 24px 50px -22px var(--shadow); max-height: 320px; overflow-y: auto; text-align: left; display: none; }
.search-results.is-open { display: block; }
.search-hit { display: block; padding: .75rem 1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.search-hit:last-child { border-bottom: 0; }
.search-hit:hover { background: var(--bg2); color: var(--ink); }
.search-hit strong { display: block; font-size: .95rem; color: var(--primary-dark); }
.search-hit span { display: block; font-size: .82rem; color: var(--mute); margin-top: .15rem; line-height: 1.4; }
.search-hit.is-empty { color: var(--mute); cursor: default; }

.empty-note { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 2rem; text-align: center; color: var(--mute); }
.empty-note .text-link { color: var(--primary); text-decoration: underline; cursor: pointer; }

.carousel-control-prev, .carousel-control-next { width: 3.5rem; opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 2.4rem; height: 2.4rem; background-color: var(--primary); border-radius: 50%; background-size: 55%; box-shadow: 0 8px 18px -6px var(--shadow); }
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: .85; }
