/*
Theme Name: Аристокарат
Theme URI: https://aristokarat.ru
Author: Аристокарат
Author URI: https://aristokarat.ru
Описание: Custom WordPress theme for Аристокарат real estate agency. Dark luxury design with gold and malachite accents, WooCommerce property catalog with advanced filters.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aristos-theme
Метки: e-commerce, custom-menu, featured-images, theme-options, translation-ready
*/

/* ========================================================================== 
   CSS Reset & Base
   ========================================================================== */


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Gold palette */
  --gold: #d3b95e;
  --gold-light: #dac4aa;
  --gold-medium: #bf9e77;
  --gold-dark: #a87a45;
  --gold-hover: #e0a06a;

  /* Malachite palette */
  --malachite: #0b8f5a;
  --malachite-light: #2cc77f;
  --malachite-dark: #0a7a4e;
  --malachite-deep: #076b3e;
  --malachite-soft: rgba(11, 143, 90, 0.12);

  /* Dark palette */
  --bg-dark: #11201a;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-section: #151515;
  --bg-input: #1e1e1e;

  /* Text */
  --text-primary: #f5f0e8;
  --text-secondary: #a09888;
  --text-muted: #6b6358;

  /* Borders */
  --border-color: #2a2a2a;
  --border-gold: rgba(211, 185, 94, 0.3);
  --border-malachite: rgba(36, 200, 130, 0.35);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 20px rgba(211, 185, 94, 0.15);
  --shadow-malachite: 0 10px 30px rgba(11, 143, 90, 0.24);

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --border-radius: 4px;
  --transition: 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--gold-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Container
   ========================================================================== */

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

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

/* ==========================================================================
   Header / Nav Bar
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 1000;
  max-width: none;
  margin: 0;
  padding: 22px 30px 15px;
  background: #000000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: 1540px;
  height: 94px;
  margin: 0 auto;
  padding: 0 48px;
  background: #0d2117;
  border-radius: 5px;
}

.site-logo img {
  height: 60px;
  width: auto;
}

.site-logo {
  flex-shrink: 0;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav .menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav .menu li {
  position: relative;
}

.main-nav .menu li a {
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  padding: 0;
  transition: color var(--transition);
  white-space: nowrap;
}

.main-nav .menu li a:hover,
.main-nav .menu li.current-menu-item a,
.main-nav .menu li.current_page_item a {
  color: #f0f0f0;
}

/* Dropdown menus */
.main-nav .menu li .sub-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 220px;
  background: #0d0e17;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--gold);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.main-nav .menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .menu li .sub-menu li a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
}

.main-nav .menu li .sub-menu li a:hover {
   background: rgba(211, 185, 94, 0.1);
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.header-address svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (max-width: 1550px) {
  .header-address {
    display: none;
  }

  .header-inner {
    gap: 20px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .main-nav .menu {
    gap: 26px;
  }
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(90deg, #d3b95e 0%, rgba(211, 185, 94, 0) 100%) border-box;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-phone:hover {
  color: #f0f0f0;
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(90deg, #d3b95e 0%, rgba(211, 185, 94, 0.4) 100%) border-box;
}

.header-phone svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-social a {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: #d3b95e;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(90deg, #d3b95e 0%, rgba(211, 185, 94, 0) 100%) border-box;
}

.header-social a:hover {
  color: #f0f0f0;
}

.header-social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-social a:last-child svg {
  fill: currentColor;
  stroke: none;
}

/* Mobile burger */
.mobile-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.mobile-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #d3b95e;
  transition: all var(--transition);
}

.mobile-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-burger.active span:nth-child(2) {
  opacity: 0;
}

.mobile-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 14, 23, 0.98);
  z-index: 999;
  padding: 100px 30px 30px;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu .menu li a {
  display: block;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(211, 185, 94, 0.15);
  text-transform: none;
  letter-spacing: 0;
}

.mobile-menu .menu li a:hover {
  color: #db9641;
}

.mobile-menu .menu li .sub-menu {
  padding-left: 16px;
}

.mobile-menu .menu li .sub-menu li a {
  font-size: 0.9rem;
  text-transform: none;
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-social {
    display: none;
  }

  .mobile-burger {
    display: flex;
  }

  .header-inner {
    padding: 0 20px;
  }

  .site-logo img,
  .site-logo .custom-logo {
    max-height: 40px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0 16px;
    padding-top: 20px;
  }

  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu {
    padding: 80px 20px 20px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  padding: 0 30px 0;
  background: #000;
}

.hero-shell {
  display: flex;
  gap: 0;
  max-width: 1540px;
  margin: 0 auto;
  min-height: 600px;
  overflow: hidden;
  border-radius: 5px;
}

/* Left content panel */
.hero-left {
  position: relative;
  flex: 0 0 48.8%;
  min-width: 0;
  padding: 62px 50px 68px 53px;
  background: #0d2117;
  border-radius: 5px 0 0 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  right: -18px;
  bottom: -118px;
  width: min(58vw, 620px);
  height: min(58vw, 620px);
  background: url('assets/images/logo/hero-a.png') center / contain no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.hero-left > * {
  position: relative;
  z-index: 1;
}

.hero-dot {
  display: none;
}

.hero-title {
  margin: 0 0 22px;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-title-gold-bold {
  display: block;
  font-weight: 700;
  color: #d3b95e;
}

.hero-title-white {
  display: block;
  font-weight: 600;
  color: #f0f0f0;
}

.hero-title-gold {
  display: block;
  font-weight: 700;
  color: #d3b95e;
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 0 34px;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
  color: #f0f0f0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 248px;
  min-height: 40px;
  justify-content: center;
  padding: 0 22px;
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(90deg, #d3b95e 0%, rgba(211, 185, 94, 0) 100%) border-box;
  border: 1px solid transparent;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
}

.hero-cta:hover {
  background:
    linear-gradient(rgba(211, 185, 94, 0.08), rgba(211, 185, 94, 0.08)) padding-box,
    linear-gradient(90deg, #d3b95e 0%, rgba(211, 185, 94, 0.4) 100%) border-box;
  color: #f0f0f0;
}

.hero-cta svg {
  flex-shrink: 0;
}

.hero-secondary-link {
  color: #f0f0f0;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition);
}

.hero-secondary-link:hover {
  color: #d3b95e;
}

/* Right image panel */
.hero-right {
  flex: 0 0 51.2%;
  min-width: 0;
  min-height: 600px;
  overflow: hidden;
  background: #0d0e17 url('assets/images/hero-desktop.png') right center / auto 100% no-repeat;
  border-radius: 0 5px 5px 0;
}

.hero-marquee {
  padding: 18px 0 50px;
  background: #000;
  overflow: hidden;
}

.hero-marquee__mask {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.hero-marquee__track {
  display: flex;
  width: max-content;
  gap: 34px;
  animation: aristos-marquee-left-to-right 72s linear infinite;
  transform: translateX(-45%);
}

.hero-marquee__track span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, rgba(211, 185, 94, 0.3), rgba(211, 185, 94, 0.03));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(211, 185, 94, 0.18);
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(5.6rem, 10.8vw, 12.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes aristos-marquee-left-to-right {
  from {
    transform: translateX(-45%);
  }
  to {
    transform: translateX(0);
  }
}

/* ---- Responsive ---- */

@media (max-width: 1200px) {
  .hero-shell {
    min-height: auto;
  }

  .hero-left {
    flex: 1 1 0;
  }

  .hero-right {
    flex: 1 1 0;
  }

  .hero-right {
    min-height: 480px;
  }
}

@media (max-width: 900px) {
  .hero-shell {
    flex-direction: column;
    gap: 16px;
  }

  .hero-left {
    flex: none;
    padding: 40px 32px;
  }

  .hero-right {
    flex: none;
  }

  .hero-right {
    min-height: 360px;
    max-height: 420px;
    background-size: auto 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 0 16px;
  }

  .hero-marquee {
    padding: 16px 0 34px;
  }

  .hero-left {
    padding: 32px 24px;
  }

  .hero-title {
    font-size: 30px;
    line-height: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 24px;
  }

  .hero-cta {
    font-size: 16px;
    padding: 10px 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--malachite);
  color: #fff;
}

.btn-primary:hover {
  background: var(--malachite-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-malachite);
}

.btn-outline {
  background: transparent;
  color: var(--malachite);
  border: 1px solid var(--malachite);
}

.btn-outline:hover {
  background: var(--malachite);
  color: #fff;
}

.btn-malachite {
  background: var(--malachite);
  color: #fff;
}

.btn-malachite:hover {
  background: var(--malachite-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--malachite);
  margin: 12px auto 0;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Услуги / Services Showcase
   ========================================================================== */

.services-showcase {
  padding: 58px 30px 52px;
  background: #000000;
  color: #d3b95e;
}

.services-showcase__inner {
  max-width: 1540px;
  margin: 0 auto;
}

.services-showcase__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.services-showcase__title {
  margin: 0;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.services-showcase__title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  background: #d3b95e;
  vertical-align: middle;
}

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

.services-showcase__card {
  position: relative;
  display: flex;
  min-height: 270px;
  overflow: hidden;
  align-items: flex-start;
  padding: 26px 240px 24px 24px;
  border: 1px solid rgba(211, 185, 94, 0.42);
  border-radius: 3px;
  background-color: #0d2117;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #f0f0f0;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.services-showcase__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 33, 23, 0.96) 0%, rgba(13, 33, 23, 0.9) 34%, rgba(13, 33, 23, 0.5) 64%, rgba(13, 33, 23, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18));
}

.services-showcase__card:hover {
  transform: translateY(-3px);
  border-color: rgba(211, 185, 94, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.services-showcase__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  max-width: 330px;
}


.services-showcase__content strong {
  display: block;
  margin-bottom: 12px;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: clamp(18px, 1.18vw, 24px);
  font-weight: 800;
  line-height: 1.12;
}

.services-showcase__content em {
  display: block;
  color: rgba(240, 240, 240, 0.9);
  font-family: 'Rubik', sans-serif;
  font-size: clamp(11px, 0.72vw, 14px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.28;
}

.services-showcase__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(rgba(13, 33, 23, 0.86), rgba(13, 33, 23, 0.86)) padding-box,
    linear-gradient(135deg, rgba(211, 185, 94, 0.24), #d3b95e) border-box;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.services-showcase__card:hover .services-showcase__more {
  background:
    linear-gradient(rgba(211, 185, 94, 0.12), rgba(211, 185, 94, 0.12)) padding-box,
    linear-gradient(135deg, #d3b95e, rgba(211, 185, 94, 0.36)) border-box;
  color: #f0f0f0;
  transform: translateX(3px);
}

.services-showcase__card--buy-sale {
  background-image: url('assets/images/service-cards/service-buy-sale.png');
}

.services-showcase__card--mortgage {
  background-image: url('assets/images/service-cards/service-mortgage.png');
}

.services-showcase__card--rent {
  background-image: url('assets/images/service-cards/service-rent.png');
}

.services-showcase__card--build {
  background-image: url('assets/images/service-cards/service-build.png');
}

.services-showcase__card--deal {
  background-image: url('assets/images/service-cards/service-deal.png');
}

.services-showcase__card--investment {
  background-image: url('assets/images/service-cards/service-investment.png');
}

@media (max-width: 1024px) {
  .services-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-showcase__card {
    padding-right: 180px;
  }
}

@media (max-width: 640px) {
  .services-showcase {
    padding: 42px 16px;
  }

  .services-showcase__grid {
    grid-template-columns: 1fr;
  }

  .services-showcase__card {
    min-height: 246px;
    padding: 22px 120px 22px 20px;
    background-position: center right;
  }

  .services-showcase__content {
    min-height: 202px;
  }
}

.property-strip {
  padding: 38px 30px 48px;
  background: #000000;
}

.property-strip__inner {
  max-width: 1540px;
  margin: 0 auto;
  padding: 20px 20px 26px;
  background: #0d2117;
  border: 1px solid rgba(211, 185, 94, 0.1);
}

.property-strip + .property-strip {
  padding-top: 18px;
}

.property-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.property-strip__header h2 {
  margin: 0;
  color: #f0f0f0;
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
}

.property-strip__header h2::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: #d3b95e;
  vertical-align: middle;
}

.property-strip__header a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(90deg, rgba(211, 185, 94, 0) 0%, #d3b95e 100%) border-box;
  color: #d3b95e;
  font-size: 12px;
  font-weight: 700;
}

.property-strip__scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(315px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.property-strip__scroller::-webkit-scrollbar {
  display: none;
}

.property-strip__scroller > * {
  scroll-snap-align: start;
}

.property-strip__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 12px 0 0;
}

.property-strip__progress {
  position: relative;
  flex: 1;
  height: 6px;
  overflow: hidden;
  background: rgba(211, 185, 94, 0.14);
  border-radius: 999px;
}

.property-strip__progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(211, 185, 94, 0.35), #d3b95e);
  transform: translateX(0);
  transition: width 0.35s ease, transform 0.35s ease;
}

.property-strip__arrows {
  display: inline-flex;
  gap: 8px;
}

.property-strip__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(135deg, rgba(211, 185, 94, 0.22), #d3b95e) border-box;
  color: #d3b95e;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.property-strip__arrow:hover {
  background:
    linear-gradient(rgba(211, 185, 94, 0.12), rgba(211, 185, 94, 0.12)) padding-box,
    linear-gradient(135deg, #d3b95e, rgba(211, 185, 94, 0.3)) border-box;
  color: #f0f0f0;
  transform: translateY(-1px);
}

.property-strip__scroller--woocommerce .property-card {
  min-width: 315px;
  height: 100%;
}

.property-strip__scroller--woocommerce .property-card-image {
  height: 260px;
}

.property-strip__card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(211, 185, 94, 0.16);
  background:
    radial-gradient(circle at 76% 20%, rgba(211, 185, 94, 0.12), transparent 30%),
    linear-gradient(145deg, #0d2117 0%, #07130d 100%);
}

.property-strip__placeholder {
  position: absolute;
  inset: 14px 14px 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(211, 185, 94, 0.26);
  color: rgba(211, 185, 94, 0.3);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-strip__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 14px 14px 13px;
  background: rgba(8, 20, 14, 0.86);
  backdrop-filter: blur(12px);
  color: #f0f0f0;
}

.property-strip__caption h3 {
  margin: 0 0 8px;
  color: #f0f0f0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

.property-strip__caption p,
.property-strip__caption small,
.property-strip__caption strong {
  display: block;
  margin: 0 0 5px;
  color: rgba(240, 240, 240, 0.82);
  font-size: 12px;
  line-height: 1.2;
}

.property-strip__caption span {
  display: inline-flex;
  margin-top: 6px;
  color: #d3b95e;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .property-strip {
    padding: 28px 16px;
  }

  .property-strip__inner {
    padding: 16px;
  }

  .property-strip__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .property-strip__scroller {
    grid-auto-columns: minmax(220px, 82vw);
  }

  .property-strip__card {
    min-height: 420px;
  }
}

/* ==========================================================================
   Объект недвижимости Cards (WooCommerce / CPT)
   ========================================================================== */

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

.property-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0d2117 0%, #06120c 100%);
  border: 1px solid rgba(211, 185, 94, 0.32);
  border-radius: 3px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.property-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 74% 18%, rgba(211, 185, 94, 0.12), transparent 34%);
}

.property-card:hover {
  border-color: #d3b95e;
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(211, 185, 94, 0.08) inset;
}

.property-card-image {
  position: relative;
  height: 315px;
  overflow: hidden;
  background: #07130d;
}

.property-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.property-card-image img,
.property-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.property-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(7, 19, 13, 0.88) 100%);
}

.property-card:hover .property-card-image img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.04);
}

.property-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 6px 13px;
  background: linear-gradient(#0d2117, #0d2117) padding-box, linear-gradient(135deg, #d3b95e, rgba(211, 185, 94, 0.18)) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.property-badge.badge-sale {
  background: var(--malachite-deep);
}

.property-badge.badge-rent {
  background: var(--gold);
}

.property-price-tag {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  padding: 8px 15px;
  background: rgba(13, 33, 23, 0.88);
  border: 1px solid rgba(211, 185, 94, 0.42);
  backdrop-filter: blur(8px);
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.property-card-body {
  position: relative;
  z-index: 1;
  padding: 22px 22px 24px;
}

.property-card-title {
  margin-bottom: 10px;
  color: #f0f0f0;
  font-family: 'Rubik', sans-serif;
  font-size: clamp(18px, 1.18vw, 24px);
  font-weight: 800;
  line-height: 1.1;
}

.property-card-title a {
  color: inherit;
}

.property-card-title a:hover {
  color: var(--gold);
}

.property-card-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: rgba(240, 240, 240, 0.72);
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  line-height: 1.25;
}

.property-card-location svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
}

.property-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(211, 185, 94, 0.16);
}

.property-spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 7px 10px;
  background: rgba(240, 240, 240, 0.04);
  border: 1px solid rgba(211, 185, 94, 0.14);
  color: rgba(240, 240, 240, 0.82);
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
}

.property-spec svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-medium);
  fill: none;
}

