/* ============================================================
   VILLAS HOME — front page (desktop, pixel-faithful to Figma)
   node 2920:3401 — Villas Design / Wordpress Theme
   Everything is scoped under body.villas-home and prefixed .v-
   so it never collides with the existing (CS2) theme styles.
   ============================================================ */

:root {
  --v-bg: #0e0e0e;
  --v-surface: #1a1a1a;
  --v-surface-2: #242424;
  --v-chip: #292929;
  --v-gold: #ffdea3;
  --v-gold-line: #d8be96;
  --v-grad: linear-gradient(269deg, #9a744e 1%, #f3d1a4 49%, #c19464 100%);
  --v-text: #ffffff;
  --v-dim: #a6a6a6;
  --v-dim-2: rgba(245, 243, 238, .6);
  --v-dark: #332c21;
  --v-line: rgba(255, 255, 255, .05);
  --v-line-2: rgba(255, 255, 255, .1);
  --v-serif: "IBM Plex Sans", serif;
  --v-sans: "Manrope", sans-serif;
}

/* ---------- scoped reset ---------- */
body.villas-home {
  margin: 0;
  background: var(--v-bg);
  color: var(--v-text);
  font-family: var(--v-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  cursor: pointer;
}

.villas-home *,
.villas-home *::before,
.villas-home *::after {
  box-sizing: border-box;
}

/* Reset only the browser's DEFAULT margins on these elements. `:where()` keeps
   the selector at low specificity (0,1,0) so any authored `.v-*` margin wins —
   previously `.villas-home h2 {…}` (0,1,1) silently ate component margins. */
.villas-home :where(h1, h2, h3, h4, p, figure) {
  margin: 0;
}

.villas-home ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.villas-home a {
  text-decoration: none;
}

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

.villas-home input {
  font: inherit;
}

.villas-home svg {
  display: block;
}

/* Kill legacy CS2 background effects on villas pages (glow wash, hero orbs,
   "just purchased" toasts) in case those assets are ever still enqueued. */
body.villas-home::before,
body.villas-home::after {
  content: none !important;
  background: none !important;
  animation: none !important;
  display: none !important;
}

.villas-home .toast-area,
.villas-home .hero__orb,
.villas-home .hero__glow,
.villas-home .cta__glow,
.villas-home [class*="__glow"],
.villas-home .hero__particles-canvas {
  display: none !important;
}

/* Hide WoodMart chrome injected via wp_footer (sticky toolbar, mobile menu,
   off-canvas cart/search) — unstyled on villas pages since woodmart CSS is dequeued. */
.villas-home .wd-toolbar,
.villas-home .wd-sticky-nav,
.villas-home #wd-mobile-menu,
.villas-home .wd-cart-sidebar,
.villas-home .wd-search-full-screen,
.villas-home .mobileGallery-overlay,
.villas-home .wd-popup {
  display: none !important;
}

/* ---------- layout helpers ---------- */
.v-container {
  width: min(1760px, calc(100% - 160px));
  margin: 0 auto;
}

.v-container--narrow {
  width: min(1760px, calc(100% - 160px)) !important;
  margin: 0 auto;
}

.v-section {
  position: relative;
}

.v-main {
  /* `clip` (not `hidden`) keeps horizontal-bleed clipping WITHOUT creating a
     scroll container — otherwise `position: sticky` (e.g. .v-jk-nav) breaks. */
  overflow-x: clip;
}

/* ---------- shared typography ---------- */
.v-h2 {
  font-family: var(--v-sans);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -.48px;
  text-transform: uppercase;
  color: var(--v-text);
}

/* accent word in headings: IBM Plex Sans, light, italic */
.v-i {
  font-family: var(--v-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--v-gold);
}

.v-lead {
  font-size: 24px;
  line-height: 1.06;
  color: var(--v-dim-2);
  max-width: 1033px;
}

/* section link — gold underline, "→" */
.v-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: .78px;
  text-transform: uppercase;
  color: var(--v-gold);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--v-gold);
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.v-link svg {
  width: 22px;
  height: 22px;
  transition: transform .2s ease;
}

.v-link:hover {
  color: #fff;
  border-color: #fff;
  transform: translateX(3px);
}

.v-link:hover svg {
  transform: translate(4px, -4px);
}

/* section head (title left, link right) */
.v-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.v-head__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* gold pill buttons (gradient) */
.v-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 80px;
  padding: 0 40px;
  border-radius: 16px;
  background: linear-gradient(270deg, #9A744E -1.36%, #F3D1A4 49.27%, #C19464 99.89%);
  color: var(--text-color, #332C21);
  border: 1px solid rgba(255, 255, 255, 0.20);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .4px;
  text-transform: uppercase;
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, .2);
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.v-btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-3px);
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, .2), 0 16px 34px rgba(243, 209, 164, .3);
}

.v-btn-gold:active {
  transform: translateY(-1px);
}

/* ============================================================
   HEADER  (absolute, transparent, over hero)
   ============================================================ */
