:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #eef7f2;
  --text: #202422;
  --muted: #68726f;
  --line: #dfe5df;
  --primary: #063f2f;
  --primary-strong: #022b20;
  --accent: #d6a532;
  --accent-soft: #fff4d3;
  --coral: #c8604a;
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --glass-border: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 50px rgba(25, 39, 32, 0.12);
  --shadow-hover: 0 26px 70px rgba(18, 38, 28, 0.18);
  --radius: 18px;
  --container: min(1180px, calc(100% - 32px));
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #121512;
  --surface: #1a201c;
  --surface-soft: #172a23;
  --text: #f3f5ef;
  --muted: #b1bbb4;
  --line: #303c34;
  --primary: #0b4b38;
  --primary-strong: #2f7a5d;
  --accent: #e1b84d;
  --accent-soft: #312817;
  --coral: #ef987f;
  --glass: rgba(26, 32, 28, 0.7);
  --glass-strong: rgba(26, 32, 28, 0.86);
  --glass-border: rgba(255, 255, 255, 0.11);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 28px 76px rgba(0, 0, 0, 0.46);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-padding-top: 92px;
  scroll-behavior: smooth;
}

html.performance-lite {
  scroll-behavior: auto;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 34%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--line) 28%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 42%, transparent), transparent 460px),
    var(--bg);
  background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%;
  color: var(--text);
  line-height: 0;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

body > header,
body > main,
body > footer,
.messages,
.visual-edit-bar {
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

main {
  flex: 1 0 auto;
  overflow: visible;
  padding-top: 82px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 18px max(16px, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--glass-border));
  box-shadow: inset 0 1px 0 var(--glass-border), 0 12px 28px rgba(25, 39, 32, 0.1);
}

.brand__mark img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  filter: contrast(1.12);
}

.brand__logo--dark {
  display: none;
  transform: scale(3.2);
  transform-origin: center;
}

[data-theme="dark"] .brand__logo--light,
.site-footer .brand__logo--light {
  display: none;
}

[data-theme="dark"] .brand__logo--dark,
.site-footer .brand__logo--dark {
  display: block;
}