.property-spec strong {
  color: #f0f0f0;
  font-weight: 700;
}

.property-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.property-card-link:hover {
  color: #f0f0f0;
}

@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }

  .property-card-image {
    height: 240px;
  }
}

/* ==========================================================================
   Объект недвижимости Filter Bar
   ========================================================================== */

.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 40px;
}

.filter-bar-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a09888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--malachite);
}

.filter-group input::placeholder {
  color: var(--text-muted);
}

.filter-actions {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .filter-bar-form {
    flex-direction: column;
  }

  .filter-group {
    min-width: 100%;
  }
}

/* ==========================================================================
   Stats / Counter
   ========================================================================== */

.stats-section {
  background: linear-gradient(135deg, var(--bg-section) 0%, rgba(30, 30, 30, 1) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px 0;
}

.stat-number {
  font-family: 'PT Serif', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--malachite);
  z-index: -1;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-top: 14px;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.about-feature svg {
  width: 20px;
  height: 20px;
  stroke: var(--malachite);
  fill: none;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Testimonials / Отзывы
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  position: relative;
}

.review-card::before {
  content: '\201C';
  font-family: 'PT Serif', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 20px;
  line-height: 1;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.review-author-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Partners / Brands
   ========================================================================== */

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  opacity: 0.5;
  transition: opacity var(--transition);
  max-height: 50px;
  width: auto;
}

.partner-logo:hover {
  opacity: 1;
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */

.contact-section {
  background: linear-gradient(135deg, var(--bg-section) 0%, #1a1a1a 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  margin-bottom: 24px;
  color: var(--malachite);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--malachite-soft);
  border: 1px solid var(--border-malachite);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--malachite);
  fill: none;
}

.contact-item-text {
  flex: 1;
}

.contact-item-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-item-value a {
  color: var(--text-primary);
}

.contact-item-value a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 36px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--malachite);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-about .site-logo img {
  height: 45px;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links li a:hover {
  color: var(--gold);
}

.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-contacts li svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contacts li a {
  color: var(--text-muted);
}

.footer-contacts li a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  transition: fill var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.footer-social a:hover svg {
  fill: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .separator {
  margin: 0 8px;
  color: var(--text-muted);
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
  padding: 120px 0 40px;
  text-align: center;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Сайдбар & Widgets
   ========================================================================== */

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  color: var(--text-secondary);
}

.woocommerce ul.products li.product {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.woocommerce ul.products li.product a img {
  background: var(--bg-input);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--text-primary);
  font-family: 'PT Serif', serif;
}

.woocommerce ul.products li.product .price {
  color: var(--gold);
  font-family: 'PT Serif', serif;
  font-size: 1.1rem;
}

.woocommerce .button,
.woocommerce button.button {
  background: var(--gold) !important;
  color: #fff !important;
  border: none !important;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  border-radius: 0 !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: var(--gold-dark) !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.woocommerce-info {
  border-top: 3px solid var(--gold);
}

/* Product filters - WooCommerce layered nav */
.woocommerce .widget_layered_nav ul li {
  border-bottom: 1px solid var(--border-color);
}

.woocommerce .widget_layered_nav ul li a {
  color: var(--text-secondary);
}

.woocommerce .widget_layered_nav ul li.chosen a {
  background: var(--gold);
  color: #fff;
  padding: 2px 8px;
}

/* Цена filter */
.woocommerce .widget_price_filter .price_slider {
  background: var(--border-color);
}

.woocommerce .widget_price_filter .price_slider_amount .button {
  background: var(--gold) !important;
}

/* ==========================================================================
   Single Объект недвижимости / Product
   ========================================================================== */

.single-property-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 30px;
}

.single-property-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.single-property-gallery .gallery-main {
  grid-column: 1 / -1;
  height: 450px;
}

.single-property-details {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

.single-property-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.single-property-sidebar .price {
  font-family: 'PT Serif', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.single-property-sidebar .specs-list {
  margin-bottom: 20px;
}

.single-property-sidebar .specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.single-property-sidebar .specs-list li span:first-child {
  color: var(--text-muted);
}

.single-property-sidebar .specs-list li span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .single-property-details {
    grid-template-columns: 1fr;
  }

  .single-property-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .single-property-gallery {
    grid-template-columns: 1fr;
  }

  .single-property-gallery .gallery-main {
    height: 280px;
  }

  .single-property-gallery img:not(.gallery-main) {
    display: none;
  }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

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

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.pagination .page-numbers:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination .page-numbers.current {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  width: auto;
  padding: 0 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--malachite-deep) 0%, var(--malachite) 48%, var(--gold) 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 2rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  background: #fff;
  color: var(--gold-dark);
}

.cta-banner .btn:hover {
  background: var(--bg-dark);
  color: var(--gold);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-gold { color: var(--gold); }
.text-malachite { color: var(--malachite); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

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

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Scroll to Top
   ========================================================================== */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold-dark);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.error-404 p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* ==========================================================================
   Catalog Page (WooCommerce)
   ========================================================================== */

.page-header--catalog {
  text-align: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 30px;
  background: var(--bg-section);
}

.page-header__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.catalog-page {
  background: var(--bg-dark);
}

/* ---- Filter Bar ---- */
.catalog-filters {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  position: sticky;
  top: var(--header-height);
  z-index: 50;
}

.filter-bar__row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  flex: 1;
}

.filter-group--text {
  flex: 2;
  min-width: 200px;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.filter-group select,
.filter-group input {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  transition: border-color var(--transition);
  font-family: inherit;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--gold);
  outline: none;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.filter-actions .btn {
  white-space: nowrap;
}

/* ---- Toolbar ---- */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.catalog-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.catalog-views {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 3px;
}

.catalog-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all var(--transition);
}

.catalog-view-btn svg {
  width: 16px;
  height: 16px;
}

.catalog-view-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.catalog-view-btn.active {
  background: var(--malachite);
  color: #fff;
}

/* ---- View panels ---- */
.catalog-view {
  display: none;
}

.catalog-view.active {
  display: block;
}

.catalog-view--map.active {
  display: block;
}

/* ---- Map container ---- */
.catalog-map {
  width: 100%;
  height: 600px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.single-property-map {
  width: 100%;
  height: 400px;
}

/* ---- Map marker ---- */
.map-marker {
  background: var(--malachite);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  width: 32px;
  height: 42px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.map-marker::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}

/* ---- Map popup ---- */
.map-popup {
  min-width: 200px;
  max-width: 260px;
  font-family: 'Inter', sans-serif;
}

.map-popup__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
  margin: -13px -20px 10px;
  width: calc(100% + 40px);
}

.map-popup__title {
  font-family: 'PT Serif', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.map-popup__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 6px;
}

.map-popup__specs {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 4px;
}

.map-popup__addr {
  font-size: 0.75rem;
  color: #999;
}

/* ---- Pagination ---- */
.catalog-pagination {
  padding: 30px 0;
}

.catalog-pagination .woocommerce-pagination ul {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.catalog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}

.catalog-pagination .page-numbers.current,
.catalog-pagination .page-numbers:hover {
  background: var(--malachite);
  color: #fff;
  border-color: var(--malachite);
}

/* ---- Empty state ---- */
.catalog-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .filter-bar__row {
    gap: 10px;
  }
  .filter-group {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .filter-bar__row {
    flex-direction: column;
  }
  .filter-group {
    width: 100%;
    min-width: 100%;
  }
  .filter-actions {
    width: 100%;
  }
  .filter-actions .btn {
    flex: 1;
  }
  .catalog-toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .catalog-map {
    height: 400px;
  }
  .catalog-view-btn span {
    display: none;
  }
}

/* ---- WooCommerce overrides for property catalog ---- */
.woocommerce ul.products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.woocommerce ul.products li.product {
  margin: 0;
  padding: 0;
  float: none;
  width: 100%;
}

.woocommerce .woocommerce-ordering {
  display: none;
}

.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--malachite);
  color: #fff;
  border-color: var(--malachite);
}

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Figma homepage continuation
   ========================================================================== */

.figma-section {
  position: relative;
  padding: 88px 0;
  background: #11201a;
  color: #f0f0f0;
  overflow: hidden;
}

.figma-section h2,
.figma-section h3,
.figma-section p {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.figma-section h2 {
  max-width: 920px;
  margin: 0;
  color: #f0f0f0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.figma-section h3 {
  margin: 0 0 14px;
  color: #f0f0f0;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.figma-section p {
  margin: 0;
  color: rgba(240, 240, 240, 0.76);
  font-size: 1rem;
  line-height: 1.65;
}

.figma-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #db9641;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
}

.figma-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #db9641;
}

