:root {
  --radius: 0.85rem;
  --maxw: 1200px;
  --font-text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Poppins", system-ui, sans-serif;
  --accent: #4f7cff;
  --accent-soft: rgba(79, 124, 255, 0.13);
  --accent-glow: rgba(79, 124, 255, 0.35);
  --grad: linear-gradient(100deg, #4f7cff 0%, #6f8bff 45%, #9b6bff 100%);
}

[data-theme="dark"] {
  --bg-body: #0a0a10;
  --bg-glass: rgba(13, 13, 20, 0.72);
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-section: rgba(255, 255, 255, 0.025);
  --bg-elevated: #15151d;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.82);
  --muted: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.09);
  --border-glass: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(10, 10, 16, 0.82);
}

[data-theme="light"] {
  --bg-body: #eef3fd;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-card: rgba(255, 255, 255, 0.62);
  --bg-section: rgba(255, 255, 255, 0.5);
  --bg-elevated: #ffffff;
  --text-primary: #0f1733;
  --text-secondary: #2c3556;
  --muted: rgba(15, 23, 51, 0.55);
  --border: rgba(15, 23, 51, 0.1);
  --border-glass: rgba(15, 23, 51, 0.08);
  --nav-bg: rgba(238, 243, 253, 0.85);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }

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

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.32; }
[data-theme="light"] .bg-blob { opacity: 0.22; }
.bg-blob-1 { top: -15%; left: -8%; width: 60vw; height: 60vw;
  background: radial-gradient(circle at 35% 30%, #1b2a52 0%, transparent 70%); }
.bg-blob-2 { bottom: -20%; right: -10%; width: 55vw; height: 55vw;
  background: radial-gradient(circle at 60% 40%, #2a1b52 0%, transparent 70%); }

.container { width: min(var(--maxw), calc(100% - 2rem)); margin-inline: auto; }
.container-wide { width: min(1360px, calc(100% - 2rem)); margin-inline: auto; }

.overline {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.8rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.glass { background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: 1rem; backdrop-filter: blur(12px); }
.glass-strong { background: var(--bg-glass); border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border); border-radius: 1.1rem; padding: 1.25rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 12px 32px rgba(0,0,0,0.16);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
[data-theme="light"] .glass-card {
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 12px 30px rgba(31,52,120,0.1);
}
.glass-card:hover { border-color: rgba(79,124,255,0.5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 44px rgba(79,124,255,0.18); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.5rem; min-height: 44px; border-radius: var(--radius);
  font-family: var(--font-text); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; transition: all .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent-glow); }
.btn-primary { color: #fff; background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 6px 18px var(--accent-glow); animation: gradShift 6s ease infinite; }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(79,124,255,0.55); }
.btn-outline { border-color: rgba(79,124,255,0.45); background: transparent; color: var(--accent); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-lg { padding: 0.95rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; min-height: 38px; }

@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

section { position: relative; z-index: 1; padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; padding: 0.55rem 0;
  background: color-mix(in srgb, var(--nav-bg) 76%, transparent);
  border-bottom: 1px solid var(--border-glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: box-shadow .3s ease, background .3s ease;
}
.navbar.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.22); }
.navbar .container-wide { width: min(var(--maxw), calc(100% - 2rem)); margin-inline: auto;
  display: flex; align-items: center; justify-content: flex-start; gap: 1rem;
  padding: 0; border-radius: 0; background: transparent; border: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.navbar .brand { margin-right: auto; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head);
  font-weight: 700; color: var(--text-primary); font-size: 1.15rem; }
.brand-us { color: var(--accent); }
.brand-il { color: var(--text-primary); }

/* Подложка и кнопка закрытия мобильного меню */
.nav-backdrop { position: fixed; inset: 0; background: rgba(3,7,18,0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; z-index: 98; }
.nav-backdrop.show { opacity: 1; visibility: visible; }
.nav-close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px;
  display: none; align-items: center; justify-content: center; border: 1px solid var(--border-glass);
  background: var(--bg-card); color: var(--text-primary); border-radius: 0.8rem;
  font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.nav-close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }
.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-secondary); padding: 0.5rem 0.9rem; border-radius: 0.6rem;
  font-size: 0.95rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: var(--accent-soft); }
.nav-cta { margin-left: 0.4rem; }
.theme-toggle { width: 44px; height: 44px; border-radius: 0.7rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
  color: var(--accent); background: var(--bg-card); border: 1px solid var(--border-glass);
  transition: .2s; margin-left: 0.4rem; }
.theme-toggle:hover { background: var(--accent-soft); border-color: var(--accent); }
.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer; align-items: center; justify-content: center; margin-left: 0.4rem; }
.burger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: .3s; }

.hero { position: relative; z-index: 1; min-height: 100vh; display: flex;
  align-items: flex-end; padding-bottom: 8vh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,16,0.45) 0%, rgba(10,10,16,0.2) 40%, rgba(10,10,16,0.92) 100%); }