.v-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 30px 0;
  transition: padding .25s ease, background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}

.v-header.is-scrolled {
  padding: 14px 0;
  background: rgba(14, 14, 14, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, .08);
}

.v-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.v-logo img {
  height: 52px;
  width: auto;
  transition: height .25s ease;
}
.v-logo img,
.v-header.is-scrolled .v-logo img {
  height: 44px;
}

.v-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
}

.v-nav a {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  transition: color .15s ease;
  white-space: nowrap;
}

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

.v-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.v-iconbtn {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  color: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.v-iconbtn__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--v-grad);
  color: var(--v-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.v-iconbtn__badge[hidden] {
  display: none;
}

.v-iconbtn:hover {
  border-color: var(--v-gold);
}

.v-iconbtn svg {
  width: 20px;
  height: 20px;
}

.v-loc {
  background: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, .15);
  font-size: 15px;
  color: #fff;
}

.v-loc .v-loc__pin {
  width: 18px;
  height: 18px;
  color: var(--v-gold);
}

.v-loc .v-loc__caret {
  width: 11px;
  height: 11px;
  opacity: .7;
}

.v-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 4px;
  padding-left: 4px;
}

.v-phone__num {
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  letter-spacing: .2px;
}

.v-phone__cap {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

/* ============================================================
   HERO
   ============================================================ */
.v-hero {
  position: relative;
  height: 1080px;
  overflow: hidden;
  background: #0e0e0e;
}

.v-hero__bg {
  position: absolute;
  inset: 0;
}

.v-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(42deg, rgba(14, 14, 14, 1) 7%, rgba(14, 14, 14, .2) 50%);
}

.v-hero__inner {
  position: relative;
  height: 100%;
}

.v-hero__content {
  position: absolute;
  top: 300px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}

.v-hero__title {
  font-family: var(--v-sans);
  font-weight: 600;
  font-size: 80px;
  line-height: 1.1;
  letter-spacing: -.8px;
  text-transform: uppercase;
  color: #fff;
  width: 625px;
}

.v-hero__sub {
  font-size: 24px;
  line-height: 1.5;
  color: #f5f3ee;
  max-width: 600px;
}

.v-hero__cta {
  margin-top: 0;
}

.v-hero__cta.v-btn-gold {

  border: 1px solid rgba(255, 255, 255, 0.20);
  background: linear-gradient(270deg, #9A744E -1.36%, #F3D1A4 49.27%, #C19464 99.89%);
}

.v-hero__features {
  position: absolute;
  top: 952px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.v-feature {
  display: flex;
  align-items: center;
  gap: 13px;
}

.v-feature__ic {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--v-gold-line);
  border-radius: 16px;
  color: var(--v-gold);
}

.v-feature__ic svg {
  width: 24px;
  height: 24px;
}

.v-feature p {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .32px;
  line-height: 1.25;
  color: #fff;
}

/* ============================================================
   ABOUT  (О Компании)
   ============================================================ */
.v-about {
  padding-top: 120px;
}

.v-about__grid {
  display: grid;
  grid-template-columns: 580px 1fr;
  gap: 80px;
  align-items: center;
}

.v-about__title {
  margin-bottom: 32px;
}

.v-about__text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--v-dim-2);
}

.v-about__text+.v-about__text {
  margin-top: 28px;
  padding-left: 28px;
  border-left: 4px solid var(--v-gold);
}

.v-about__media {
  position: relative;
  /* height: 600px; */
  border-radius: 20px;
  overflow: hidden;
}

.v-about__media img {
  width: 100%;
  object-fit: cover;
}

.v-about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0) 55%, rgba(14, 14, 14, .55) 100%);
}

/* ============================================================
   ЖК CARDS  (Подборка актуальных ЖК)
   ============================================================ */
.v-blocks {
  padding-top: 120px;
}

.v-blocks__row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.v-card {
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.v-card:hover {
  border-color: rgba(255, 222, 163, .35);
  transform: translateY(-4px);
}

.v-card__media {
  position: relative;
  height: 290px;
  overflow: hidden;
}

.v-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--v-gold);
  color: var(--v-dark);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 16px;
}

.v-tag--blur {
  background: rgba(14, 14, 14, .6);
  backdrop-filter: blur(4px);
  color: #fff;
  letter-spacing: .8px;
  padding: 4px 10px;
}

.v-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  border: none;
  background: rgba(255, 255, 255, .9);
  color: #1a1a1a;
  transition: background .15s ease, color .15s ease;
}

.v-fav svg {
  width: 16px;
  height: 16px;
}

.v-fav:hover {
  background: var(--v-gold);
}

.v-fav.is-active {
  color: #d23;
}

.v-fav.is-active svg {
  fill: #d23;
}

.v-card__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-card__name {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
}

/* Card titles / prices / media are now real product links — inherit the design
   colour instead of the default blue, and drop the underline. */