.figma-section-header {
  margin-bottom: 42px;
}

.figma-section-header--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 40px;
  align-items: end;
}

.figma-section-header--split p {
  padding-bottom: 8px;
}

.figma-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  border: 1px solid #f0f0f0;
  border-radius: 2px;
  background: #f0f0f0;
  color: #000;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.figma-button:hover {
  transform: translateY(-1px);
  background: #db9641;
  border-color: #db9641;
  color: #0d0e17;
}

.figma-button--light {
  background: transparent;
  color: #f0f0f0;
  border-color: rgba(240, 240, 240, 0.42);
}

.stats-grid--figma {
  grid-template-columns: repeat(3, 1fr);
  max-width: 980px;
  margin: 0 auto;
}

.stats-grid--figma .stat-item {
  background: #0d0e17;
  border-color: rgba(219, 150, 65, 0.22);
}

.repair-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.repair-step {
  min-height: 260px;
  padding: 28px;
  background: #0d0e17;
  border: 1px solid rgba(219, 150, 65, 0.18);
  border-radius: 5px;
}

.repair-step span {
  display: block;
  margin-bottom: 60px;
  color: #db9641;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.audit-section,
.faq-section {
  background: #0f1b17;
}

.audit-card,
.visit-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(34px, 5vw, 64px);
  background: #0d0e17;
  border: 1px solid rgba(219, 150, 65, 0.24);
  border-radius: 5px;
}

.audit-card p,
.visit-card p {
  max-width: 760px;
  margin-top: 18px;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cost-option {
  min-height: 150px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  background: #0d0e17;
  border: 1px solid rgba(240, 240, 240, 0.12);
  border-radius: 5px;
  color: #f0f0f0;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.cost-option:hover {
  transform: translateY(-2px);
  background: #151725;
  border-color: rgba(219, 150, 65, 0.55);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #0d0e17;
  border: 1px solid rgba(240, 240, 240, 0.12);
  border-radius: 5px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 26px;
  color: #f0f0f0;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: #db9641;
  font-size: 1.35rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 26px 24px;
}

.production-section {
  background: #11201a;
}

.production-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.production-copy,
.production-media {
  min-height: 420px;
  border-radius: 5px;
  overflow: hidden;
}

.production-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(34px, 5vw, 58px);
  background: #0d0e17;
  border: 1px solid rgba(219, 150, 65, 0.2);
}

.production-copy p {
  margin: 20px 0 30px;
}

.production-media {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(13, 14, 23, 0.08), rgba(13, 14, 23, 0.84)),
    url('https://static.tildacdn.com/tild6334-3232-4234-b631-306134366630/1_64.jpg') center/cover no-repeat;
}

.production-media span {
  color: #f0f0f0;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.visit-section {
  padding-top: 0;
}

.visit-card {
  background:
    linear-gradient(120deg, rgba(13, 14, 23, 0.96), rgba(13, 14, 23, 0.72)),
    url('https://static.tildacdn.com/tild6334-3232-4234-b631-306134366630/1_64.jpg') center/cover no-repeat;
}

.cta-banner h2,
.cta-banner p {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (max-width: 1024px) {
  .figma-section-header--split,
  .audit-card,
  .visit-card,
  .production-grid {
    grid-template-columns: 1fr;
  }

  .repair-steps__grid,
  .cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .production-copy,
  .production-media {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .figma-section {
    padding: 64px 0;
  }

  .figma-section-header--split {
    gap: 18px;
  }

  .stats-grid--figma,
  .repair-steps__grid,
  .cost-grid {
    grid-template-columns: 1fr;
  }

  .repair-step {
    min-height: auto;
  }

  .repair-step span {
    margin-bottom: 42px;
  }

  .audit-card,
  .visit-card,
  .production-copy,
  .production-media {
    padding: 26px;
  }

  .figma-button {
    width: 100%;
  }
}

/* ==========================================================================
   Каталог недвижимости (шорткод [aristos_catalog])
   ========================================================================== */

.catalog-hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 15% 20%, rgba(11, 143, 90, 0.16) 0%, transparent 55%),
    linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-section) 100%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  overflow: hidden;
}

.catalog-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 120px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.catalog-hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.catalog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.catalog-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Каталог: чёрный фон + зелёная оболочка шириной хедера (1540px),
   по аналогии с .site-header (#000) и .header-inner (#0d2117, radius 5px) */
.catalog-wrap {
  padding: 0 30px 40px;
  background: #000;
}

.catalog-wrap .container {
  max-width: 1540px;
  padding: 28px 48px 48px;
  background: #0d2117;
  border-radius: 5px;
}

/* Панель фильтров: липкая на десктопе */
.catalog-wrap .filter-bar {
  position: sticky;
  top: calc(var(--header-height) + 8px);
  z-index: 20;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.catalog-wrap .filter-bar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--malachite-light));
  opacity: 0.7;
}

/* Счётчик найденного */
.catalog-wrap .catalog-count {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.catalog-wrap .catalog-count::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--malachite-light);
  box-shadow: 0 0 8px var(--malachite-light);
  flex: 0 0 auto;
}

/* Сетка результатов: плавное затухание при загрузке */
#catalog-results {
  transition: opacity var(--transition);
}

/* Кнопка «Показать ещё» */
.catalog-more-wrap {
  margin-top: 36px;
  text-align: center;
}

.catalog-more-wrap .btn {
  min-width: 220px;
}

