/* Batumi Lux Home — основные стили */

:root {
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-text: #1a1d26;
  --color-text-muted: #5c6370;
  --color-accent: #0d7a5f;
  --color-accent-hover: #0a634d;
  --color-accent-light: #e8f5f1;
  --color-border: #e2e6ed;
  --color-shadow: rgba(26, 29, 38, 0.08);
  --color-shadow-hover: rgba(26, 29, 38, 0.14);
  --color-error: #c0392b;
  --color-whatsapp: #25d366;
  --font-main: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --header-height: 72px;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ——— Шапка ——— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  overflow: visible;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s ease, background 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}

body.page-home .site-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

body.inner-page .site-header {
  background: rgba(18, 21, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

body.inner-page {
  padding-top: var(--header-height);
}

.header-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-accent {
  color: var(--color-accent);
}

.logo-light {
  color: var(--color-text);
}

body.page-home .logo-light {
  color: #fff;
}

body.page-home .main-nav a {
  color: rgba(255, 255, 255, 0.88);
}

body.page-home .main-nav a:hover,
body.page-home .main-nav a.active {
  color: #fff;
  border-bottom-color: var(--color-accent);
}

body.page-home .nav-toggle span {
  background: #fff;
}

body.inner-page .logo-light {
  color: #fff;
}

body.inner-page .main-nav a {
  color: rgba(255, 255, 255, 0.78);
}

body.inner-page .main-nav a:hover,
body.inner-page .main-nav a.active {
  color: #fff;
  border-bottom-color: var(--color-accent);
}

body.inner-page .nav-toggle span {
  background: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
}

.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-btn::after {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.lang-btn[data-lang="ru"]::after {
  content: "RU";
}

.lang-btn[data-lang="en"]::after {
  content: "EN";
}

.lang-btn[data-lang="ka"]::after {
  content: "GE";
}

.lang-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.lang-btn:hover:not(.is-active)::after {
  color: rgba(255, 255, 255, 0.95);
}

.lang-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: none;
}

.lang-btn.is-active::after {
  color: #fff;
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}

body:not(.page-home):not(.inner-page) .site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px var(--color-shadow);
}

@media (max-width: 992px) {
  :root {
    --header-height: 64px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(18, 21, 28, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .main-nav.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 16px 24px 12px;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.9);
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 3;
  }

  .header-inner {
    flex-wrap: nowrap;
    position: relative;
    padding: 0 12px;
    gap: 8px;
    overflow: visible;
  }

  .site-header.is-nav-open {
    overflow: visible;
  }

  .logo {
    font-size: 1.05rem;
    min-width: 0;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .lang-switcher {
    order: 0;
    flex-shrink: 0;
    gap: 3px;
    padding: 2px;
  }

  .lang-switcher--desktop .lang-btn,
  .header-inner > .lang-switcher .lang-btn {
    width: 36px;
    height: 28px;
  }

  .lang-switcher--desktop .lang-btn::after,
  .header-inner > .lang-switcher .lang-btn::after {
    font-size: 0.64rem;
  }

  .lang-switcher--desktop {
    display: none;
  }

  .lang-switcher--mobile {
    display: none;
    justify-content: center;
    width: calc(100% - 48px);
    max-width: 200px;
    margin: 12px auto 16px;
    padding: 3px;
    gap: 4px;
    border-top: none;
    background: rgba(0, 0, 0, 0.28);
  }

  .lang-switcher--mobile .lang-btn {
    flex: 1;
    width: auto;
    min-width: 0;
    max-width: 56px;
    height: 30px;
  }

  .main-nav.is-open .lang-switcher--mobile {
    display: inline-flex;
  }
}

@media (min-width: 993px) {
  .lang-switcher--mobile {
    display: none !important;
  }
}

/* ——— Страницы: О нас, Реквизиты, Сотрудничество ——— */

.about-hero {
  text-align: center;
  margin-bottom: 40px;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 16px;
}

.about-hero-line {
  width: 64px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.about-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 44px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--color-shadow);
  border-left: 4px solid var(--color-accent);
}

.about-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.requisites-page-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--color-shadow);
}

.requisites-page-card h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 8px;
}