.v-card__name a,
.v-flat__price a,
.v-nov__name a,
.v-card__media a,
.v-flat__media a,
.v-nov__media a {
  color: inherit;
  text-decoration: none;
}
.v-card__name a:hover,
.v-flat__price a:hover,
.v-nov__name a:hover {
  color: var(--v-gold);
}

.v-card__price-row {
  display: flex;
  flex-wrap: wrap; /* если в строку не помещается — цена и площадь встают в столбик */
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 10px;
}

.v-card__price {
  font-family: var(--v-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  font-feature-settings: "case" 1;
  white-space: nowrap; /* сумма не разрывается посреди числа */
}

.v-card__area {
  font-size: 13px;
  color: var(--v-dim);
  white-space: nowrap; /* «м²» не отрывается от числа */
}

.v-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.v-meta__item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--v-dim);
  white-space: nowrap;
}

.v-meta__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--v-dim);
}

.v-meta__item--gold {
  color: var(--v-gold);
}

.v-meta__item--gold svg {
  color: var(--v-gold);
}

.v-meta__dev {
  font-size: 12px;
  color: #9a9a9a;
}

.v-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--v-chip);
  border: 1px solid rgba(237, 234, 227, .1);
  font-size: 11px;
  line-height: 1.6;
  color: var(--v-dim);
  white-space: nowrap;
}

/* ============================================================
   FLATS  (Квартиры в новостройках) + filter tabs
   ============================================================ */
.v-flats {
  padding-top: 120px;
}

.v-flats__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.v-flats__left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.v-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.v-tab {
  padding: 9px 21px;
  border-radius: 100px;
  border: 1px solid var(--v-line-2);
  background: transparent;
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  transition: all .15s ease;
}

.v-tab:hover {
  border-color: var(--v-gold);
  color: #fff;
}

.v-tab.is-active {
  background: var(--v-gold);
  border-color: var(--v-gold);
  color: var(--v-dark);
  font-weight: 600;
}

.v-flats__row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.v-flat {
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.v-flat:hover {
  border-color: rgba(255, 222, 163, .35);
  transform: translateY(-4px);
}

.v-flat__media {
  position: relative;
  height: 190px;
  background: #edeae3;
  overflow: hidden;
}

.v-flat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-flat__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v-flat__top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-flat__price {
  font-family: var(--v-serif);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  font-feature-settings: "case" 1;
}

.v-flat__spec {
  font-size: 16px;
  line-height: 1.35;
  color: #fff;
}

.v-flat__jk {
  font-size: 12px;
  color: var(--v-gold);
}

.v-flat__hand {
  font-size: 11px;
  color: #9a9a9a;
}

/* --- CTA card (персональный подбор) — последняя ячейка сетки квартир --- */
.v-flat-cta {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 222, 163, .07), rgba(255, 222, 163, .015)),
    var(--v-surface);
  border: 1px solid var(--v-gold-line);
  border-radius: 16px;
  overflow: hidden;
}

.v-flat-cta__media {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.v-flat-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-flat-cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, .05) 35%, rgba(14, 14, 14, .9));
}

.v-flat-cta__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 16px;
}

.v-flat-cta__sub {
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--v-gold);
}

.v-flat-cta__title {
  font-family: var(--v-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.v-flat-cta__btn {
  margin-top: auto;
  width: 100%;
  height: auto;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .3px;
  text-align: center;
  border-radius: 12px;
}

.v-flat-cta__note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: #9a9a9a;
}

.v-flat-cta__note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--v-gold);
}

/* ============================================================
   CTA — Скачайте каталог
   ============================================================ */
.v-catalog {
  padding-top: 120px;
}

.v-catalog__grid {
  display: grid;
  grid-template-columns: 1fr 620px;
  align-items: center;
  gap: 90px;
  position: relative;
}

.v-catalog__info {
  max-width: 580px;
}

.v-catalog__title {
  font-family: var(--v-sans);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -.48px;
  text-transform: uppercase;
  color: #fff;
}

.v-catalog__desc {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--v-dim-2);
}

/* book straddles the form's padded left edge (Figma node 2920:3539, 324×324) */
.v-catalog__book {
  position: absolute;
  left: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 324px;
  z-index: 2;
  pointer-events: none;
  filter:
    drop-shadow(0 25px 25px rgba(253, 223, 183, .09))
    drop-shadow(0 6px 14px rgba(253, 223, 183, .10));
}