/* Пустой результат */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
}

.catalog-empty strong {
  display: block;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

@media (max-width: 992px) {
  .catalog-wrap .filter-bar {
    position: static;
  }
}

@media (max-width: 768px) {
  .catalog-hero {
    padding: 52px 0 40px;
  }

  .catalog-wrap {
    padding: 32px 0 56px;
  }

  .catalog-more-wrap .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Хлебные крошки (замена баннеров страниц)
   ========================================================================== */

.breadcrumbs {
  margin: 22px 0 18px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 9px;
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs li[aria-current] {
  color: var(--gold);
}

/* ==========================================================================
   Каталог: фильтр в левой колонке (структура как в CRM)
   ========================================================================== */

.catalog-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 32px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.catalog-filter {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
}

.filter-block {
  margin-bottom: 20px;
}

.filter-block__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Пилюли (тип сделки, тип объекта, комнаты) */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 7px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.83rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.pill:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

.pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #14100b;
  font-weight: 600;
}

/* Диапазоны «от–до» (цена, площадь, этаж) */
.filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-range input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.filter-range input:focus {
  outline: none;
  border-color: var(--malachite);
}

.filter-range__sep {
  color: var(--text-muted);
  flex: 0 0 auto;
}

/* Селекты и текстовые поля сайдбара */
.filter-select,
.filter-input {
  width: 100%;
  padding: 10px 12px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.filter-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a09888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--malachite);
}

.filter-input::placeholder {
  color: var(--text-muted);
}

/* Кнопки фильтра */
.filter-actions-block {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.filter-reset {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.83rem;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: center;
  padding: 4px;
  transition: color var(--transition);
}

.filter-reset:hover {
  color: var(--gold);
}

/* Тулбар каталога: счётчик + сортировка */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 0;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.catalog-sort .filter-select {
  width: auto;
  min-width: 210px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Сетка результатов: состояние загрузки */
#catalog-results {
  transition: opacity var(--transition);
}

#catalog-results.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

/* Кнопка «Показать ещё» */
.catalog-more-wrap {
  margin-top: 32px;
  text-align: center;
}

.catalog-more-wrap .btn {
  min-width: 240px;
}

/* Пагинация */
.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #14100b;
  font-weight: 600;
}

.page-dots {
  color: var(--text-muted);
  padding: 0 4px;
}

/* Мобильный тоггл фильтра */
.catalog-filter-toggle {
  display: none;
  margin-bottom: 16px;
}

/* Сворачиваемый блок «Ещё параметры» */
.filter-more {
  margin: 4px 0 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

/* Аккордеон-фильтр: каждая категория — выпадающий список */
.filter-acc {
  border-bottom: 1px solid var(--border-color);
}

.filter-acc:last-of-type {
  border-bottom: none;
}

.filter-acc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 2px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition);
}

.filter-acc__summary::-webkit-details-marker {
  display: none;
}

.filter-acc__summary:hover {
  color: var(--gold);
}

.filter-acc[open] .filter-acc__summary {
  color: var(--gold);
}

.filter-acc__chevron {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition);
}

.filter-acc[open] .filter-acc__chevron {
  transform: rotate(180deg);
}

.filter-acc__body {
  padding: 2px 0 16px;
}

.filter-more__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold);
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 2px 0;
  transition: color var(--transition);
}

.filter-more__summary::-webkit-details-marker {
  display: none;
}

.filter-more__summary:hover {
  color: var(--gold-hover);
}

.filter-more__chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition);
}

.filter-more[open] .filter-more__chevron {
  transform: rotate(180deg);
}

.filter-more__body {
  padding-top: 16px;
}

/* Уплотнение фильтра */
.catalog-filter {
  padding: 20px;
}

.filter-block {
  margin-bottom: 15px;
}

.filter-block__title {
  margin-bottom: 7px;
}

.pill {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.filter-range input {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.filter-select,
.filter-input {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.85rem;
}

.filter-actions-block {
  margin-top: 18px;
}

@media (max-width: 992px) {
  .catalog-wrap {
    padding: 0 20px 32px;
  }

  .catalog-wrap .container {
    padding: 24px 24px 36px;
  }

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

  .catalog-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .catalog-sidebar {
    position: static;
    display: none;
  }

  .catalog-sidebar.is-open {
    display: block;
  }
}

@media (max-width: 768px) {
  .catalog-wrap {
    padding: 0 16px 24px;
  }

  .catalog-wrap .container {
    padding: 20px 16px 28px;
  }

  .catalog-sort {
    width: 100%;
  }

  .catalog-sort .filter-select {
    flex: 1;
    min-width: 0;
  }

  .catalog-more-wrap .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Sborka (Figma): квиз, карточки дизайна, «О нас»
   Цвета из макета: текст #f0f0f0, золото #d3b95e, карточки #11201a,
   радиус 5px. Чёрная подложка как у hero.
   ========================================================================== */

/* Чёрная подложка поверх зелёного фона (паттерн hero-блока) */
.sborka-wrap {
  background: #000;
  padding: 0 30px;
}

/* Контент шире, как в макете (1540px, совпадает с hero-shell) */
.sborka-wrap .container {
  max-width: 1540px;
}

/* Градиентная золотая обводка (приём: двойной фон padding-box + border-box) */
.sborka-quiz__card,
.sborka-design__card {
  border: 1px solid transparent;
  background:
    linear-gradient(#11201a, #11201a) padding-box,
    linear-gradient(135deg, rgba(211, 185, 94, 0.55), rgba(211, 185, 94, 0.08) 65%) border-box;
}

.sborka-design__card {
  background:
    linear-gradient(#11201a, #11201a) padding-box,
    linear-gradient(135deg, rgba(211, 185, 94, 0.55), rgba(211, 185, 94, 0.08) 65%) border-box;
}

/* ---------- Квиз «Расчёт стоимости» ---------- */

.sborka-quiz {
  padding: 56px 0 28px;
}

.sborka-quiz__head h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.28;
  max-width: 920px;
  position: relative;
  padding-left: 18px;
}

.sborka-quiz__head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #d3b95e, rgba(211, 185, 94, 0));
}

.sborka-quiz__card {
  margin-top: 28px;
  border-radius: 5px;
  overflow: hidden;
}

/* Шаги */
.sborka-quiz__steps {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.sborka-quiz__step {
  flex: 1;
  padding: 13px 12px;
  border-right: 1px solid var(--border-color);
  position: relative;
  transition: background var(--transition);
}

.sborka-quiz__step:last-child {
  border-right: none;
}

.sborka-quiz__step-num {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.sborka-quiz__step-name {
  display: block;
  margin-top: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sborka-quiz__step.is-active {
  background: linear-gradient(180deg, rgba(211, 185, 94, 0.14), rgba(211, 185, 94, 0));
}

.sborka-quiz__step.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #d3b95e;
}

.sborka-quiz__step.is-active .sborka-quiz__step-name {
  color: #d3b95e;
}

.sborka-quiz__step.is-done .sborka-quiz__step-name {
  color: var(--malachite-light);
}

/* Тело */
.sborka-quiz__body {
  padding: 30px 30px 26px;
}

.sborka-quiz__panel {
  display: none;
}

.sborka-quiz__panel.is-active {
  display: block;
  animation: sborkaFade 0.3s ease;
}

@keyframes sborkaFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.sborka-quiz__question {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 22px;
}

/* Шаг 1: карточки с фото */
.sborka-quiz__options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sborka-quiz__option {
  display: block;
  cursor: pointer;
}

.sborka-quiz__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sborka-quiz__option-img {
  display: block;
  height: 180px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.4);
}

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

.sborka-quiz__option:hover .sborka-quiz__option-img {
  transform: translateY(-2px);
}

.sborka-quiz__option input:checked + .sborka-quiz__option-img {
  border-color: #d3b95e;
}

.sborka-quiz__option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* Чекбокс/радио-маркер */
.sborka-quiz__check {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 240, 240, 0.55);
  border-radius: 3px;
  position: relative;
  transition: all var(--transition);
}

.sborka-quiz__check::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  opacity: 0;
  transition: opacity var(--transition);
}

.sborka-quiz__option input:checked ~ .sborka-quiz__option-row .sborka-quiz__check,
.sborka-quiz__radio input:checked + .sborka-quiz__check {
  background: #d3b95e;
  border-color: #d3b95e;
}

.sborka-quiz__option input:checked ~ .sborka-quiz__option-row .sborka-quiz__check::after,
.sborka-quiz__radio input:checked + .sborka-quiz__check::after {
  opacity: 1;
}

/* Радио-строки (шаги 3-4) */
.sborka-quiz__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}

.sborka-quiz__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 1rem;
  color: #f0f0f0;
}

.sborka-quiz__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Поля ввода (шаги 2, 5) */
.sborka-quiz__field {
  position: relative;
  max-width: 320px;
}

.sborka-quiz__input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: #f0f0f0;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.sborka-quiz__input:focus {
  outline: none;
  border-color: #d3b95e;
}

.sborka-quiz__input::placeholder {
  color: var(--text-muted);
}