.brand__text {
  font-size: 14px;
  color: var(--muted);
  max-width: 150px;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a.is-active {
  color: var(--primary-strong);
  font-weight: 900;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
  height: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  border: 1px solid color-mix(in srgb, var(--primary) 78%, #ffffff);
  box-shadow: 0 12px 28px rgba(2, 43, 32, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-size: 23px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  background: var(--primary-strong);
  box-shadow: 0 16px 34px rgba(2, 43, 32, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

.menu-toggle {
  display: none;
}

.messages {
  position: fixed;
  top: 84px;
  right: 16px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.message {
  max-width: 360px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.hero {
  position: relative;
  min-height: clamp(500px, 72vh, 660px);
  display: grid;
  align-items: end;
  padding: 96px max(16px, calc((100vw - 1180px) / 2)) 32px;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, rgba(9, 22, 17, 0.82), rgba(9, 22, 17, 0.38) 48%, rgba(9, 22, 17, 0.06));
  z-index: 0;
}

.hero__media {
  position: absolute;
  inset: -1px;
  background: url("../img/hero-dsk.png") center/cover no-repeat;
  transform: scale(1.02);
}

.hero__content,
.hero__stats {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero h1,
.project-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.article__header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.calculator .button {
  min-height: 42px;
  padding: 10px 16px;
}

.calculator-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 30px rgba(2, 43, 32, 0.24);
}

.button--primary:hover {
  background: var(--primary-strong);
}

.button--ghost {
  background: color-mix(in srgb, var(--surface) 12%, transparent);
  color: inherit;
  border-color: color-mix(in srgb, currentColor 32%, transparent);
}

.button--small {
  min-height: 36px;
  padding: 8px 13px;
  background: var(--surface-soft);
  color: var(--primary-strong);
  font-size: 14px;
}

.button--small::after {
  content: "\2192";
  line-height: 1;
  opacity: 1;
  color: currentColor;
  transform: translateX(0);
  transition: transform 180ms ease, opacity 180ms ease;
}

.button--small:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #fff;
  box-shadow: 0 14px 30px rgba(2, 43, 32, 0.22);
}

.button--small:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.project-card:hover .button--small {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #fff;
  box-shadow: 0 14px 30px rgba(2, 43, 32, 0.22);
}

.project-card:hover .button--small::after {
  opacity: 1;
  transform: translateX(3px);
}

.button--whatsapp {
  background: var(--primary);
  color: #ffffff;
  border-color: color-mix(in srgb, var(--primary) 78%, #ffffff);
  box-shadow: 0 12px 28px rgba(2, 43, 32, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button--whatsapp:hover {
  background: var(--primary-strong);
  box-shadow: 0 16px 34px rgba(2, 43, 32, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero__stats div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.hero__stats strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.hero__stats span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 72px 0;
}

.section--compact {
  padding: 52px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.calculator-layout h2,
.specs-panel h2,
.rich-text h2,
.contacts-layout h2,
.comments-layout h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
}

.calculator-layout h2 {
  font-size: clamp(25px, 3vw, 36px);
}

.specs-panel h2 {
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-strong);
  font-weight: 900;
  transition: color 180ms ease, transform 180ms ease;
}

.link-arrow i {
  transition: transform 180ms ease;
}

.link-arrow:hover {
  color: var(--primary);
}

.link-arrow:hover i {
  transform: translateX(4px);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery__main {
  content-visibility: visible;
  contain: none;
}

.comments-layout {
  overflow: visible;
}

.cards-grid,
.faq-grid,
.amenities-grid,
.news-list {
  overflow: visible;
  padding: 10px 0 18px;
  margin-top: -10px;
  margin-bottom: -18px;
}

.section.contact-request {
  overflow: visible;
  padding-top: 32px;
  padding-bottom: 72px;
  margin-top: 0;
  margin-bottom: 0;
}

.project-card,
.news-card,
.news-row,
.contacts-info,
.contact-form,
.comment-form,
.specs-panel,
.amenities-grid article,
.values-grid article,
.faq details,
.comment {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(25, 39, 32, 0.06);
}

.project-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-card__image,
.news-card__image,
.news-row__image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-soft);
}

.project-card__image {
  aspect-ratio: 4 / 3;
}

.project-card__image img,
.news-card__image img,
.news-row__image img,
.article__image img,
.project-hero__image img,
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover img,
.news-card:hover img,
.news-row:hover img {
  transform: scale(1.055);
}

.project-card img,
.news-card img,
.news-row img {
  transition: transform 360ms ease, filter 360ms ease;
}

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #1c1606;
  font-size: 12px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.project-card__body {
  padding: 20px;
  transition: transform 180ms ease;
}

.project-card h2,
.project-card h3,
.news-card h3,
.news-row h2,
.amenities-grid h3 {
  margin: 0 0 10px;
  line-height: 1.15;
  transition: color 180ms ease;
}

.project-card p,
.news-card p,
.news-row p,
.rich-text,
.contacts-info p,
.faq p,
.amenities-grid p {
  color: var(--muted);
}

.project-meta,
.chips,
.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-meta {
  margin: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.chips {
  margin-bottom: 18px;
}

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 55%, var(--text));
  font-size: 13px;
  font-weight: 900;
}

.chips--large span {
  min-height: 38px;
  padding-inline: 14px;
}

.calculator-band {
  width: 100%;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), transparent 42%),
    var(--surface-soft);
}

.section.calculator-band {
  padding: 52px 0;
}

.calculator-layout {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.calculator-layout--detail {
  grid-template-columns: 1fr;
}

.calculator-layout > div:first-child,
.calculator-layout--detail > div:first-child {
  max-width: 760px;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 20px 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  align-items: start;
}

.calculator__inputs,
.calculator__summary {
  display: grid;
  gap: 12px;
  align-content: start;
}

.calculator__inputs {
  padding-right: 8px;
}

.calculator__summary {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.calculator__summary > .button,
.calculator__summary > .calculator-actions {
  margin-top: 6px;
}

.calculator__summary > .button {
  width: 100%;
  justify-content: center;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input[readonly] {
  background: color-mix(in srgb, var(--bg) 82%, var(--surface));
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid--compact {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.calculator-field--full {
  display: grid;
}

.calculator-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  white-space: pre-line;
}

.result-box {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
}

.result-box span,
.result-row span {
  display: block;
  color: color-mix(in srgb, currentColor 70%, transparent);
}

.result-box strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

.result-row {
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  overflow: hidden;
}

.news-card__image {
  aspect-ratio: 16 / 10;
}

.news-card > div {
  padding: 16px;
  transition: transform 180ms ease;
}

.home-news .news-grid,
.home-news .news-grid.news-grid--centered,
.news-grid--home {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 250px));
  justify-content: center;
  gap: 16px;
}

.home-news .news-card__image {
  aspect-ratio: 16 / 7;
}

.home-news .news-card > div {
  padding: 12px;
}

.home-news .news-card h3 {
  font-size: 15px;
  line-height: 1.2;
}

.home-news .news-card p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.45;
}

.home-news time {
  margin-bottom: 6px;
  font-size: 12px;
}

time {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--coral);
  font-weight: 900;
  font-size: 14px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.faq details {
  padding: 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  padding: 56px max(16px, calc((100vw - 1180px) / 2)) 24px;
  background: #101411;
  color: #f4f5ef;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 8px 0;
  color: rgba(244, 245, 239, 0.78);
}

.site-footer p {
  color: rgba(244, 245, 239, 0.7);
}

.site-footer a:hover {
  color: #fff;
}

.brand--footer .brand__text,
.site-footer .brand__text {
  color: rgba(244, 245, 239, 0.75);
}

.site-footer .brand__mark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.site-footer .brand__mark img {
  filter: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-login {
  opacity: 0.38;
  font-size: 12px;
}

.footer-privacy {
  font-size: 14px;
}

.consent-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
}

.consent-check__text {
  line-height: 1.5;
}

.consent-check__text a {
  color: var(--primary-strong);
  font-weight: 800;
}

.contact-form > .button--primary,
.comment-form > .button--primary {
  margin-top: 10px;
  min-height: 54px;
  padding: 12px 22px;
  width: fit-content;
}

.legal-page {
  width: min(920px, calc(100vw - 32px));
}

.legal-page__intro,
.legal-page__body {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-page__body {
  margin-top: 18px;
}

.legal-section {
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card__header {
  margin-bottom: 18px;
}

.legal-card__header h2 {
  margin-bottom: 8px;
}

.legal-card__header p:last-child {
  color: var(--muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}

.legal-grid--dense {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.legal-grid div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.legal-grid--dense div {
  padding: 12px 14px;
}

.legal-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.legal-grid dd {
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}

.legal-grid--compact {
  margin-bottom: 16px;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(480px, calc(100vw - 24px));
  padding: 16px 18px;
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) + 2px);
  background: color-mix(in srgb, var(--surface) 90%, rgba(255, 255, 255, 0.1));
  box-shadow: 0 18px 40px rgba(12, 28, 21, 0.16);
  backdrop-filter: blur(18px) saturate(1.08);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  display: grid;
  gap: 4px;
}

.cookie-banner__text strong {
  font-size: 14px;
}

.cookie-banner__text p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--primary-strong);
  font-weight: 800;
}

.cookie-banner .button--small {
  min-width: 112px;
  padding-inline: 18px;
  flex: 0 0 auto;
}

.cookie-banner .button--small::after {
  content: none;
}

.page-hero {
  --page-hero-image: url("../img/hero-dsk.png");
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: 130px max(16px, calc((100vw - 1180px) / 2)) 58px;
  background:
    linear-gradient(90deg, rgba(7, 16, 12, 0.78), rgba(7, 16, 12, 0.2)),
    var(--page-hero-image) center/cover no-repeat;
  color: #fff;
}

.page-hero > div {
  max-width: 760px;
}

.page-hero p:last-child {
  max-width: 650px;
  font-size: 19px;
}

.page-hero--projects {
  --page-hero-image: url("../img/projects-hero.png");
  background:
    linear-gradient(90deg, rgba(7, 16, 12, 0.78), rgba(7, 16, 12, 0.18)),
    var(--page-hero-image) center/cover no-repeat;
}

.page-hero--news {
  --page-hero-image: url("../img/news-hero.png");
  background:
    linear-gradient(90deg, rgba(7, 16, 12, 0.78), rgba(7, 16, 12, 0.18)),
    var(--page-hero-image) center/cover no-repeat;
}

.page-hero--contacts .rich-text,
.page-hero--contacts .rich-text p {
  color: rgba(255, 255, 255, 0.92);
}

.project-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 74px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1fr);
  gap: 40px;
  align-items: center;
}

.project-hero__copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 19px;
}

.project-hero__image {
  height: min(540px, 58vw);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.specs-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.specs-panel dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.specs-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.specs-panel dt {
  color: var(--muted);
}

.specs-panel dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.rich-text {
  max-width: 860px;
}

.rich-text p:first-child {
  margin-top: 0;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  overflow: visible;
}

.gallery__tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  margin: -14px 0 -26px;
  padding: 14px 12px 26px 4px;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.gallery__tab {
  position: relative;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(18, 56, 44, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.gallery__tab:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 145, 103, 0.28);
  box-shadow: 0 12px 28px rgba(12, 36, 28, 0.12);
}

.gallery__tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), #0f5d47);
  color: #fff;
  box-shadow: 0 16px 36px rgba(12, 36, 28, 0.2);
}

[data-theme="dark"] .gallery__tab {
  border-color: rgba(255, 255, 255, 0.12);
  background: color-mix(in srgb, var(--surface) 84%, var(--primary) 16%);
  color: rgba(243, 245, 239, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .gallery__tab:hover {
  border-color: color-mix(in srgb, var(--primary-strong) 58%, rgba(255, 255, 255, 0.16));
  background: color-mix(in srgb, var(--surface) 72%, var(--primary) 28%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gallery__tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.gallery[data-reveal].is-visible {
  filter: none;
}

.gallery__main {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
  max-height: min(72vh, 760px);
  position: relative;
}

.gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at top, rgba(26, 145, 103, 0.08), transparent 52%),
    var(--surface-soft);
}

.gallery__empty[hidden],
.gallery__main img[hidden],
.gallery-thumb[hidden] {
  display: none !important;
}

.gallery__empty p {
  margin: 0;
  max-width: 320px;
  font-weight: 700;
  line-height: 1.5;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 580px;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  scrollbar-gutter: stable;
  padding: 2px;
}

.gallery__thumbs-wrap {
  position: relative;
  min-width: 0;
}

.gallery-thumb {
  display: block;
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 10;
}

.gallery__thumbs button {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.gallery__thumbs button:hover,
.gallery__thumbs button.is-active {
  border-color: var(--primary);
}

.gallery__thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__swipe-hint {
  display: none;
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.gallery__swipe-hint i {
  margin-right: 6px;
  color: var(--primary);
}

.project-hero__image.is-expandable-image,
.gallery__main.is-expandable-image {
  cursor: zoom-in;
  touch-action: manipulation;
}

.project-hero__image.is-expandable-image:focus-visible,
.gallery__main.is-expandable-image:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 48%, transparent);
  outline-offset: 4px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 16, 12, 0.84);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 1460px);
}

.image-lightbox__close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(16, 24, 20, 0.78);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.image-lightbox__close:hover {
  transform: translateY(-2px);
  background: rgba(8, 15, 12, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
}

.image-lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(16, 24, 20, 0.78);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.image-lightbox__nav:hover {
  transform: translateY(calc(-50% - 2px));
  background: rgba(8, 15, 12, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
}

.image-lightbox__nav:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

.image-lightbox__nav--prev {
  left: calc(env(safe-area-inset-left, 0px) + 16px);
}

.image-lightbox__nav--next {
  right: calc(env(safe-area-inset-right, 0px) + 16px);
}

.image-lightbox__image {
  display: block;
  width: auto;
  max-width: min(92vw, 1460px);
  max-height: calc(100dvh - 112px);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.image-lightbox__caption {
  margin: 0;
  max-width: min(92vw, 900px);
  text-align: center;
  color: rgba(244, 245, 239, 0.86);
  font-size: 14px;
  line-height: 1.5;
}

.visual-edit-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(960px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(14, 26, 22, 0.74);
  color: #fff;
  box-shadow: 0 18px 48px rgba(8, 24, 18, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.visual-edit-bar a,
.visual-edit-bar button,
.visual-actions a,
.visual-actions label,
.edit-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #12382c;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(3, 22, 15, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.visual-edit-bar a {
  background: #fff;
}

.visual-edit-bar form {
  margin: 0;
}

.visual-edit-bar button {
  background: rgba(255, 255, 255, 0.9);
}

.visual-edit-bar span {
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  white-space: nowrap;
}

.visual-actions {
  position: absolute;
  top: 18px;
  right: max(16px, calc((100vw - 1180px) / 2));
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.visual-actions--card {
  top: 10px;
  right: 10px;
  left: 10px;
}

.visual-actions input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.visual-actions a:hover,
.visual-actions label:hover,
.visual-edit-bar button:hover,
.visual-edit-bar a:hover,
.edit-float:hover {
  transform: translateY(-2px);
  background: var(--primary);
  color: #fff;
}

.editable-block {
  position: relative;
}

.is-visual-editing .editable-block:hover {
  outline: 2px dashed rgba(26, 145, 103, 0.36);
  outline-offset: 5px;
}

.edit-float {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  min-width: 36px;
  width: 36px;
  padding: 0;
}

.amenities-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.values-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  margin-top: 22px;
  padding-bottom: 72px;
}

.section--about-values {
  padding-top: 28px;
}

.section--about-values.values-grid {
  margin-top: 0;
}

.amenities-grid article,
.values-grid article {
  padding: 22px;
}

.amenities-grid i,
.values-grid i {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--primary);
}

.split-content,
.contacts-layout,
.comments-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.contacts-info,
.contact-form,
.comment-form {
  padding: 24px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
  margin-top: 0;
  padding-bottom: 34px;
}

.section.contact-cards {
  padding-top: 72px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(25, 39, 32, 0.06);
}

.contact-card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--primary);
}

.contact-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
}

.contact-card a {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-strong);
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-request {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 26px;
  padding-bottom: 78px;
  overflow: visible;
}

.contact-map {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(25, 39, 32, 0.06);
}

.contact-map iframe {
  display: block;
  border: 0;
}

.contacts-info p {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-section {
  width: var(--container);
  margin: 0 auto 88px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.map-section iframe {
  display: block;
  border: 0;
}

.news-list {
  display: grid;
  gap: 22px;
}

.news-list.news-list--centered {
  max-width: 980px;
  margin-inline: auto;
}

.news-row {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  padding: 14px;
  align-items: center;
}

.news-row__image {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
}

.article {
  width: var(--container);
  margin: 0 auto;
  padding: 52px 0 0;
}

.article__header {
  max-width: 900px;
}

.article__header time {
  margin-top: 12px;
}

.article__image {
  margin-top: 22px;
  aspect-ratio: 16 / 5.2;
  max-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article__body {
  margin-top: 26px;
  font-size: 17px;
}

.comments-section {
  padding-top: 40px;
}

.comments-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  overflow: visible;
  padding: 10px 0 18px;
  margin-bottom: -18px;
}

.comment {
  padding: 18px;
}

.comment time {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.form-note,
.form-status {
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    grid-column: 4;
    justify-self: end;
  }

  .main-nav {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px;
  }

  .header-actions {
    grid-column: 3;
    justify-self: end;
  }

  .cards-grid,
  .news-grid,
  .faq-grid,
  .home-news .news-grid,
  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-news .news-grid.news-grid--centered,
  .news-grid--home {
    grid-template-columns: repeat(2, minmax(220px, 250px));
  }

  .calculator-layout,
  .calculator-layout--detail,
  .project-hero,
  .project-detail-grid,
  .split-content,
  .contacts-layout,
  .contact-request,
  .comments-layout {
    grid-template-columns: 1fr;
  }

  .calculator {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .calculator__inputs {
    padding-right: 0;
  }

  .calculator__summary {
    padding-left: 0;
    border-left: 0;
  }

  .specs-panel {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 24px, 1180px);
  }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    padding-inline: 12px;
  }

  .brand {
    order: 1;
    flex: 0 0 auto;
  }

  .header-actions {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .menu-toggle {
    order: 3;
    flex: 0 0 auto;
  }

  main {
    padding-top: 88px;
  }

  .brand__text,
  .header-phone span {
    display: none;
  }

  .brand__mark {
    width: 52px;
    height: 52px;
  }

  .hero {
    min-height: 560px;
    padding-top: 0;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(9, 22, 17, 0.78), rgba(9, 22, 17, 0.6));
  }

  .hero h1,
  .page-hero h1,
  .project-hero h1 {
    font-size: 42px;
  }

  .article__header h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .section {
    padding: 50px 0;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .cards-grid,
  .news-grid,
  .home-news .news-grid,
  .faq-grid,
  .amenities-grid,
  .values-grid,
  .contact-cards,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .home-news .news-grid.news-grid--centered,
  .news-grid--home {
    grid-template-columns: 1fr;
  }

  .calculator {
    padding: 14px;
  }

  .calculator__inputs,
  .calculator__summary {
    gap: 10px;
  }

  .calculator-actions {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 360px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__tabs {
    gap: 8px;
  }

  .gallery__tab {
    flex: 1 1 calc(50% - 4px);
    min-height: 42px;
    justify-content: center;
  }

  .gallery__main {
    aspect-ratio: 16 / 10;
    max-height: 240px;
  }

  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox__close {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    width: 44px;
    height: 44px;
  }

  .image-lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .image-lightbox__nav--prev {
    left: calc(env(safe-area-inset-left, 0px) + 12px);
  }

  .image-lightbox__nav--next {
    right: calc(env(safe-area-inset-right, 0px) + 12px);
  }

  .image-lightbox__image {
    max-width: 100%;
    max-height: calc(100dvh - 88px);
    border-radius: 16px;
  }

  .image-lightbox__caption {
    max-width: 100%;
    font-size: 13px;
  }

  .gallery__thumbs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(104px, 34vw);
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-gutter: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--primary) 62%, transparent) color-mix(in srgb, var(--line) 56%, transparent);
  }

  .gallery-thumb {
    aspect-ratio: 16 / 10;
  }

  .gallery__thumbs button {
    scroll-snap-align: start;
  }

  .gallery__thumbs::-webkit-scrollbar {
    height: 6px;
  }

  .gallery__thumbs::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--line) 50%, transparent);
    border-radius: 999px;
  }

  .gallery__thumbs::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--primary) 62%, transparent);
    border-radius: 999px;
  }

  .gallery__thumbs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 18px;
    width: 26px;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(90deg, rgba(247, 246, 242, 0), rgba(247, 246, 242, 0.96));
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  [data-theme="dark"] .gallery__thumbs-wrap::after {
    background: linear-gradient(90deg, rgba(18, 21, 18, 0), rgba(18, 21, 18, 0.96));
  }

  .gallery.is-scrollable .gallery__thumbs-wrap::after {
    opacity: 1;
  }

  .gallery.is-scrolled-end .gallery__thumbs-wrap::after {
    opacity: 0;
  }

  .gallery.is-scrollable .gallery__swipe-hint {
    display: block;
  }

  .gallery.has-user-scrolled .gallery__swipe-hint {
    opacity: 0.72;
  }

  .news-row {
    grid-template-columns: 1fr;
  }

  .project-hero__image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .article__image {
    aspect-ratio: 16 / 10;
  }

  .visual-edit-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    flex-wrap: wrap;
    border-radius: 24px;
    transform: none;
  }

  .visual-edit-bar span {
    display: none;
  }

  .visual-actions {
    left: 12px;
    right: 12px;
    top: 12px;
    justify-content: flex-start;
  }

  .visual-actions a,
  .visual-actions label {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .footer-bottom {
    display: grid;
  }
}