.requisites-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

.req-map-link {
  display: block;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  max-width: 320px;
}

.req-map-link:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px var(--color-shadow);
}

.req-map-embed {
  width: 100%;
  height: 140px;
  border: 0;
  display: block;
  pointer-events: none;
}

.req-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.req-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.req-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.req-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.req-row:last-child {
  margin-bottom: 0;
}

.req-row strong {
  color: var(--color-text);
  font-weight: 600;
}

.req-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.req-icon svg {
  width: 18px;
  height: 18px;
}

.req-row a {
  color: var(--color-accent);
  transition: opacity var(--transition);
}

.req-row a:hover {
  opacity: 0.8;
}

.coop-intro-card {
  max-width: 780px;
  margin: 0 auto 40px;
  padding: 36px 40px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--color-shadow);
  border-left: 4px solid var(--color-accent);
}

.coop-intro-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.coop-form-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 40px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--color-shadow);
}

.coop-form-card h2 {
  font-size: 1.35rem;
  margin-bottom: 24px;
}

.coop-form-card textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  resize: vertical;
}

.coop-form-card textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

@media (max-width: 768px) {
  .about-card,
  .requisites-page-card,
  .coop-intro-card,
  .coop-form-card {
    padding: 28px 24px;
  }
}

/* ——— Основной контент ——— */

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text);
}

.page-text {
  color: var(--color-text-muted);
  max-width: 720px;
}

.page-text p + p {
  margin-top: 16px;
}

/* ——— Главная: premium landing ——— */

.page-home {
  overflow-x: hidden;
}

.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  background-color: #141820;
  background-image: url("images/main-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(248, 249, 251, 0) 0%,
    rgba(248, 249, 251, 0.85) 55%,
    var(--color-bg) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 920px;
  padding: 56px 24px 80px;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2em 0.35em;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title-accent {
  color: var(--color-accent);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.95);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-title-light {
  color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 680px;
  margin: 0 auto;
}

.hero-glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    background 0.35s ease, border-color 0.35s ease;
}

.hero-glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.hero-glass-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-glass-icon svg {
  width: 26px;
  height: 26px;
}

.hero-glass-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-glass-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

/* Светлая часть главной */

.home-light {
  position: relative;
  margin-top: -48px;
  z-index: 4;
  background: var(--color-bg);
}

.home-requisites {
  padding: 24px 24px 16px;
}

.home-requisites-link {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.home-requisites-inner {
  padding: 36px 40px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--color-shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-requisites-link:hover .home-requisites-inner,
.home-requisites-link:focus-visible .home-requisites-inner {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px var(--color-shadow);
}

.home-requisites-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.home-requisites-inner p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.benefits-section {
  padding: 56px 24px 72px;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-text);
}

.section-lead {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.benefit-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 24px var(--color-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px var(--color-shadow-hover);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 4px 20px var(--color-shadow);
  color: var(--color-accent);
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.benefit-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.home-cta {
  text-align: center;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-home {
    min-height: calc(100svh - var(--header-height));
  }

  .hero-content {
    padding: 44px 20px 72px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-glass-card {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .hero-title-accent {
    -webkit-text-stroke-width: 1.5px;
  }

  .home-requisites-inner {
    padding: 28px 24px;
  }

  .benefits-section {
    padding: 40px 20px 56px;
  }
}

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    transform: scale(1.1) !important;
  }

  .hero-glass-card,
  .benefit-card {
    transition: none;
  }
}

/* ——— Карточки категорий ——— */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.category-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--color-shadow-hover);
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-border);
}

.category-card-body {
  padding: 20px;
  text-align: center;
}

.category-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-card .price-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* ——— Блоки контента ——— */

.content-block {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 20px var(--color-shadow);
  margin-bottom: 40px;
}

.content-block h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.content-block p {
  color: var(--color-text-muted);
}

.cta-section {
  text-align: center;
  padding: 24px 0 16px;
}

/* ——— Кнопки ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 122, 95, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent-light);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ——— Сетка объектов ——— */

.objects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.object-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--color-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}

.object-card:hover {
  box-shadow: 0 8px 28px var(--color-shadow-hover);
}

