: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; transition: transform .25s ease, box-shadow .25s ease; }
.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.two-col { columns: 2; column-gap: 2rem; }
.site-footer .footer-links.two-col li { break-inside: avoid; }
.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); }
#reviewCarousel .carousel-item { min-height: 0; }
.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: relative; 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; }
}

.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-mosaic .media-frame { aspect-ratio: 4 / 3; }
.hero-mosaic .media-frame:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.hero-photo { aspect-ratio: 4 / 5; }
.float-chips { position: absolute; left: 0; right: 0; bottom: 1rem; display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; padding: 0 .75rem; }
.float-chips .chip { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.chip-float-1 { transform: rotate(-3deg); }
.chip-float-3 { transform: rotate(3deg); }
.sticky-side { position: sticky; top: 6.5rem; }

.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; overflow: hidden; }
.step-num { position: absolute; right: 1rem; top: .4rem; font-size: 3rem; font-weight: 800; color: var(--bg2); line-height: 1; }

.post-card { display: block; text-decoration: none; color: var(--ink); }
.post-card:hover { color: var(--ink); }
.post-card h3 { color: var(--ink); transition: color .2s ease; }
.post-card:hover h3 { color: var(--link); }
.featured-thumb { width: 96px; aspect-ratio: 1 / 1; }

.review-card { max-width: 720px; margin: 0 auto; }
.review-avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.stars { color: var(--primary-light); letter-spacing: .15rem; }

.photo-strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.photo-strip .strip-item { flex: 0 0 clamp(220px, 30vw, 320px); aspect-ratio: 4 / 3; scroll-snap-align: start; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid .media-frame { position: relative; aspect-ratio: 4 / 3; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .9rem; background: var(--ov); color: #fff; font-size: .85rem; opacity: 0; transform: translateY(8px); transition: all .25s ease; }
.gallery-grid .media-frame:hover .gallery-caption, .gallery-grid .media-frame:focus-within .gallery-caption { opacity: 1; transform: none; }
.gallery-grid .media-frame:nth-child(4n + 1) { aspect-ratio: 16 / 10; }
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry .masonry-item { break-inside: avoid; margin-bottom: 1rem; aspect-ratio: 4 / 3; cursor: zoom-in; }
.masonry .masonry-item:nth-child(3n + 2) { aspect-ratio: 1 / 1; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.timeline { position: relative; padding-left: 1.6rem; max-width: 960px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: .35rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -1.56rem; top: .45rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); }
.timeline-img { aspect-ratio: 4 / 3; }

.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1rem 1.25rem; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq-item summary::marker { color: var(--link); }
.faq-item p { margin-bottom: 0; }

.blockquote-quote { border-left: 4px solid var(--primary); padding: .25rem 0 .25rem 1.25rem; font-size: 1.1rem; font-style: italic; }
.blockquote-quote p { color: var(--ink); margin: 0; }
.article-body p { margin-bottom: 1.1rem; }
.article-body h2, .article-body h3 { margin-top: 1.75rem; margin-bottom: .75rem; }
.author-avatar { width: 72px; height: 72px; border-radius: 50%; }

.wizard-steps { display: flex; gap: 1rem; }
.wizard-step { flex: 1; display: flex; align-items: center; gap: .6rem; color: var(--mute); font-size: .9rem; font-weight: 600; }
.wizard-step span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--mute); flex: none; }
.wizard-step.active { color: var(--ink); }
.wizard-step.active span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.status-open { color: var(--primary-light); font-size: .7rem; }
.status-closed { color: var(--accent); font-size: .7rem; }

.site-header .dropdown-menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 24px 48px -20px var(--shadow); }
.site-header .dropdown-item { color: var(--ink); padding: .55rem 1rem; }
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus { background: var(--bg2); color: var(--link); }
.breadcrumb { --bs-breadcrumb-divider-color: var(--mute); --bs-breadcrumb-item-active-color: var(--mute); }
.breadcrumb a { color: var(--link); text-decoration: none; }
.modal-content { background: var(--surface); border: 1px solid var(--line); }
.btn-close { filter: invert(1); }
.iti { width: 100%; }
.iti__dropdown-content { background: var(--surface); color: var(--ink); }

@media (max-width: 991.98px) {
  .sticky-side { position: static; }
  .steps-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .wizard-steps { flex-direction: column; gap: .5rem; }
  .hero-mosaic { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .hero-mosaic .media-frame { flex: 0 0 74%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .masonry { columns: 2 160px; }
}
@media (max-width: 575.98px) {
  .steps-row, .gallery-grid { grid-template-columns: 1fr; }
}