/* Modern glass refresh */
.site-header,
.icon-button,
.message,
.calculator,
.project-card,
.news-card,
.news-row,
.contact-card,
.contact-form,
.comment-form,
.specs-panel,
.amenities-grid article,
.values-grid article,
.faq details,
.comment,
.pagination a,
.pagination span {
  background: linear-gradient(180deg, var(--glass-strong), color-mix(in srgb, var(--glass) 88%, var(--surface)));
  border-color: color-mix(in srgb, var(--line) 64%, var(--glass-border));
  box-shadow: 0 12px 34px rgba(25, 39, 32, 0.08), inset 0 1px 0 var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.18);
}

.site-header {
  box-shadow: 0 12px 36px rgba(25, 39, 32, 0.08);
  transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  min-height: 74px;
  padding-top: 13px;
  padding-bottom: 13px;
  background: color-mix(in srgb, var(--glass-strong) 92%, var(--surface));
  box-shadow: 0 16px 46px rgba(25, 39, 32, 0.13);
}

.main-nav {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.brand__mark {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: inset 0 1px 0 var(--glass-border), 0 12px 28px rgba(25, 39, 32, 0.1);
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--primary-strong);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(9, 22, 17, 0.84), rgba(9, 22, 17, 0.44) 48%, rgba(9, 22, 17, 0.08)),
    linear-gradient(180deg, transparent 58%, rgba(9, 22, 17, 0.34));
}