.card-gallery {
  position: relative;
  touch-action: pan-y;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-border);
  overflow: hidden;
}

.card-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity var(--transition);
}

.object-card:hover .card-gallery-nav,
.card-gallery:focus-within .card-gallery-nav {
  opacity: 1;
}

.card-gallery-prev {
  left: 8px;
}

.card-gallery-next {
  right: 8px;
}

.card-gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.card-gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.card-gallery-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.object-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.object-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.object-card .object-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.object-card .object-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.object-card .btn {
  align-self: flex-start;
}

.object-card.is-clickable {
  cursor: pointer;
}

.object-card.is-hidden {
  display: none;
}

.object-type-badge {
  display: inline-block;
  max-width: 100%;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: flex-start;
}

.object-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* ——— Каталог объектов ——— */

.container-catalog {
  max-width: 1280px;
}

.catalog-intro {
  margin-bottom: 32px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.filters-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 24px var(--color-shadow);
}

.filters-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.filters-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.filters-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-radio.is-hidden,
.filter-radio[hidden],
.btn-advanced-toggle.is-hidden,
.btn-advanced-toggle[hidden] {
  display: none;
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 6px 0;
  transition: color var(--transition);
}

.filter-radio:hover {
  color: var(--color-accent);
}

.filter-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.filters-price {
  margin-bottom: 24px;
  padding-top: 4px;
}

.filters-price-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.dual-range {
  position: relative;
  height: 28px;
  margin-top: 4px;
}

.dual-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  margin-top: -3px;
  background: var(--color-border);
  border-radius: 4px;
}

.dual-range-fill {
  position: absolute;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  background: var(--color-accent);
  border-radius: 4px;
  pointer-events: none;
}

.dual-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.dual-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(13, 122, 95, 0.4);
  cursor: pointer;
  pointer-events: auto;
}

.dual-range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  pointer-events: auto;
}

.dual-range-input--max {
  z-index: 2;
}

.btn-advanced-toggle {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filters-advanced {
  margin-bottom: 16px;
  padding-top: 4px;
}

.filters-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.filter-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.deal-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding: 6px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 18px var(--color-shadow);
}

.deal-tab {
  min-width: 120px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.deal-tab:hover {
  background: #f3f6f9;
  color: var(--color-accent);
}

.deal-tab.is-active {
  background: var(--color-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 122, 95, 0.28);
}

.btn-reset-filters {
  width: 100%;
}

.catalog-results {
  min-width: 0;
}

.objects-empty {
  text-align: center;
  padding: 48px 24px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--color-shadow);
}

.catalog-results .objects-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ——— Модальное окно объекта ——— */