.sborka-quiz__unit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sborka-quiz__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sborka-quiz__chip {
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.sborka-quiz__chip:hover {
  border-color: #d3b95e;
  color: #d3b95e;
}

.sborka-quiz__fields {
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.sborka-quiz__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.sborka-quiz__error {
  display: none;
  margin-top: 14px;
  font-size: 0.88rem;
  color: #e06c5f;
}

.sborka-quiz__error.is-visible {
  display: block;
}

/* Навигация */
.sborka-quiz__nav {
  display: flex;
  gap: 12px;
  padding: 0 30px 28px;
}

.sborka-quiz__back {
  width: 46px;
  height: 42px;
  flex: 0 0 auto;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.sborka-quiz__back svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.sborka-quiz__back:hover {
  border-color: #d3b95e;
  color: #d3b95e;
}

.sborka-quiz__back:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.sborka-quiz__next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(rgba(13, 33, 23, 0.86), rgba(13, 33, 23, 0.86)) padding-box,
    linear-gradient(135deg, rgba(211, 185, 94, 0.24), #d3b95e) border-box;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.sborka-quiz__next svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.sborka-quiz__next:hover {
  background:
    linear-gradient(rgba(211, 185, 94, 0.12), rgba(211, 185, 94, 0.12)) padding-box,
    linear-gradient(135deg, #d3b95e, rgba(211, 185, 94, 0.36)) border-box;
  color: #f0f0f0;
}

.sborka-quiz__next:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Успех */
.sborka-quiz__success {
  padding: 44px 30px;
  text-align: center;
}

.sborka-quiz__success h3 {
  color: #d3b95e;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.sborka-quiz__success p {
  color: var(--text-secondary);
}

/* ---------- Карточки дизайна ---------- */

.sborka-design {
  padding: 28px 0;
}

.sborka-design__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sborka-design__decor {
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.sborka-design__decor img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.55);
  transform-origin: center;
}

.sborka-design__card {
  border-radius: 5px;
  padding: 26px;
  min-height: 220px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.sborka-design__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sborka-design__card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.32;
  color: #d3b95e;
  margin-bottom: 12px;
}

.sborka-design__card p {
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(240, 240, 240, 0.88);
}

/* ---------- «О нас» (обращение директора) ---------- */

.sborka-about {
  padding: 28px 0 60px;
}

.sborka-about__card {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  background: #11201a;
  border-radius: 5px;
  overflow: visible;
  margin-bottom: 130px;
  min-height: 680px;
}

.sborka-about__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  text-align: center;
}

.sborka-about__media {
  position: relative;
  min-height: 420px;
  border-radius: 0 5px 5px 0;
  overflow: hidden;
}

.sborka-about__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.header-social a img,
.footer-social a img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.platforms-section {
  padding: 48px 0;
  background: #0d2117;
}

.platforms-section > .container {
  width: 100%;
  max-width: var(--container-width);
}

.messenger-widget__link--telegram {
  display: none !important;
}

.platforms-section h2 {
  margin: 0 0 24px;
  color: #f0f0f0;
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.platforms-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.platforms-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 5px;
  background: #11201a;
  transition: transform var(--transition);
}

.platforms-grid a:hover {
  transform: translateY(-3px);
}

.platforms-grid img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .platforms-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .platforms-grid a {
    flex: 0 1 calc(25% - 12px);
  }
}

@media (max-width: 640px) {
  .platforms-section {
    padding: 36px 16px;
  }

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

  .platforms-grid a {
    min-width: 0;
    min-height: 64px;
    padding: 8px;
  }

  .platforms-grid img {
    max-width: 100%;
    max-height: 38px;
  }
}

.sborka-about__title {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #a29050 0%, #d5bb60 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sborka-about__text p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: rgba(240, 240, 240, 0.9);
  margin-bottom: 14px;
}

.sborka-about__text {
  max-width: 700px;
}

.sborka-about__text strong {
  color: #d3b95e;
  font-weight: 600;
}

.sborka-about__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(211, 185, 94, 0.45);
  background: linear-gradient(90deg, #a29050, #d5bb60);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: border-color var(--transition);
}

.sborka-about__link:hover {
  border-bottom-color: #d3b95e;
}

/* Actions wrapper for buttons */
.sborka-about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* Button: Написать директору */
.sborka-about__btn-director {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, #a29050 0%, #d5bb60 100%);
  color: #0f1a15;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.sborka-about__btn-director:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(163, 144, 80, 0.35);
}

/* Визитки — прозрачный PNG (альфа по силуэту, 1102x735).
   Позиционируются на стыке тёмной панели и фото: grid 1.6fr / 1fr —
   граница колонок приходится на ~61.5%. Визитки стоят левее, перекрывая
   оба блока, но не наезжая на текст (контент заканчивается выше). */
.sborka-about__letter {
  position: absolute;
  left: 46%;
  right: auto;
  bottom: -80px;
  width: 30%;
  max-width: 320px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

/* ---------- Адаптив ---------- */

@media (max-width: 992px) {
  .sborka-quiz__options {
    grid-template-columns: repeat(2, 1fr);
  }

  .sborka-design__grid {
    grid-template-columns: 1fr 1fr;
  }

  .sborka-design__decor {
    display: none;
  }

  .sborka-about__card {
    grid-template-columns: 1fr;
    margin-bottom: 104px;
    /* в одну колонку высоту задаёт контент, пропорция макета уже неприменима */
    min-height: 0;
  }

  .sborka-about__media {
    min-height: 340px;
    order: -1;
    border-radius: 5px 5px 0 0;
  }

  .sborka-about__letter {
    left: 42%;
    right: auto;
    width: 36%;
    max-width: 280px;
    bottom: -70px;
  }

  .sborka-about__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .sborka-quiz {
    padding: 40px 0 20px;
  }

  .sborka-quiz__steps {
    overflow-x: auto;
  }

  .sborka-quiz__step {
    flex: 0 0 auto;
    min-width: 108px;
  }

  .sborka-quiz__body {
    padding: 22px 18px;
  }

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

  .sborka-quiz__option-img {
    height: 130px;
  }

  .sborka-quiz__nav {
    padding: 0 18px 22px;
  }

  .sborka-design__grid {
    grid-template-columns: 1fr;
  }

  .sborka-about__content {
    padding: 28px 22px;
  }

  .sborka-about__title {
    font-size: 1.6rem;
  }

  .sborka-about__card {
    margin-bottom: 82px;
  }

  .sborka-about__letter {
    left: 40%;
    right: auto;
    width: 48%;
    max-width: 240px;
    bottom: -56px;
  }

  .sborka-about__btn-director {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Reviews section (#reviews)
   ========================================================================== */

.reviews-section {
  background: #11201a;
}

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.reviews-rating__score {
  color: #db9641;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.reviews-rating__stars {
  color: #db9641;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.reviews-rating__count {
  color: rgba(240, 240, 240, 0.6);
  font-size: 0.95rem;
}

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

.review-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: #1a1a1a;
  border: 1px solid rgba(219, 150, 65, 0.16);
  border-radius: 4px;
  transition: border-color var(--transition), transform var(--transition);
}

.review-card:hover {
  border-color: rgba(219, 150, 65, 0.4);
  transform: translateY(-2px);
}

.review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-card__name {
  color: #f0f0f0;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.review-card__stars {
  flex: 0 0 auto;
  color: #db9641;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.review-card__tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(219, 150, 65, 0.3);
  border-radius: 100px;
  color: #db9641;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  line-height: 1.2;
}

.review-card__text {
  flex: 1;
  color: rgba(240, 240, 240, 0.76) !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
}

/* ==========================================================================
   Visit section (#visit)
   ========================================================================== */

.visit-section {
  background: #151515;
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.visit-content h2 {
  margin-bottom: 18px;
}

.visit-lead {
  margin-bottom: 14px !important;
  color: #f0f0f0 !important;
  font-size: 1.15rem !important;
  font-weight: 500;
}

.visit-objects {
  margin: 30px 0;
}

.visit-objects__label {
  display: block;
  margin-bottom: 14px;
  color: rgba(240, 240, 240, 0.6);
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
}

.visit-objects__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.visit-chip {
  padding: 8px 16px;
  border: 1px solid rgba(219, 150, 65, 0.35);
  border-radius: 100px;
  color: #f0f0f0;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  line-height: 1.2;
  transition: background var(--transition), border-color var(--transition);
}

.visit-chip:hover {
  background: rgba(219, 150, 65, 0.12);
  border-color: #db9641;
}

.visit-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(219, 150, 65, 0.25);
  border-radius: 6px;
  object-fit: cover;
}

/* ==========================================================================
   Lead form section (#contact)
   ========================================================================== */

.lead-section {
  background: #11201a;
}

.lead-panel {
  padding: 56px 48px;
  background: linear-gradient(135deg, rgba(219, 150, 65, 0.14), rgba(219, 150, 65, 0.04));
  border: 1px solid rgba(219, 150, 65, 0.35);
  border-radius: 8px;
}

.lead-panel__text h2 {
  max-width: 1000px;
  margin-bottom: 36px;
}

.lead-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
}

.lead-form input[type='text'],
.lead-form input[type='tel'] {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #f0f0f0;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.lead-form input::placeholder {
  color: rgba(240, 240, 240, 0.45);
}

.lead-form input:focus {
  border-color: #db9641;
}

.lead-form__submit {
  min-height: 52px;
  white-space: nowrap;
  cursor: pointer;
}

.lead-form__policy {
  margin-top: 16px !important;
  color: rgba(240, 240, 240, 0.55) !important;
  font-size: 0.85rem !important;
}

.lead-form__policy a {
  color: #db9641;
  text-decoration: none;
}

.lead-form__policy a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive: reviews / visit / lead
   ========================================================================== */

@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visit-grid {
    gap: 36px;
  }

  .lead-panel {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }

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

  .visit-media {
    order: -1;
  }

  .lead-panel {
    padding: 30px 20px;
  }

  .lead-form__fields {
    grid-template-columns: 1fr;
  }

  .lead-form__submit {
    width: 100%;
  }
}

/* Здесь добавляются финальные стили для мобильной адаптации и видео */

/* Mobile image visibility fix and full-width director card */
@media (max-width: 768px) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .sborka-quiz__option-img,
  .sborka-quiz__option-img img,
  .property-card-image,
  .property-card-image img,
  .sborka-about__media,
  .sborka-about__photo {
    visibility: visible !important;
    opacity: 1 !important;
  }

  .sborka-about > .container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .sborka-about__card {
    width: 100%;
    margin-bottom: 76px;
    border-radius: 0;
  }

  .sborka-about__media {
    min-height: clamp(360px, 118vw, 560px);
    border-radius: 0;
  }

  .sborka-about__photo {
    object-fit: contain;
    object-position: center bottom;
  }

  .sborka-about__content {
    padding: 34px 20px 42px;
  }

  .sborka-about__letter {
    left: 50%;
    width: min(72%, 360px);
    transform: translateX(-50%);
  }

  .company-video-section > .container {
    padding-right: 0;
    padding-left: 16px;
  }

  .company-video-section .figma-section-header {
    padding-right: 16px;
  }

  .company-video-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(68vw, 270px);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 12px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .company-video-card {
    width: 100%;
    max-height: 430px;
    scroll-snap-align: start;
  }

  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Company video section */
.company-video-section {
  background: #000;
}

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

.company-video-card {
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  background: #0d2117;
  border: 1px solid rgba(213, 187, 96, 0.32);
  border-radius: 5px;
}

.company-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.sborka-design__head {
  margin-bottom: 24px;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-cookie-settings {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(213, 187, 96, 0.55);
  background: transparent;
  color: #d5bb60;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-cookie-settings:hover {
  color: #e0c877;
  border-bottom-color: #e0c877;
}

/* Team section */
.sborka-team {
  padding: 60px 0 40px;
}

.sborka-team__head {
  max-width: 640px;
  margin-bottom: 36px;
}

.sborka-team__title {
  margin-bottom: 12px;
  background: linear-gradient(90deg, #a29050 0%, #d5bb60 100%);
  background-clip: text;
  color: transparent;
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
}

.sborka-team__subtitle {
  color: rgba(240, 240, 240, 0.7);
  font-size: 0.95rem;
  line-height: 1.65;
}

.sborka-team__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.sborka-team__card {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  background:
    linear-gradient(#11201a, #11201a) padding-box,
    linear-gradient(135deg, rgba(211, 185, 94, 0.55), rgba(211, 185, 94, 0.08) 65%) border-box;
  transition: transform var(--transition), box-shadow var(--transition);
}

.sborka-team__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.sborka-team__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 697 / 1239;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 1100px) {
  .sborka-team__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .sborka-team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sborka-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* Compact consultation form */
.lead-panel {
  padding: 44px 48px 40px;
  background: linear-gradient(135deg, rgba(219, 150, 65, 0.14), rgba(13, 33, 23, 0.96));
  border: 1px solid rgba(219, 150, 65, 0.42);
  border-radius: 6px;
}

.lead-panel__text h2 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  line-height: 1.08;
}

.lead-form__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
}

.lead-form input[type='text'],
.lead-form input[type='tel'] {
  min-height: 50px;
  padding: 13px 16px;
  background: rgba(20, 20, 20, 0.86);
  border: 1px solid rgba(240, 240, 240, 0.1);
  border-radius: 3px;
}

.lead-form__submit {
  min-width: 142px;
  min-height: 50px;
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: rgba(240, 240, 240, 0.72);
  font-size: 0.82rem;
  line-height: 1.4;
}

.lead-form__consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.lead-form__consent a {
  color: #db9641;
}

@media (max-width: 768px) {
  .lead-panel {
    padding: 30px 20px;
  }

  .lead-panel__text h2 {
    font-size: 1.8rem;
  }

  .lead-form__fields {
    grid-template-columns: 1fr;
  }

  .lead-form__submit {
    width: 100%;
  }
}

/* Keep page content available before the observer runs. */
.fade-in {
  opacity: 1;
  transform: none;
}

/* Keep all homepage section headings in the established sans-serif style. */
.figma-section h2,
.figma-section h3,
.sborka-quiz__head h2,
.sborka-about__title,
.sborka-team__title,
.sborka-team__name,
.sborka-design__card h3 {
  font-family: 'Rubik', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0;
}

/* Section labels use text only; the previous decorative dots were removed. */
.figma-kicker::before,
.services-showcase__title::before,
.property-strip__header h2::before,
.sborka-quiz__head h2::before {
  display: none;
}

.figma-kicker {
  gap: 0;
}

/* Yandex Maps review presentation */
.aristocrat-reviews {
  font-family: 'Rubik', 'Inter', sans-serif;
}

.aristocrat-reviews__summary {
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.aristocrat-reviews__icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.aristocrat-reviews__summary strong {
  color: #f4c44e;
  font-size: 2.35rem;
}

.aristocrat-reviews__stars,
.aristocrat-reviews__rating {
  color: #f4c44e;
}

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

.aristocrat-reviews__card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
  color: #21201f;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.aristocrat-reviews__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.aristocrat-reviews__head {
  align-items: flex-start;
  color: #21201f;
}

.aristocrat-reviews__head strong {
  position: relative;
  padding-left: 48px;
  color: #21201f;
  font-size: 1rem;
  line-height: 40px;
}

.aristocrat-reviews__head strong::before {
  display: none;
}

.aristocrat-reviews__head span,
.aristocrat-reviews__card small {
  color: #858585;
}

.aristocrat-reviews__author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.aristocrat-reviews__avatar {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffdf6d;
  color: #21201f !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.aristocrat-reviews__author strong,
.aristocrat-reviews__head strong {
  padding-left: 0;
  color: #21201f;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

/* Director copy stays left aligned and vertically centered. */
.sborka-about__content {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.sborka-about__actions {
  justify-content: flex-start;
}

/* Compact contact form before FAQ and footer. */
.lead-section {
  padding: 52px 0;
  background: #11201a;
}

.lead-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
  gap: 36px;
  align-items: center;
  padding: 30px 34px;
  background: #0d2117;
  border: 1px solid rgba(211, 187, 96, 0.36);
  border-radius: 6px;
}

.lead-panel__text h2 {
  max-width: 470px;
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}

.lead-form__fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
}

.lead-form input[type='text'],
.lead-form input[type='tel'],
.lead-form__submit {
  min-height: 46px;
}

.lead-form__consent {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
}

/* Footer and page ending */
.site-footer,
.footer-bottom {
  background: #11201a;
}

.site-footer {
  border-top-color: rgba(211, 187, 96, 0.14);
}

.messenger-widget {
  position: fixed;
  z-index: 960;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.messenger-widget__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.messenger-widget.is-open .messenger-widget__links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.messenger-widget__link,
.messenger-widget__toggle {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d3b95e;
  border-radius: 50%;
  background: #0d2117;
  color: #d3b95e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.messenger-widget__link:hover,
.messenger-widget__toggle:hover {
  background: #d3b95e;
  color: #0d2117;
}

.messenger-widget svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.messenger-widget__link--telegram svg {
  fill: currentColor;
  stroke: none;
}

/* Every heading uses the same family. */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.property-card-title,
.sborka-about__title,
.sborka-team__title,
.figma-section h2,
.figma-section h3 {
  font-family: 'Rubik', 'Inter', sans-serif !important;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .lead-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .lead-panel__text h2 {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .sborka-about__content {
    align-items: flex-start;
    text-align: left;
  }

  .sborka-about__actions {
    justify-content: flex-start;
  }

  .lead-section {
    padding: 38px 16px;
  }

  .lead-section .container {
    padding: 0;
  }

  .lead-panel {
    padding: 24px 20px;
  }

  .lead-panel__text h2 {
    font-size: 24px;
  }

  .lead-form__fields {
    grid-template-columns: 1fr;
  }
}

.aristocrat-reviews__rating {
  margin: 16px 0 12px;
  font-size: 1rem;
  letter-spacing: 2px;
}

.aristocrat-reviews__text,
.aristocrat-reviews__text p {
  color: #21201f !important;
  font-size: 0.92rem;
  line-height: 1.55;
}

.aristocrat-reviews__card small {
  margin-top: auto;
  padding-top: 16px;
}

.aristocrat-reviews__original {
  align-self: flex-start;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #196dff;
  font-size: 0.86rem;
  font-weight: 500;
}

.aristocrat-reviews__more,
.aristocrat-reviews__yandex {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: #f4c44e;
  color: #21201f;
  font-weight: 500;
}

.aristocrat-reviews__yandex {
  background: #fff;
}

@media (max-width: 1024px) {
  .aristocrat-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .aristocrat-reviews__grid {
    grid-template-columns: 1fr;
  }

  .aristocrat-reviews__card {
    min-height: 0;
  }
}

/* Compact property preview directly below hero */
.hot-offers {
  padding: 18px 30px 28px;
  background: #000;
}

.hot-offers__inner {
  max-width: 1540px;
  margin: 0 auto;
}

.hot-offers__scroller {
  grid-auto-rows: 218px;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  padding-bottom: 4px;
}

.hot-offers__scroller .property-card {
  min-width: 0;
  height: 218px !important;
  min-height: 218px;
  border: 1px solid rgba(211, 185, 94, 0.28);
  border-radius: 4px;
}

.hot-offers__scroller .property-card-image {
  height: 100%;
}

.hot-offers__scroller .property-card-image::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 30%, rgba(7, 19, 13, 0.94) 100%);
}

.hot-offers__scroller .property-badge,
.hot-offers__scroller .property-price-tag,
.hot-offers__scroller .property-card-location,
.hot-offers__scroller .property-card-specs,
.hot-offers__scroller .property-card-link {
  display: none;
}

.hot-offers__scroller .property-badge--offer-month,
.hot-offers__scroller .property-badge--sold {
  display: inline-flex;
}

.property-badge--offer-month {
  background: #d3b95e;
  color: #102019;
}

.property-badge--sold {
  background: #9b3e3e;
  color: #fff;
}

/* Align the consultation form and FAQ to the main content grid. */
.lead-section > .container,
.faq-section > .container {
  width: 100%;
  max-width: var(--container-width);
}

.lead-panel,
.faq-list {
  width: 100%;
  max-width: none;
}

.lead-panel {
  grid-template-columns: minmax(0, 1fr);
}

.lead-panel__text h2 {
  max-width: none;
}

.hot-offers__scroller .property-card-body {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 52px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(7, 19, 13, 0.92));
}

.hot-offers__scroller .property-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}

.hot-offers__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* The approved typography uses medium weights, not extra bold. */
.figma-section h2,
.sborka-quiz__head h2,
.sborka-about__title,
.sborka-team__title,
.property-strip__header h2,
.services-showcase__title {
  font-weight: 500;
}

.hero-title,
.hero-title-gold-bold,
.hero-title-gold,
.hero-subtitle,
.property-card-title,
.services-showcase__content strong {
  font-weight: 500;
}

.aristocrat-reviews__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aristocrat-reviews__card:nth-child(n + 9) {
  display: none;
}

@media (max-width: 1024px) {
  .aristocrat-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hot-offers {
    padding: 14px 16px 22px;
  }

  .hot-offers__scroller {
    grid-auto-columns: 74vw;
  }

  .hot-offers__scroller .property-card {
    height: 190px;
  }

  .aristocrat-reviews__grid {
    grid-template-columns: 1fr;
  }
}

/* Visit map */
.visit-media--map {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(219, 150, 65, 0.25);
  border-radius: 6px;
  background: #0d2117;
}

.visit-map {
  width: 100%;
  min-height: 420px;
  height: 100%;
  background: #0d2117;
}

.visit-map .leaflet-control-attribution {
  font-size: 10px;
}

.map-marker {
  width: 16px !important;
  height: 16px !important;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #db9641;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1024px) {
  .visit-media--map,
  .visit-map {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .visit-media--map,
  .visit-map {
    min-height: 280px;
  }
}

/* No eyebrow labels */
.figma-kicker {
  display: none !important;
}

/* One visual language for section headings */
.figma-section h2,
.sborka-design > .container > .sborka-design__head h2,
.sborka-team__title,
.property-strip__header h2,
.services-showcase__title,
.sborka-quiz__head h2,
.sborka-about__title {
  font-family: 'Rubik', 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

.services-showcase__title {
  font-size: 1rem;
}

.property-strip__header h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

/* One visual language for primary text buttons */
.hero-cta,
.hero-secondary-link,
.figma-button,
.services-showcase__more,
.property-strip__header a,
.property-card-link,
.sborka-about__button,
.sborka-quiz__next,
.lead-form__submit,
.aristocrat-reviews__more,
.aristocrat-reviews__yandex {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #d3b95e;
  border-radius: 3px;
  background: #0d2117;
  color: #d3b95e;
  font-family: 'Rubik', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.hero-cta:hover,
.hero-secondary-link:hover,
.figma-button:hover,
.services-showcase__more:hover,
.property-strip__header a:hover,
.property-card-link:hover,
.sborka-about__button:hover,
.sborka-quiz__next:hover,
.lead-form__submit:hover,
.aristocrat-reviews__more:hover,
.aristocrat-reviews__yandex:hover {
  background: #d3b95e;
  color: #0d2117;
}

/* Shared format for primary text actions */
.hero-cta,
.figma-button,
.services-showcase__more,
.property-strip__header a,
.property-card-link,
.sborka-about__button,
.sborka-quiz__next,
.lead-form__submit,
.aristocrat-reviews__more,
.aristocrat-reviews__yandex {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid #d3b95e;
  border-radius: 3px;
  background: #0d2117;
  color: #d3b95e;
  font-family: 'Rubik', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover,
.figma-button:hover,
.services-showcase__more:hover,
.property-strip__header a:hover,
.property-card-link:hover,
.sborka-about__button:hover,
.sborka-quiz__next:hover,
.lead-form__submit:hover,
.aristocrat-reviews__more:hover,
.aristocrat-reviews__yandex:hover {
  transform: translateY(-1px);
  background: #d3b95e;
  color: #0d2117;
}

.sborka-about__button {
  min-width: 210px;
}

@media (max-width: 640px) {
  .sborka-about__actions,
  .sborka-about__button {
    width: 100%;
  }

  .sborka-about__content {
    align-items: center;
    padding: 36px 22px 42px;
    text-align: center;
  }
}

/* Yandex Maps-inspired reviews and equal-height visit columns. */
.aristocrat-reviews__card {
  min-height: 300px;
  border-color: #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
}

.aristocrat-reviews__author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.aristocrat-reviews__avatar {
  display: inline-flex !important;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: #ffdc60;
  color: #21201f !important;
  box-shadow: 0 0 0 1px rgba(33, 32, 31, 0.1);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.aristocrat-reviews__avatar--0 { background: #ffdc60; }
.aristocrat-reviews__avatar--1 { background: #b8e4ff; }
.aristocrat-reviews__avatar--2 { background: #c9edc7; }
.aristocrat-reviews__avatar--3 { background: #ffd0c7; }
.aristocrat-reviews__avatar--4 { background: #d9d2ff; }
.aristocrat-reviews__avatar--5 { background: #f5c9e3; }

.aristocrat-reviews__author strong,
.aristocrat-reviews__head strong {
  min-width: 0;
  padding-left: 0;
  line-height: 1.25;
}

.aristocrat-reviews__yandex {
  gap: 10px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #ffcc00;
  border-radius: 8px;
  background: #ffcc00;
  color: #21201f;
  box-shadow: none;
}

.aristocrat-reviews__yandex:hover {
  border-color: #f2c200;
  background: #f2c200;
  color: #21201f;
}

.aristocrat-reviews__yandex-mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #f33;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.aristocrat-reviews__yandex-arrow {
  font-size: 18px;
  line-height: 1;
}

.visit-grid {
  align-items: stretch;
}

.visit-content,
.visit-media--map,
.visit-map {
  min-height: 440px;
}

.visit-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 0;
}

.visit-media--map {
  height: 100%;
}

/* Homepage polish: consistent widths, typography and aligned actions. */
.main-nav .menu li a,
.header-address {
  font-size: 16px;
  line-height: 1.25;
}

.header-phone {
  font-size: 16px;
}

@media (min-width: 1025px) {
  .header-inner {
    gap: 18px;
    padding-right: 30px;
    padding-left: 30px;
  }

  .main-nav .menu {
    gap: 24px;
  }

  .header-actions {
    gap: 14px;
  }

  .header-phone {
    padding-right: 14px;
    padding-left: 14px;
  }
}

.hero-secondary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid #d3b95e;
  border-radius: 3px;
  background: #0d2117;
  white-space: nowrap;
}

.services-showcase__head {
  justify-content: flex-start;
  margin-bottom: 28px;
}

.services-showcase__title {
  color: #f0f0f0;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  text-decoration: none;
  text-transform: none;
}

.property-card,
.property-card-body {
  display: flex;
  flex-direction: column;
}

.property-card-body {
  flex: 1;
}

.property-card-specs {
  margin-bottom: 18px;
}

.property-card-link {
  width: fit-content;
  margin-top: auto;
}

.company-video-section > .container {
  max-width: 1540px;
}

.company-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.company-video-card {
  width: 100%;
  max-height: none;
}

.aristocrat-reviews__yandex-mark svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: #f33;
}

.visit-grid {
  align-items: stretch;
}

.visit-content,
.visit-media--map {
  height: auto;
  min-height: 500px;
}

.visit-content {
  padding: 0;
}

.visit-media--map,
.visit-map {
  min-height: 500px;
}

.visit-media--map {
  display: flex;
}

.visit-map {
  flex: 1;
}

.site-logo img,
.site-logo .custom-logo {
  height: 60px;
  max-height: 60px;
  width: auto;
}

.footer-about .site-logo img,
.footer-about .custom-logo {
  height: 72px;
  max-height: 72px;
}

.footer-about p,
.footer-links li a,
.footer-contacts li,
.footer-contacts li a,
.footer-bottom p {
  color: #fff;
}

.footer-social a {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(90deg, #d3b95e 0%, rgba(211, 185, 94, 0) 100%) border-box;
  color: #d3b95e;
}

.footer-social a svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.footer-social a:hover {
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(90deg, #d3b95e 0%, rgba(211, 185, 94, 0.4) 100%) border-box;
  color: #f0f0f0;
}

.video-widget {
  position: fixed;
  z-index: 950;
  bottom: 24px;
  left: 24px;
  width: 164px;
  overflow: visible;
  border: 0;
  border-radius: 10px;
  background: #0d2117;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.video-widget[hidden] {
  display: none;
}

.video-widget__link {
  display: block;
  overflow: hidden;
  border-radius: 9px;
  color: #f0f0f0;
}

.video-widget video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  background: #000;
}

.video-widget__link span {
  display: block;
  padding: 9px 10px 10px;
  color: #d3b95e;
  font-family: 'Rubik', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.video-widget__close {
  position: absolute;
  z-index: 2;
  top: -10px;
  right: -10px;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(211, 185, 94, 0.65);
  border-radius: 50%;
  background: #0d2117;
  color: #f0f0f0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .visit-content,
  .visit-media--map,
  .visit-map {
    min-height: 400px;
  }

  .visit-content,
  .visit-media--map {
    height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    padding: 8px 10px;
    background: #000;
  }

  .header-inner {
    height: 70px;
    gap: 10px;
    padding: 0 12px;
  }

  .site-logo img,
  .site-logo .custom-logo {
    height: 52px;
    max-height: 52px;
  }

  .header-actions {
    display: flex;
    margin-left: auto;
  }

  .header-address,
  .header-phone {
    display: none;
  }

  .header-social--mobile-visible {
    display: flex;
    gap: 8px;
  }

  .header-social a {
    width: 34px;
    height: 34px;
  }

  .mobile-menu {
    top: 0;
    padding-top: 92px;
  }

  .hero-shell {
    display: flex;
  }

  .hero-right {
    order: -1;
    width: 100%;
    min-height: 320px;
    background-position: center;
  }

  .property-strip__scroller {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .property-strip__scroller--woocommerce .property-card {
    width: 100%;
    min-width: 0;
  }

  .property-strip__nav {
    display: none;
  }

  .sborka-team .container {
    padding-right: 0;
  }

  .company-video-section > .container {
    padding-right: 16px;
  }

  .company-video-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-right: 0;
  }

  .company-video-card {
    max-height: none;
  }

  .aristocrat-reviews__card {
    min-height: 0;
  }

  .aristocrat-reviews__yandex {
    width: 100%;
    white-space: normal;
    text-align: left;
  }

  .visit-content {
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .visit-media--map,
  .visit-map {
    height: 280px;
    min-height: 280px;
  }

  .messenger-widget {
    right: 14px;
    bottom: 14px;
  }

  .messenger-widget__link,
  .messenger-widget__toggle {
    width: 46px;
    height: 46px;
  }

  .video-widget {
    bottom: 16px;
    left: 16px;
    width: 116px;
  }

  .video-widget video {
    aspect-ratio: 9 / 12;
  }

  .video-widget__link span {
    padding: 7px 6px 8px;
    font-size: 11px;
  }
}

/* Final homepage layout corrections. */
.hero-left::before {
  display: none;
}

.company-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
}

.visit-grid {
  align-items: stretch;
}

.visit-content,
.visit-media--map {
  height: auto;
  min-height: 0;
}

.visit-media--map {
  display: flex;
}

.visit-map {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

@media (max-width: 640px) {
  .hero-shell {
    flex-direction: column;
  }

  .hero-right {
    order: -1;
    width: 100%;
    min-height: 320px;
  }

  .hero-left {
    order: 0;
  }

  .company-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 12px;
  }

  .company-video-card {
    max-height: none;
  }

  .visit-grid {
    display: flex;
    flex-direction: column;
  }

  .visit-content {
    order: 0;
    min-height: 0;
  }

  .visit-media--map {
    order: 1;
    height: 280px;
    min-height: 280px;
  }

  .visit-map {
    height: 280px;
    min-height: 280px;
  }
}

/* Keep reviews aligned with the wide homepage sections. */
.reviews-section > .container,
.aristocrat-reviews {
  width: 100%;
  max-width: 1540px;
}

.aristocrat-reviews__grid {
  width: 100%;
}

@media (max-width: 640px) {
  .reviews-section > .container {
    width: auto;
    max-width: none;
  }
}

/* About company page */
.about-page {
  background: #000;
  color: #f0f0f0;
}

.about-page__container,
.about-page__hero-inner {
  width: calc(100% - 60px);
  max-width: 1540px;
  margin: 0 auto;
}

.about-page h1,
.about-page h2 {
  font-family: 'Rubik', 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.about-page h2 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.about-page__hero {
  padding: 0 0 72px;
}

.about-page__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 620px;
  overflow: hidden;
  border-radius: 5px;
  background: #0d2117;
}

.about-page__hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(42px, 6vw, 86px);
}

.about-page__eyebrow {
  margin-bottom: 18px;
  color: #d3b95e;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.about-page__hero h1 {
  margin-bottom: 24px;
  color: #d3b95e;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.98;
}

.about-page__hero p {
  max-width: 640px;
  margin-bottom: 34px;
  color: #fff;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}

.about-page__hero-media {
  min-height: 620px;
}

.about-page__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page__intro,
.about-page__life,
.about-page__videos {
  padding: 86px 0;
}

.about-page__intro {
  background: #11201a;
}

.about-page__intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 8vw, 130px);
  align-items: start;
}

.about-page__intro-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.about-page__intro-copy p,
.about-page__section-head p,
.about-page__director-copy p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.about-page__director {
  padding: 86px 0;
  background: #000;
}

.about-page__director-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  overflow: hidden;
  border: 1px solid rgba(211, 185, 94, 0.28);
  border-radius: 5px;
  background: #0d2117;
}

.about-page__director-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(38px, 5vw, 74px);
}

.about-page__director-copy h2 {
  margin-bottom: 28px;
  color: #d3b95e;
}

.about-page__director-copy .figma-button {
  margin-top: 16px;
}

.about-page__director-media {
  min-height: 620px;
}

.about-page__director-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-page__life {
  background: #11201a;
}

.about-page__section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.about-page__section-head p {
  max-width: 620px;
  margin: 0;
}

.about-page__gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 14px;
}

.about-page__gallery-item {
  grid-column: span 3;
  overflow: hidden;
  border-radius: 4px;
}

.about-page__gallery-item--1,
.about-page__gallery-item--6 {
  grid-column: span 6;
  grid-row: span 2;
}

.about-page__gallery-item--2,
.about-page__gallery-item--5 {
  grid-column: span 3;
  grid-row: span 2;
}

.about-page__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.about-page__gallery-item:hover img {
  transform: scale(1.035);
}

.about-page__videos {
  background: #000;
}

.about-page__cta {
  padding: 64px 0;
  background: #11201a;
}

.about-page__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

@media (max-width: 900px) {
  .about-page__hero-inner,
  .about-page__intro-grid,
  .about-page__director-card {
    grid-template-columns: 1fr;
  }

  .about-page__hero-media {
    order: -1;
    min-height: 430px;
  }

  .about-page__director-media {
    order: -1;
    min-height: 520px;
  }

  .about-page__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 280px;
  }

  .about-page__gallery-item,
  .about-page__gallery-item--1,
  .about-page__gallery-item--2,
  .about-page__gallery-item--5,
  .about-page__gallery-item--6 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .about-page__container,
  .about-page__hero-inner {
    width: calc(100% - 32px);
  }

  .about-page__hero {
    padding-bottom: 44px;
  }

  .about-page__hero-inner {
    min-height: 0;
  }

  .about-page__hero-media {
    min-height: 330px;
  }

  .about-page__hero-copy,
  .about-page__director-copy {
    padding: 34px 22px 40px;
  }

  .about-page__intro,
  .about-page__director,
  .about-page__life,
  .about-page__videos {
    padding: 58px 0;
  }

  .about-page__intro-copy {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-page__director-media {
    min-height: 420px;
  }

  .about-page__section-head,
  .about-page__cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-page__gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .about-page__gallery-item,
  .about-page__gallery-item--1,
  .about-page__gallery-item--2,
  .about-page__gallery-item--5,
  .about-page__gallery-item--6 {
    grid-column: 1;
    grid-row: auto;
  }

  .about-page__cta-inner .figma-button {
    width: 100%;
  }
}

/* Align the mobile quiz with the page content edges. */
@media (max-width: 640px) {
  .sborka-wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sborka-quiz > .container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .sborka-quiz__card {
    width: 100%;
  }
}

/* Company video carousel */
.company-video-carousel {
  position: relative;
}

.company-video-carousel .company-video-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.company-video-carousel .company-video-grid::-webkit-scrollbar {
  display: none;
}

.company-video-carousel .company-video-card {
  width: 100%;
  max-height: none;
  scroll-snap-align: start;
}

.company-video-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.company-video-progress {
  position: relative;
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(211, 185, 94, 0.14);
}

.company-video-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(211, 185, 94, 0.35), #d3b95e);
  transition: width 0.3s ease, transform 0.3s ease;
}

.company-video-arrows {
  display: inline-flex;
  gap: 8px;
}

.company-video-arrow {
  display: inline-flex;
  width: 42px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(135deg, rgba(211, 185, 94, 0.22), #d3b95e) border-box;
  color: #d3b95e;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.company-video-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #f0f0f0;
}

.company-video-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 1024px) {
  .company-video-carousel .company-video-grid {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .company-video-carousel .company-video-grid {
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px;
    overflow-x: auto;
    padding-right: 0;
  }

  .company-video-nav {
    margin-top: 12px;
  }
}

/* Mobile and tablet hero photo: use the cropped team photo without baked-in text. */
@media (max-width: 900px) {
  .hero-right {
    max-height: none;
    background-image: url('assets/images/hero-mobile.jpg');
    background-position: center top;
    background-size: cover;
  }
}

@media (max-width: 640px) {
  .hero-right {
    min-height: 0;
    aspect-ratio: 4 / 3;
    background-image: url('assets/images/hero-mobile.jpg');
    background-position: center top;
    background-size: cover;
    border-radius: 5px 5px 0 0;
  }
}

/* Mobile hero: photo and text form one solid block. */
@media (max-width: 900px) {
  .hero-shell {
    gap: 0;
  }
}

@media (max-width: 640px) {
  .hero-shell {
    gap: 0;
    border-radius: 5px;
  }

  .hero-right {
    border-radius: 5px 5px 0 0;
  }

  .hero-left {
    border-radius: 0 0 5px 5px;
  }
}

/* Reviews: larger rating icon. */
.aristocrat-reviews__icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  flex-basis: 56px;
}

@media (max-width: 640px) {
  .aristocrat-reviews__icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    flex-basis: 46px;
  }
}

/* Reviews: the Yandex link matches every other primary button. */
.aristocrat-reviews__yandex {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid #d3b95e;
  border-radius: 3px;
  background: #0d2117;
  color: #d3b95e;
  box-shadow: none;
  font-family: 'Rubik', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.aristocrat-reviews__yandex:hover {
  transform: translateY(-1px);
  border-color: #d3b95e;
  background: #d3b95e;
  color: #0d2117;
}

.aristocrat-reviews__yandex-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 0;
  background: transparent;
}

.aristocrat-reviews__yandex-mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.aristocrat-reviews__yandex:hover .aristocrat-reviews__yandex-mark svg {
  fill: #0d2117;
}

/* Visit block: same width as the other wide sections and equal column heights. */
.visit-section > .container {
  width: 100%;
  max-width: 1540px;
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 40px;
}

.visit-content,
.visit-media--map {
  height: 100%;
  min-height: 0;
}

.visit-media--map {
  display: flex;
  align-self: stretch;
}

.visit-map {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}

@media (max-width: 900px) {
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .visit-section > .container {
    max-width: none;
  }

  .visit-grid {
    display: flex;
    flex-direction: column;
  }

  .visit-content {
    height: auto;
  }

  .visit-media--map,
  .visit-map {
    height: 280px;
    min-height: 280px;
  }
}

/* Visit section: symmetric vertical padding, matching the neighbouring sections. */
.visit-section {
  padding-top: 88px;
  padding-bottom: 88px;
  background: #11201a;
}

@media (max-width: 900px) {
  .visit-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 640px) {
  .visit-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Mobile sticky header: the black bar ends flush with the nav strip. */
@media (max-width: 640px) {
  .site-header {
    padding-bottom: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .site-header .header-inner {
    margin-bottom: 0;
  }
}

/* Even vertical rhythm across the sborka sections. */
.sborka-quiz,
.sborka-about,
.sborka-design,
.sborka-team {
  padding-top: 56px;
  padding-bottom: 56px;
}

.sborka-about__card {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .sborka-quiz,
  .sborka-about,
  .sborka-design,
  .sborka-team {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .sborka-about__card {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .sborka-quiz,
  .sborka-about,
  .sborka-design,
  .sborka-team {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .sborka-about__card {
    margin-bottom: 0;
  }
}

/* Property gallery on the single object page */
.property-gallery {
  margin-bottom: 24px;
}

.property-gallery__stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(211, 185, 94, 0.28);
  border-radius: 5px;
  background: #07130d;
  aspect-ratio: 4 / 3;
}

.property-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.property-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.property-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(211, 185, 94, 0.6);
  border-radius: 50%;
  background: rgba(13, 33, 23, 0.82);
  color: #d3b95e;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.property-gallery__arrow:hover {
  background: #d3b95e;
  color: #0d2117;
}

.property-gallery__arrow--prev {
  left: 14px;
}

.property-gallery__arrow--next {
  right: 14px;
}

.property-gallery__counter {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(211, 185, 94, 0.4);
  border-radius: 999px;
  background: rgba(13, 33, 23, 0.86);
  color: #d3b95e;
  font-family: 'Rubik', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.property-gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 104px;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.property-gallery__thumb {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(211, 185, 94, 0.22);
  border-radius: 4px;
  background: #07130d;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.property-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery__thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(211, 185, 94, 0.6);
}

.property-gallery__thumb.is-active {
  border-color: #d3b95e;
}

@media (max-width: 640px) {
  .property-gallery__stage {
    aspect-ratio: 3 / 2;
  }

  .property-gallery__arrow {
    width: 38px;
    height: 38px;
  }

  .property-gallery__thumbs {
    grid-auto-columns: 84px;
    gap: 8px;
  }
}