.hero__media {
  animation: heroDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__content {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero__stats {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(24px) saturate(1.22);
}

.hero__stats div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero__stats div::before,
.hero__stats div::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.hero__stats div::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  opacity: 1;
}

.hero__stats div::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
  opacity: 0;
}

.hero__stats div > * {
  position: relative;
  z-index: 1;
}

.hero__stats div:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 32px rgba(0, 0, 0, 0.16);
}

.hero__stats div:hover::before {
  opacity: 0;
}

.hero__stats div:hover::after {
  opacity: 1;
}

.button {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary,
.result-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 94%, #fff), var(--primary-strong));
  box-shadow: 0 14px 34px rgba(2, 43, 32, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button--primary {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.button--primary:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-strong) 92%, #fff), var(--primary-strong));
  box-shadow: 0 16px 34px rgba(2, 43, 32, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button--ghost,
.button--small {
  background: color-mix(in srgb, var(--glass) 58%, transparent);
  border-color: color-mix(in srgb, currentColor 24%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
}

.calculator-band {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), transparent 44%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 44%, transparent), transparent),
    var(--surface-soft);
}

input,
select,
textarea {
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  border-color: color-mix(in srgb, var(--line) 78%, var(--glass-border));
  box-shadow: inset 0 1px 0 var(--glass-border);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.project-card,
.news-card,
.contact-card,
.amenities-grid article,
.values-grid article {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card::before,
.news-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  z-index: 2;
  background: linear-gradient(90deg, var(--primary-strong), var(--primary), var(--accent));
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: left;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.project-card:hover::before,
.news-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.project-card:hover,
.news-card:hover,
.contact-card:hover,
.amenities-grid article:hover,
.values-grid article:hover {
  --lift: -7px;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  border-color: color-mix(in srgb, var(--primary) 28%, var(--glass-border));
  box-shadow: var(--shadow-hover);
}

.project-card:hover .project-card__body,
.news-card:hover > div {
  transform: translateY(-2px);
}

.project-card:hover h2,
.project-card:hover h3,
.news-card:hover h3,
.news-row:hover h2 {
  color: var(--primary-strong);
}

.project-card:hover .badge,
.news-card:hover .badge {
  transform: translateY(-2px);
  background: rgba(255, 246, 220, 0.96);
}

.project-card:hover img,
.news-card:hover img,
.news-row:hover img {
  filter: saturate(1.08) contrast(1.04);
}

.project-card__image::after,
.news-card__image::after,
.news-row__image::after,
.project-hero__image::after,
.article__image::after,
.gallery__main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.project-hero__image,
.article__image,
.gallery__main,
.news-row__image {
  position: relative;
}

.badge {
  background: rgba(255, 244, 211, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 10px 22px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

.chips span {
  background: color-mix(in srgb, var(--accent-soft) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 1px 0 var(--glass-border);
}

.contact-map,
.map-section {
  border-color: var(--glass-border);
  background: var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.12);
}

.gallery__main {
  border-color: var(--glass-border);
  background: var(--surface-soft);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-border);
  backdrop-filter: none;
}

.gallery__thumbs button {
  background: var(--glass);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery__thumbs button:hover {
  box-shadow: 0 12px 24px rgba(2, 43, 32, 0.12);
}

.gallery__thumbs button.is-active {
  box-shadow: 0 12px 24px rgba(2, 43, 32, 0.12);
}

.news-row {
  --lift: 0px;
  transform: translateY(var(--lift));
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.news-row:hover,
.faq details:hover,
.faq details[open],
.comment:hover {
  --lift: -5px;
  transform: translateY(var(--lift, -3px));
  border-color: color-mix(in srgb, var(--primary) 24%, var(--glass-border));
  box-shadow: var(--shadow-hover);
}

.contact-card__icon,
.amenities-grid i,
.values-grid i {
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 80%, transparent), color-mix(in srgb, var(--primary) 14%, transparent));
  box-shadow: inset 0 1px 0 var(--glass-border);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  filter: blur(4px);
  transition: opacity 640ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 640ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.2%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media {
    animation: none;
  }

  [data-reveal] {
    filter: none;
  }
}

@media (max-width: 1040px) {
  .main-nav {
    background: var(--glass-strong);
    backdrop-filter: blur(22px) saturate(1.18);
  }
}

@media (max-width: 720px) {
  .project-card,
  .news-card,
  .contact-card,
  .amenities-grid article,
  .values-grid article {
    transform: translateY(var(--lift));
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-grid--dense {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner .button {
    width: 100%;
    justify-content: center;
  }
}

/* Automatic light mode for weaker devices */
.performance-lite .site-header,
.performance-lite .hero__stats,
.performance-lite .button--ghost,
.performance-lite .button--small,
.performance-lite .project-card,
.performance-lite .news-card,
.performance-lite .news-row,
.performance-lite .contact-card,
.performance-lite .contact-form,
.performance-lite .comment-form,
.performance-lite .specs-panel,
.performance-lite .amenities-grid article,
.performance-lite .values-grid article,
.performance-lite .faq details,
.performance-lite .comment,
.performance-lite .gallery__main,
.performance-lite .contact-map,
.performance-lite .map-section,
.performance-lite .badge,
.performance-lite .visual-edit-bar {
  backdrop-filter: none !important;
}

.performance-lite .site-header,
.performance-lite .site-header.is-scrolled {
  background: var(--surface) !important;
}

.performance-lite .site-header,
.performance-lite .project-card,
.performance-lite .news-card,
.performance-lite .news-row,
.performance-lite .contact-card,
.performance-lite .contact-form,
.performance-lite .comment-form,
.performance-lite .specs-panel,
.performance-lite .amenities-grid article,
.performance-lite .values-grid article,
.performance-lite .faq details,
.performance-lite .comment,
.performance-lite .gallery__main,
.performance-lite .contact-map,
.performance-lite .map-section {
  box-shadow: 0 10px 24px rgba(25, 39, 32, 0.08), inset 0 1px 0 var(--glass-border);
}

.performance-lite .hero__media {
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

.performance-lite [data-reveal],
.performance-lite [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.performance-lite .project-card,
.performance-lite .news-card,
.performance-lite .contact-card,
.performance-lite .amenities-grid article,
.performance-lite .values-grid article {
  --lift: 0px;
  --rx: 0deg;
  --ry: 0deg;
  transform: none !important;
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease !important;
}

.performance-lite .project-card:hover,
.performance-lite .news-card:hover,
.performance-lite .contact-card:hover,
.performance-lite .amenities-grid article:hover,
.performance-lite .values-grid article:hover,
.performance-lite .news-row:hover,
.performance-lite .faq details:hover,
.performance-lite .faq details[open],
.performance-lite .comment:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 32px rgba(18, 38, 28, 0.14);
}

.performance-lite .project-card::before,
.performance-lite .news-card::before {
  opacity: 0.9;
  transform: scaleX(1);
}

.performance-lite .project-card:hover img,
.performance-lite .news-card:hover img,
.performance-lite .news-row:hover img {
  transform: scale(1.03);
  filter: none;
}