.v-form {
  position: relative;
  background: var(--v-surface-2);
  border: 1px solid rgba(201, 169, 110, .2);
  border-radius: 24px;
  padding: 40px 40px 40px 200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.v-input {
  width: 100%;
  height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 14px;
}

.v-input::placeholder {
  color: rgba(255, 255, 255, .3);
}

.v-input:focus {
  outline: none;
  border-color: var(--v-gold);
}

.v-form__label {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .88px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
}

.v-msgr {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v-msgr__btn {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 6px;
  border-radius: 8px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  transition: all .15s ease;
}

.v-msgr__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.v-msgr__btn.is-active {
  background: rgba(201, 169, 110, .07);
  border-color: var(--v-gold);
  color: var(--v-gold);
}

.v-msgr__btn:hover {
  border-color: var(--v-gold);
  color: var(--v-gold);
}

.v-form__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v-form__group--msgr {
  gap: 8px;
}

.v-form__submit {
  width: 100%;
}

.v-form__note {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .4);
  text-align: center;
}

.v-form__note a {
  color: rgba(255, 255, 255, .6);
  text-decoration: underline;
}

/* ============================================================
   REVIEWS  (Уже успели заселиться)
   ============================================================ */
.v-reviews {
  padding-top: 120px;
}

.v-reviews__bar {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 32px;
}

.v-rate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 56px;
  border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.v-rate:hover {
  border-color: var(--v-gold-line);
}

/* "Наши отзывы" tab uses a stacked (column) layout */
.v-rate--ours {
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  align-items: flex-start;
}

/* active tab highlight (moves between sources) */
.v-rate--active {
  border-color: var(--v-gold);
  background: rgba(201, 169, 110, .05);
}

.v-rate__score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}

.v-rate__score .v-star {
  color: var(--v-gold);
}

.v-rate__cap {
  font-size: 12px;
  color: var(--v-dim);
}

.v-rate__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
}

.v-rate__logo--g {
  background: #fff;
  color: #4285f4;
  border-radius: 50%;
  font-family: Arial, sans-serif;
}

.v-rate__logo--y {
  background: #fc3f1d;
  color: #fff;
  border-radius: 8px;
}

.v-rate__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-reviews__row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.v-review {
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-review__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v-review__ava {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 110, .15);
  color: var(--v-gold);
  font-weight: 600;
  font-size: 13px;
}

.v-review__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v-review__name {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.v-review__jk {
  font-size: 12px;
  font-style: italic;
  color: var(--v-dim);
}

.v-review__stars {
  margin-left: auto;
  display: flex;
  gap: 2px;
  color: var(--v-gold);
  font-size: 14px;
}

.v-review__stars .is-off {
  color: rgba(255, 255, 255, .2);
}

.v-review__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--v-dim);
}

.v-review__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v-review__date {
  font-size: 13px;
  color: #7d7d7d;
}

.v-review__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--v-gold);
}

.v-review__more svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   BLOG  (Статьи и новости)
   ============================================================ */
.v-blog {
  padding-top: 120px;
}

.v-blog__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* featured (first) card — NOT 4:3; stretches to match the two side cards */
.v-blog__feat {
  position: relative;
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.v-blog__feat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-blog__feat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0) 35%, rgba(14, 14, 14, .9) 100%);
}

.v-blog__feat-body {
  position: relative;
  z-index: 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v-blog__feat-title {
  font-family: var(--v-serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.12;
  color: #fff;
}

.v-blog__feat-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .75);
  max-width: 560px;
}

.v-blog__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-article {
  display: grid;
  grid-template-columns: minmax(0, 42%) 1fr;
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}

/* 4:3 image, fixed regardless of body height */
.v-article__media {
  aspect-ratio: 4 / 3;
  padding: 8px;
}

.v-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.v-article__body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.v-article__cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--v-gold);
}

.v-article__cat::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--v-gold);
}

h3.v-article__title {
  margin-top: 12px;
  margin-bottom: 10px;
  font-family: var(--v-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-article__excerpt {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--v-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-article__date {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  color: #7d7d7d;
}

.v-tag-pill {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(14, 14, 14, .6);
  backdrop-filter: blur(4px);
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
}

/* ============================================================
   CTA — Не нашли нужный ЖК
   ============================================================ */
.v-consult {
  padding-top: 120px;
}

.v-consult__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 28px;
  overflow: hidden;
}

.v-consult__info {
  padding: 48px;
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(201, 169, 110, .12) 0%, rgba(14, 14, 14, 0) 55%),
    linear-gradient(120deg, #262320 0%, #161412 60%, #100f0d 100%);
  border: 1px solid rgba(201, 169, 110, .18);
}

.v-consult__title {
  font-family: var(--v-sans);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -.48px;
  text-transform: uppercase;
  color: #fff;
  max-width: 1100px;
}

.v-consult__desc {
  margin-top: 20px;
  font-size: 18px;
  color: var(--v-dim-2);
  max-width: 1100px;
}

.v-consult__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 148px;
  padding: 0 24px 0 48px;
  background: var(--v-grad);
  border-radius: 28px;
}

.v-consult__cta-text {
  font-family: var(--v-sans);
  font-weight: 600;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--v-dark);
}

.v-consult__arrow {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #1a1814;
  color: var(--v-gold);
  transition: transform .2s ease;
}

.v-consult__arrow svg {
  width: 40px;
  height: 40px;
}