.modal-overlay--detail {
  z-index: 210;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.modal-overlay--detail .modal.modal-detail {
  max-width: min(1100px, calc(100vw - 40px));
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.modal-detail .modal-close {
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  top: 12px;
  right: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr);
  width: 100%;
  overflow: hidden;
  max-height: calc(100vh - 40px);
}

.detail-gallery {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.detail-gallery-main {
  position: relative;
  touch-action: pan-y;
  flex: 1;
  min-height: 280px;
  max-height: 52vh;
}

.detail-gallery-main img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 52vh;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.gallery-nav--prev {
  left: 12px;
}

.gallery-nav--next {
  right: 12px;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-thumb {
  flex: 0 0 72px;
  height: 54px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--color-border);
}

.detail-thumb.is-active {
  border-color: var(--color-accent);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  padding: 28px 32px 32px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 40px);
  min-width: 0;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-type,
.detail-deal {
  display: inline-block;
  max-width: 100%;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-overlay--detail .modal-detail h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  margin-bottom: 8px;
  padding-right: 40px;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.detail-meta {
  list-style: none;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.detail-meta li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 4px 0;
}

.detail-meta strong {
  color: var(--color-text);
  font-weight: 600;
}

.detail-section-title,
.detail-summary-title,
.detail-features-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-section-title[hidden],
.detail-desc[hidden],
.detail-details[hidden] {
  display: none;
}

.detail-desc,
.detail-details {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  white-space: pre-line;
}

.detail-summary,
.detail-features {
  list-style: none;
  margin-bottom: 24px;
}

.detail-summary li,
.detail-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.detail-summary li::before,
.detail-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.detail-summary li strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .filters-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .modal-overlay--detail {
    padding: 10px;
    align-items: stretch;
  }

  .modal-overlay--detail .modal.modal-detail {
    max-width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: var(--radius);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .detail-gallery-main {
    min-height: 200px;
    max-height: 36vh;
  }

  .detail-gallery-main img {
    min-height: 200px;
    max-height: 36vh;
  }

  .detail-content {
    max-height: none;
    padding: 20px;
  }

  .object-card:hover .card-gallery-nav {
    opacity: 1;
  }

  .deal-tab {
    min-width: 0;
    flex: 1 1 50%;
    padding: 11px 14px;
    font-size: 0.88rem;
    text-align: center;
  }

  .deal-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
  }
}

/* ——— Подвал (premium) ——— */

.site-footer {
  --footer-bg: #12151c;
  --footer-bg-deep: #0c0e14;
  --footer-text: #f4f6f9;
  --footer-muted: #9aa3b2;
  --footer-line: rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-main {
  background: linear-gradient(165deg, var(--footer-bg) 0%, var(--footer-bg-deep) 100%);
  padding: 72px 24px 56px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px 32px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--footer-text);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-brand .footer-col-title {
  font-size: 1.2rem;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--footer-muted);
  margin-bottom: 28px;
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--footer-text);
  border: 1px solid var(--footer-line);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13, 122, 95, 0.35);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--footer-muted);
  margin-bottom: 20px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list li {
  font-size: 0.88rem;
  color: var(--footer-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.footer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.7;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--footer-muted);
  transition: color var(--transition);
}

.footer-contact-item:hover {
  color: var(--footer-text);
}

.footer-contact-item a {
  color: inherit;
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-contact-item--phones {
  align-items: flex-start;
}

.footer-schedule {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.45;
}

.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.footer-phone-link {
  display: block;
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--footer-muted);
  transition: color var(--transition);
}

.footer-phone-link:hover {
  color: var(--color-accent);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-accent);
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
}

.footer-col-location {
  min-width: 0;
}

.footer-address-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--footer-text);
  margin-bottom: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer-address-link:hover {
  color: var(--color-accent);
}

.footer-map-link {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--footer-line);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.footer-map-link:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(13, 122, 95, 0.25);
}

.footer-map-embed {
  display: block;
  width: 100%;
  height: 120px;
  border: 0;
  pointer-events: none;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.95rem;
  color: var(--footer-muted);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-nav a:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

.footer-bottom {
  background: var(--footer-bg-deep);
  padding: 24px;
  border-top: 1px solid var(--footer-line);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--footer-muted);
  margin: 0;
}

.footer-bottom-credit {
  color: var(--footer-muted);
  opacity: 0.85;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .footer-main {
    padding: 56px 24px 44px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-main {
    padding: 48px 20px 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ——— Плавающая кнопка заявки ——— */

.fab-request {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  background: var(--color-whatsapp);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab-request:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

.fab-request svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.fab-request .fab-text {
  max-width: 140px;
  line-height: 1.2;
  text-align: left;
}

/* ——— Модальное окно ——— */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 29, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(26, 29, 38, 0.2);
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.is-open .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.modal h2 {
  font-size: 1.35rem;
  margin-bottom: 24px;
  padding-right: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-group input.error {
  border-color: var(--color-error);
}

.form-error {
  font-size: 0.85rem;
  color: var(--color-error);
  margin-top: 6px;
  min-height: 1.2em;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message.success {
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
}

.form-message.error {
  background: #fdecea;
  color: var(--color-error);
}

.modal .btn-primary {
  width: 100%;
  margin-top: 8px;
}

.modal .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ——— Адаптивность ——— */

@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fab-request .fab-text {
    display: none;
  }

  .fab-request {
    padding: 14px;
    border-radius: 50%;
    left: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 32px 16px 48px;
  }

  .content-block {
    padding: 24px 20px;
  }

  .hero-content {
    padding: 32px 16px 40px;
  }
}