.hero-content { width: min(var(--maxw), calc(100% - 2rem)); margin-inline: auto; }
.hero-sub { color: #ffffff; max-width: 620px; font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500; line-height: 1.4; text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.14); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.24); border-color: #fff; }
.hero-meta { display: flex; gap: 2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-meta .metric { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: #fff; }
.hero-meta .caption { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.feature-card { overflow: hidden; }
.feature-card .thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: 0.8rem; margin-bottom: 1rem; }
.feature-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature-card:hover .thumb img { transform: scale(1.06); }
.feature-card h3 { font-size: 1.2rem; }
.feature-card p { font-size: 0.95rem; color: var(--muted); margin: 0; }

.houses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.house-card { cursor: pointer; overflow: hidden; padding: 0; position: relative; }
.house-card .cover { aspect-ratio: 4/3; overflow: hidden; }
.house-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.house-card:hover .cover img { transform: scale(1.07); }
.house-card .body { padding: 1.1rem 1.25rem 1.3rem; display: flex; align-items: center;
  justify-content: space-between; gap: 0.5rem; }
.house-card .body h3 { margin: 0; font-size: 1.15rem; color: var(--text-primary); }
.house-card .body .more { font-size: 0.85rem; color: var(--accent); white-space: nowrap; }
.house-card .badge { position: absolute; top: 0.9rem; left: 0.9rem; padding: 0.3rem 0.7rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--accent);
  color: #fff; border: 1px solid rgba(79,124,255,0.4); backdrop-filter: blur(8px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 1.8rem; position: relative; }
.price-card.featured { border-color: rgba(79,124,255,0.6);
  box-shadow: 0 0 0 1px rgba(79,124,255,0.4), 0 18px 50px rgba(79,124,255,0.2); }
.price-card .tag { position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 999px; letter-spacing: 0.05em; }
.price-card .name { font-family: var(--font-head); font-size: 1.2rem; color: var(--text-primary); margin-bottom: 0.3rem; }
.price-card .cost { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--text-primary); margin: 0.4rem 0; }
.price-card .cost small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.price-card ul li { padding: 0.45rem 0 0.45rem 1.4rem; position: relative; color: var(--text-secondary); font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .btn { margin-top: auto; }

.price-note { display: block; max-width: 720px; margin: 2rem auto 0; text-align: center;
  color: var(--text-secondary); font-size: 1.02rem; padding: 0.9rem 1.2rem; border-radius: 0.9rem;
  background: var(--accent-soft); border: 1px solid rgba(79,124,255,0.4); }
.price-note strong { color: var(--accent); }

.tours-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 2rem; }
.tours-card .tours-photo { flex: 0 1 300px; width: 100%; max-width: 320px; align-self: stretch;
  border-radius: 1rem; object-fit: cover; }
.tours-card .tours-text { flex: 1 1 320px; }
.tours-card .tours-text h3 { margin: 0 0 0.5rem; }
.tours-card .tours-text p { margin: 0 0 1rem; color: var(--muted); }

.reviews-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.reviews-frame { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.reviews-frame iframe { width: 100%; height: 560px; border: 0; display: block; }
.reviews-side h2 { font-size: 1.6rem; }
.reviews-side p { color: var(--muted); }
.reviews-rating { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0; }
.reviews-rating .score { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.reviews-rating .stars { color: #ffc24b; font-size: 1.2rem; }

.contacts-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: stretch; }
.contacts-map { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); min-height: 380px; }
.contacts-map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 380px; }
.contacts-info .row { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.contacts-info .row i { color: var(--accent); width: 22px; text-align: center; margin-top: 3px; }
.contacts-info .row .k { color: var(--muted); font-size: 0.85rem; }
.contacts-info .row .v { color: var(--text-primary); }
.socials { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.socials a { width: 44px; height: 44px; border-radius: 0.7rem; display: flex;
  align-items: center; justify-content: center; background: var(--bg-card);
  border: 1px solid var(--border); transition: .2s; }
.socials a:hover { border-color: var(--accent); background: var(--accent-soft); }
.socials a img { width: 22px; height: 22px; object-fit: contain; }

.cta-banner { text-align: center; padding: 3rem 1.5rem; border-radius: 1.4rem;
  position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: radial-gradient(circle at 50% 0%, rgba(79,124,255,0.25), transparent 60%); }
.cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-banner p { color: var(--muted); max-width: 520px; margin: 0.6rem auto 1.6rem; }

.footer { position: relative; z-index: 1; border-top: 1px solid var(--border);
  padding: 56px 0 28px; margin-top: 40px; background: var(--bg-glass); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-primary); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { color: var(--text-secondary); font-size: 0.92rem; }
.footer ul li a:hover { color: var(--accent); }
.footer .copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.85rem; text-align: center; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(5,5,9,0.92); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox .lb-close { position: absolute; top: 1.2rem; right: 1.6rem; font-size: 2.4rem;
  color: #fff; cursor: pointer; background: none; border: none; line-height: 1; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.4rem;
  color: #fff; cursor: pointer; background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: .2s; }
.lightbox .lb-nav:hover { background: var(--accent-soft); border-color: var(--accent); }
.lightbox .lb-prev { left: 1.5rem; } .lightbox .lb-next { right: 1.5rem; }
.lightbox .lb-count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-family: var(--font-head); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s ease both; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  html { scroll-behavior: auto; }
  .btn-primary { animation: none; }
}

@media (max-width: 960px) {
  .about-grid, .houses-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-wrap, .contacts-grid, .footer-grid { grid-template-columns: 1fr; }
  .reviews-frame iframe { height: 460px; }
}
@media (max-width: 768px) {
  .navbar { padding: 0.5rem 0; }
  .navbar .container-wide { width: calc(100% - 1.4rem); padding: 0; }
  .nav-links { position: fixed; top: 0; right: 0; height: 100dvh; width: min(82vw, 360px);
    flex-direction: column; align-items: stretch; gap: 0.35rem; padding: 5.5rem 1.4rem 2rem;
    background: linear-gradient(165deg, var(--bg-glass) 0%, rgba(79,124,255,0.10) 100%);
    border-left: 1px solid var(--border-glass);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    transform: translateX(110%); transition: transform .4s cubic-bezier(.4,0,.2,1);
    box-shadow: -24px 0 60px rgba(0,0,0,0.45); border-radius: 1.4rem 0 0 1.4rem; z-index: 99; }
  .nav-links.open { transform: translateX(0); }
  .nav-close { display: flex; }
  .nav-links li { opacity: 0; transform: translateX(26px); transition: opacity .35s ease, transform .35s ease; }
  .nav-links.open li { opacity: 1; transform: none; }
  .nav-links.open li:nth-child(2) { transition-delay: .06s; }
  .nav-links.open li:nth-child(3) { transition-delay: .10s; }
  .nav-links.open li:nth-child(4) { transition-delay: .14s; }
  .nav-links.open li:nth-child(5) { transition-delay: .18s; }
  .nav-links.open li:nth-child(6) { transition-delay: .22s; }
  .nav-links.open li:nth-child(7) { transition-delay: .26s; }
  .nav-links.open li:nth-child(8) { transition-delay: .30s; }
  .nav-links a { padding: 0.9rem 1rem; font-size: 1.15rem; border-radius: 0.8rem;
    transition: background .2s, color .2s; }
  .nav-links a:hover { background: rgba(79,124,255,0.14); color: var(--accent); }
  .nav-links li.nav-cta { margin: 1.1rem 0 0; transition-delay: .34s !important; }
  .nav-cta .btn { width: 100%; }
  .burger { display: flex; }
  .section-head { margin-bottom: 32px; }
  section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .about-grid, .houses-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .tours-card { flex-direction: column; align-items: stretch; }
  .tours-card .tours-photo { max-width: none; }
  .tours-card .btn { width: 100%; }
  body { font-size: 16px; }
}