.v-consult__cta:hover .v-consult__arrow {
  transform: translate(4px, -4px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.v-footer {
  margin-top: 120px;
  background: #121110;
  padding: 80px 0 32px;
}

.v-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.v-footer__grid>*:last-child {
  align-self: start;
}

.v-footer__grid>*:last-child .v-footer__reply {
  height: auto;
}

.v-footer__logo img {
  height: 64px;
  width: auto;
  margin-bottom: 24px;
}

.v-footer__about {
  font-size: 15px;
  line-height: 1.6;
  color: var(--v-dim-2);
  max-width: 280px;
}

.v-footer__contacts {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-footer__contacts a,
.v-footer__contacts span {
  font-size: 16px;
  color: #fff;
}

.v-footer__socials {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.v-footer__social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--v-line-2);
  color: var(--v-dim);
  transition: all .15s ease;
}

.v-footer__social:hover {
  border-color: var(--v-gold);
  color: var(--v-gold);
}

.v-footer__social svg {
  width: 18px;
  height: 18px;
}

.v-footer__title {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--v-gold);
  margin-bottom: 24px;
}

.v-footer__col a {
  display: block;
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 16px;
  transition: color .15s ease;
}

.v-footer__col a:hover {
  color: #fff;
}

.v-footer__reply {
  background: var(--v-surface-2);
  border: 1px solid rgba(201, 169, 110, .2);
  border-radius: 16px;
  padding: 24px;
}

.v-footer__reply p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--v-dim-2);
  margin-bottom: 16px;
}

.v-footer__reply .v-input {
  margin-bottom: 12px;
}

.v-footer__reply-btn {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  background: var(--v-gold);
  color: var(--v-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: none;
}

.v-footer__reply-btn:hover {
  filter: brightness(1.05);
}

/* CF7 submit inside the footer form — match the gold "Перезвонить мне" button
   (CF7/WooMart render it green by default). */
.v-footer__reply .wpcf7-submit,
.v-footer__reply .wpcf7 input[type="submit"],
.v-footer__reply .wpcf7 button[type="submit"] {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  background: var(--v-gold) !important;
  background-image: none !important;
  color: var(--v-dark) !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: filter .15s ease;
}

.v-footer__reply .wpcf7-submit:hover,
.v-footer__reply .wpcf7 input[type="submit"]:hover,
.v-footer__reply .wpcf7 button[type="submit"]:hover {
  filter: brightness(1.05);
  background: var(--v-gold) !important;
  color: var(--v-dark) !important;
}

/* ── Contact Form 7 wrappers inside the footer "Быстрый ответ" block ── */
.v-footer__reply .wpcf7 {
  margin: 0;
}

/* CF7 hidden inputs are wrapped in a <fieldset> that renders as an empty
   bordered box when the plugin stylesheet isn't applied — keep it out of flow. */
.v-footer__reply .wpcf7 .hidden-fields-container {
  display: none !important;
}

/* Screen-reader-only response (CF7 prepends it). Keep it accessible but hide
   visually so the success/error text isn't duplicated above the form. */
.v-footer__reply .wpcf7 .screen-reader-response {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v-footer__reply .wpcf7-form-control-wrap,
.v-footer__reply .v-footer__reply-wrap {
  display: block;
  margin: 0 0 12px;
}

.v-footer__reply .v-footer__reply-wrap .wpcf7-form-control-wrap {
  margin: 0;
}

.v-footer__reply .wpcf7 .v-input {
  width: 100%;
}

.v-footer__reply .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #e07a7a;
}

.v-footer__reply .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.v-footer__reply .wpcf7-response-output:empty {
  display: none !important;
}

.v-footer__reply .wpcf7-spinner {
  margin: 8px auto 0;
  display: block;
}

.v-footer__bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--v-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.v-footer__copy {
  font-size: 14px;
  color: var(--v-dim);
}

.v-footer__legal {
  display: flex;
  gap: 32px;
}

.v-footer__legal a {
  font-size: 14px;
  color: var(--v-dim);
  transition: color .15s ease;
}

.v-footer__legal a:hover {
  color: #fff;
}

/* ============================================================
   MODAL (review popup)
   ============================================================ */
.v-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.v-modal.is-open {
  display: flex;
}

.v-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.v-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  background: linear-gradient(135deg, #232323 0%, #181818 100%);
  border: 1px solid rgba(201, 169, 110, .25);
  border-radius: 20px;
  padding: 40px;
  animation: v-modal-in .25s cubic-bezier(.22, 1, .36, 1);
}

@keyframes v-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.v-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--v-line-2);
  color: var(--v-dim);
  font-size: 22px;
  line-height: 1;
  transition: color .15s ease, border-color .15s ease;
}

.v-modal__close:hover {
  color: var(--v-gold);
  border-color: var(--v-gold);
}

.v-modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-right: 40px;
}

.v-modal__stars {
  margin-left: auto;
  display: flex;
  gap: 3px;
  color: var(--v-gold);
  font-size: 16px;
}

.v-modal__stars .is-off {
  color: rgba(255, 255, 255, .2);
}

.v-modal__text {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 24px;
}

.v-modal__date {
  font-size: 13px;
  color: #7d7d7d;
}

/* ============================================================
   HEADER — burger / mobile menu pieces (hidden on desktop)
   ============================================================ */
.v-burger {
  display: none;
  background: none;
}

.v-nav__phone {
  display: none;
}

body.v-menu-lock {
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE  (home page + shared header/footer)
   ============================================================ */

/* ---- ≤1280: tighten gutters, keep the desktop layout ---- */
@media (max-width: 1280px) {
  .v-container {
    width: calc(100% - 80px);
  }

  .v-container--narrow {
    width: calc(100% - 120px);
  }

  .v-hero__title {
    font-size: 64px;
  }

  .v-h2 {
    font-size: 42px;
  }
}

/* ---- ≤1024: tablet — collapse nav, fewer columns, stack splits ---- */
@media (max-width: 1024px) {

  /* header → burger menu */
  .v-nav__phone {
    display: block;
  }

  .v-loc,
  .v-phone {
    display: none;
  }

  .v-burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
  }

  .v-burger span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }

  .v-header.is-menu-open .v-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .v-header.is-menu-open .v-burger span:nth-child(2) {
    opacity: 0;
  }

  .v-header.is-menu-open .v-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .v-header {
    background: rgba(14, 14, 14, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .v-header__inner {
    justify-content: space-between;
  }

  .v-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 28px;
    background: #0e0e0e;
    border-top: 1px solid var(--v-line);
    min-height: calc(100vh - 74px);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .v-header.is-menu-open .v-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .v-nav a {
    padding: 16px 2px;
    font-size: 17px;
    letter-spacing: .3px;
    border-bottom: 1px solid var(--v-line);
  }

  .v-nav a:last-of-type {
    border-bottom: 0;
  }

  .v-nav__phone {
    margin-top: 18px;
    color: var(--v-gold);
    font-size: 20px;
    font-weight: 600;
  }

  /* hero → flow layout */
  .v-hero {
    height: auto;
    min-height: 80vh;
  }

  .v-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
    padding: 130px 0 56px;
  }

  .v-hero__content {
    position: static;
    gap: 32px;
  }

  .v-hero__title {
    font-size: 52px;
    width: auto;
    max-width: 560px;
  }

  .v-hero__sub {
    font-size: 20px;
  }

  .v-hero__features {
    position: static;
    margin-top: 48px;
    flex-wrap: wrap;
    gap: 24px;
  }

  /* section titles / leads */
  .v-h2 {
    font-size: 38px;
  }

  .v-lead {
    font-size: 18px;
  }

  .v-link {
    font-size: 18px;
  }

  /* about → stack */
  .v-about {
    padding-top: 80px;
  }

  .v-about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .v-about__media {
    /* height: 420px; */
  }

  /* ЖК cards 5 → 3 */
  .v-blocks {
    padding-top: 80px;
  }

  .v-blocks__row {
    grid-template-columns: repeat(3, 1fr);
  }

  /* flats 6 → 3 */
  .v-flats {
    padding-top: 80px;
  }

  .v-flats__row {
    grid-template-columns: repeat(3, 1fr);
  }

  .v-flats__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;

    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  /* let the tabs row (inside) be width-constrained so it can scroll, not push the page */
  .v-flats__left {
    width: 100%;
    min-width: 0;
  }

  /* catalog → stack, drop the book */
  .v-catalog {
    padding-top: 80px;
  }

  .v-catalog__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* .villas-home prefix needed to beat the `.villas-home img { display:block }` reset */
  .villas-home .v-catalog__book {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 260px;
    max-width: 80%;
    margin: 0 auto 4px;
  }

  .v-catalog__title {
    font-size: 40px;
  }

  .v-form {
    padding: 32px;
    min-height: 0;
  }

  /* reviews 4 → 2 */
  .v-reviews {
    padding-top: 80px;
  }

  .v-reviews__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .v-reviews__bar {
    flex-wrap: wrap;
  }

  /* blog → stack */
  .v-blog {
    padding-top: 80px;
  }

  .v-blog__grid {
    grid-template-columns: 1fr;
  }

  .v-blog__feat {
    height: 420px;
  }

  /* consult */
  .v-consult {
    padding-top: 80px;
  }

  .v-consult__info {
    padding: 36px;
  }

  .v-consult__title {
    font-size: 36px;
  }

  .v-consult__cta {
    padding: 0 16px 0 36px;
    height: 120px;
  }

  .v-consult__cta-text {
    font-size: 26px;
  }

  /* footer 5 → 2 */
  .v-footer {
    margin-top: 80px;
  }

  .v-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .v-footer__reply {
    grid-column: 1 / -1;
  }
}

/* ---- ≤768: mobile ---- */
@media (max-width: 768px) {

  .v-header {
    padding: 16px 0;
  }

  .v-iconbtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
  }

  .v-blog__feat-body {
    padding: 24px;
  }

  .v-container,
  .v-container--narrow {
    width: calc(100% - 40px);
  }

  .v-h2 {
    font-size: 30px;
    letter-spacing: -.2px;
  }

  .v-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .v-tabs {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;

    display: flex;
    flex-wrap: nowrap !important;

    overflow-x: auto !important;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;

    padding-bottom: 6px;
  }

  .v-tabs::-webkit-scrollbar {
    display: none;
  }

  .v-tabs>* {
    flex: 0 0 auto !important;
    white-space: nowrap;
  }

  .v-tab {
    flex-shrink: 0;
  }

  .v-hero__title {
    font-size: 38px;
  }

  .v-hero__sub {
    font-size: 17px;
  }

  .v-hero__features {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .v-hero__cta.v-btn-gold,
  .v-btn-gold {
    height: 64px;
    font-size: 17px;
    padding: 0 28px;
  }

  .v-blocks__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .v-flats__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .v-reviews__row {
    grid-template-columns: 1fr;
  }

  .v-catalog__title {
    font-size: 30px;
  }

  .v-consult__title {
    font-size: 28px;
  }

  .v-consult__cta {
    flex-direction: row;
    height: 96px;
    padding: 0 14px 0 24px;
  }

  .v-consult__cta-text {
    font-size: 20px;
  }

  .v-consult__arrow {
    width: 64px;
    height: 64px;
  }

  .v-blog__side .v-article {
    grid-template-columns: 120px 1fr;
  }

  .v-article__body {
    padding: 16px;
  }

  .v-article__title {
    font-size: 19px;
  }

  .v-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .v-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ---- ≤480: small phones ---- */
@media (max-width: 480px) {

  .v-container,
  .v-container--narrow {
    width: calc(100% - 32px);
  }

  .v-hero__title {
    font-size: 32px;
  }

  .v-h2 {
    font-size: 26px;
  }

  .v-lead,
  .v-blogh__lead {
    font-size: 16px;
  }

  .v-blocks__row {
    grid-template-columns: 1fr;
  }

  .v-flats__row {
    grid-template-columns: 1fr;
  }

  .v-msgr {
    flex-wrap: wrap;
  }

  .v-msgr__btn {
    flex: 1 1 calc(50% - 4px);
  }

  .v-form {
    padding: 24px;
  }

  .v-blog__side .v-article {
    grid-template-columns: 1fr;
  }

  .v-blog__feat-title {
    font-size: 24px;
  }

  .v-footer__grid {
    grid-template-columns: 1fr;
  }

  .v-footer__legal {
    flex-direction: column;
    gap: 10px;
  }
}
.v-loc .v-loc__caret{
  display: none !important;
}

.v-header,
.v-header.is-scrolled {
  padding: 16px 0;
}

/* ============================================================
   SCROLL REVEAL — blocks fade + rise in on first view.
   `.v-reveal` is added by js/villas-reveal.js only when needed, so
   no-JS visitors never see hidden content.
   ============================================================ */
/* NOTE on `!important`: Elementor's frontend.css ships a global reduced-motion
   reset — `@media (prefers-reduced-motion: reduce){ html *{ transition-duration:0
   !important; transition-delay:0 !important } .animated{ animation:none!important }}`.
   That `html *` (specificity 0,0,1) silently kills EVERY transition on the page
   when the visitor has "reduce motion" on (very common on Windows). These home
   entrances are a deliberate design feature the owner wants shown in both modes,
   so we win the cascade with `!important` on a higher-specificity selector
   (.villas-home .v-reveal = 0,2,0). The card stagger uses `animation` instead of
   a transition — Elementor's reset only nukes `.animated`, so ours survives. */
.villas-home .v-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .24, 1) !important;
  will-change: opacity, transform;
}

.villas-home .v-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* — heading animation — the accent word (IBM Plex italic) fades up a beat after
   its block reveals, giving each title a two-stage entrance. Reverts cleanly once
   villas-reveal.js strips the reveal classes. */
.villas-home .v-reveal .v-i {
  opacity: 0;
  transform: translateY(.35em);
  transition: opacity .6s ease .14s, transform .6s cubic-bezier(.22, .7, .24, 1) .14s !important;
}
.villas-home .v-reveal.is-in .v-i {
  opacity: 1;
  transform: none;
}

/* — stagger card animation — advantages (.v-card) + blog (.v-article) cards
   stagger per-sibling via villas-reveal.js (inline transition-delay, set
   !important so Elementor's reset can't flatten it). The filtered rows
   (flats / reviews) reveal as ONE container (so filtering can't strand a card),
   so we stagger their children here with a one-shot keyframe keyed off the
   container's .is-in. `backwards` fill (not `forwards`) hides them only while
   waiting, then hands control back to the natural styles — so the cards' :hover
   lift keeps working. Delays stay <0.66s so they finish before .is-in is
   stripped (~0.7s). */
.villas-home .v-flats__row.is-in > .v-flat,
.villas-home .v-reviews__row.is-in > .v-review {
  animation: v-card-rise .5s cubic-bezier(.22, .7, .24, 1) backwards;
}
.villas-home .v-flats__row.is-in > .v-flat:nth-child(2),
.villas-home .v-reviews__row.is-in > .v-review:nth-child(2) { animation-delay: .05s; }
.villas-home .v-flats__row.is-in > .v-flat:nth-child(3),
.villas-home .v-reviews__row.is-in > .v-review:nth-child(3) { animation-delay: .1s; }
.villas-home .v-flats__row.is-in > .v-flat:nth-child(4),
.villas-home .v-reviews__row.is-in > .v-review:nth-child(4) { animation-delay: .15s; }
.villas-home .v-flats__row.is-in > .v-flat:nth-child(n+5),
.villas-home .v-reviews__row.is-in > .v-review:nth-child(n+5) { animation-delay: .16s; }

@keyframes v-card-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   INTERACTIVE HOVER STATES — anything that navigates or opens
   gets clear feedback (lift / zoom / colour shift).
   ============================================================ */
.villas-home a,
.villas-home button {
  cursor: pointer;
}

/* blog: side article cards (navigate to the post) */
.v-article {
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.v-article:hover {
  transform: translateY(-4px);
  border-color: var(--v-gold-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.v-article__media img {
  transition: transform .4s ease;
}

.v-article:hover .v-article__media img {
  transform: scale(1.05);
}

h3.v-article__title {
  transition: color .15s ease;
}

.v-article:hover h3.v-article__title {
  color: var(--v-gold);
}

/* blog: featured card (navigates) */
.v-blog__feat {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.v-blog__feat:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5);
}

.v-blog__feat:hover .v-blog__feat-title {
  color: var(--v-gold);
}

.v-blog__feat-title {
  transition: color .15s ease;
}

.v-blog__feat:hover img {
  transform: scale(1.05);
}

.v-blog__feat img {
  transition: transform .5s ease;
}

/* consult CTA (navigates to contact) — whole panel reacts */
.v-consult__cta {
  transition: transform .2s ease, filter .2s ease;
}

.v-consult__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.v-consult__cta:hover .v-consult__arrow {
  background: var(--v-dark);
}

/* "Читать полностью →" inside review cards (opens the modal) */
.v-review__more {
  transition: color .15s ease, transform .15s ease;
}

.v-review__more:hover {
  color: var(--v-gold);
  transform: translateX(2px);
}

/* ============================================================
   LEAD POPUP + shared lead form (Имя + Телефон → e-mail via CF7)
   Opened by [data-lead-open] / a[href="#lead"] CTAs.
   ============================================================ */
.v-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.v-lead-modal.is-open {
  display: flex;
}

.v-lead-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.v-lead-modal__box {
  position: relative;
  width: min(460px, 100%);
  background: var(--v-surface);
  border: 1px solid var(--v-line-2);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
}

.v-lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--v-line-2);
  background: none;
  color: var(--v-dim);
  font-size: 22px;
  line-height: 1;
  transition: color .15s ease, border-color .15s ease;
}

.v-lead-modal__close:hover {
  color: #fff;
  border-color: var(--v-gold);
}

.v-lead-modal__title {
  font-family: var(--v-sans);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  padding-right: 40px;
}

.v-lead-modal__sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--v-dim-2);
}

/* shared lead form (popup + catalog block) */
.v-lead-form {
  margin-top: 22px;
}

.v-lead-form .v-lead-field {
  margin: 0 0 12px;
}

.v-lead-form .v-input {
  width: 100%;
  height: 52px;
}

.v-lead-form .wpcf7-form-control-wrap {
  display: block;
}

.v-lead-form .hidden-fields-container {
  display: none !important;
}

/* CF7 renders .screen-reader-response in the .wpcf7 WRAPPER, OUTSIDE the <form>,
   so it must be scoped to the wrapper (.v-form block / .v-lead-modal popup), not
   to .v-lead-form (the form itself). Keep it accessible but visually hidden — the
   field-level tips + response line cover feedback; otherwise the status summary
   and the list of "Заполните это поле" pile up above the fields. */
.v-form .screen-reader-response,
.v-lead-modal .screen-reader-response {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v-lead-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #e07a7a;
}

.v-lead-form .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid var(--v-line-2);
  color: var(--v-dim-2);
}

/* The box is empty on load (CF7 fills it via textContent on response) — don't
   show an empty bordered placeholder before submit. */
.v-lead-form .wpcf7-response-output:empty {
  display: none !important;
}

.v-lead-form .wpcf7-spinner {
  margin: 8px auto 0;
  display: block;
}

/* gold submit (override CF7 / WooMart default button) */
.v-lead-form .wpcf7-submit,
.v-lead-form input[type="submit"] {
  width: 100%;
  height: 56px;
  margin-top: 4px;
  border-radius: 16px;
  background: var(--v-grad) !important;
  background-image: var(--v-grad) !important;
  color: var(--v-dark) !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  box-shadow: none !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}

.v-lead-form .wpcf7-submit:hover,
.v-lead-form input[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .v-lead-modal__box { padding: 28px 22px; }
  .v-lead-modal__title { font-size: 24px; }
}