/*
Theme Name: referans
Author: Roman Matishin
Version: 1.0
*/

:root {
  --header-h: 70px;
  --bg: #ffffff;
  --white: #ffffff;
  --text: #0f1b22;
  --text-2: #2b4251;
  --primary: #05232d;
  --primary-600: #073341;
  --primary-300: #3e626f;
  --primary-050: #e9f1f3;
  --border: #e3e7eb;
  --placeholder: #888888;
  --grad-primary: linear-gradient(135deg, #05232d 0%, #0e4a5c 100%);
  --gold-300: #96694c;
  --gold-600: #8a5d3f;
  --grad-gold: linear-gradient(90deg, #9f7252 0%, #8a5d3f 100%);
  --cont: 1350px;
  --rs-lg: 16px;
  --rs-md: 12px;
  --rs-sm: 10px;
  --shadow: 0 12px 32px rgba(5, 35, 45, 0.1);
  --shadow-sm: 0 6px 18px rgba(5, 35, 45, 0.04);
  --dur: 0.6s;
  --ease: cubic-bezier(0.22, 0.8, 0.22, 1);
  --ease_menu: cubic-bezier(.22,.61,.36,1);
}
.adv--tone-50 {
  --card-bg: var(--primary-050);
  --card-fg: var(--primary-600);
  --icon-bg: var(--white);
  --icon-fg: var(--primary);
  --card-p: var(--primary-600);
}
.adv--tone-white {
  --card-bg: var(--white);
  --card-fg: var(--primary-600);
  --icon-bg: var(--primary-050);
  --icon-fg: var(--primary);
  --card-p: var(--primary-600);
}
.adv--tone-mute {
  --card-bg: var(--grad-primary);
  --card-fg: var(--primary-050);
  --icon-bg: var(--primary-050);
  --icon-fg: var(--primary-600);
  --card-p: var(--primary-050);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.3;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: "Inter", sans-serif;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
  font-weight: 400;
}
h1 {
  font-size: clamp(34px, 4.8vw, 60px);
}
h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}
h3 {
  font-size: clamp(18px, 2.2vw, 24px);
}
h4 {
  font-size: clamp(18px, 2.2vw, 20px);
}
p {
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-2);
  margin: 0.6em 0 1em;
  font-weight: 300;
}
.caption {
  font-size: 14px;
  line-height: 1.4;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: var(--cont);
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 767px) {
  .container {
    padding: 0 15px;
  }
}
.section {
  padding: 70px 0;
}
@media (max-width: 767px) {
  .section {
    padding: 50px 0;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 14px 14px !important;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 500px) {
  .btn {
    font-size: 16px;
  }
}
.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.btn-ghost {
  background: rgba(5, 35, 45, 0.06);
  color: var(--primary);
  border: 1px solid rgba(5, 35, 45, 0.12);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(5, 35, 45, 0.09);
}

.header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 59;
  background: var(--white);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--border);
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.22s var(--ease, ease), box-shadow 0.18s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .header {
    backdrop-filter: saturate(1.1) blur(8px);
  }
}
.header--hide {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
main {
  padding-top: var(--header-h);
}
.header__in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 70px;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
.logo__mark {
  display: inline-block;
}
.logo__mark img {
  display: block;
  height: auto;
}
.logo_mobile {
  display: none;
}
.logo_mobile_menu {
  display: flex;
  align-items: center;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.nav__list,
.mnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
  align-items: center;
}
.nav__list > li > a,
.mnav__list > li > a {
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  padding: 10px 8px;
  border-radius: 8px;
}
.nav__list > li:hover,
.mnav__list > li:hover {
  transform: translateY(-1px);
}
.nav__list > li > a:hover,
.mnav__list > li > a:hover {
  background: var(--primary-050);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 8px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #000;
  color: var(--white);
  z-index: 9999;
  border-radius: 6px;
}
button#burger svg,
button#mnavClose svg {
  color: var(--primary);
}
.action-btn svg,
.burger svg {
  width: 22px;
  height: 22px;
}
.action-btn svg,
.burger svg {
  pointer-events: none;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__actions a:hover {
  background: var(--primary-050);
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: transform 0.15s, filter 0.2s;
  padding: 5px;
}
.action-btn:hover {
  transform: translateY(-1px);
}
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger:hover {
  background: var(--primary-050);
  transform: translateY(-1px);
}
.burger svg {
  width: 22px;
  height: 22px;
}
.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s var(--ease_menu), visibility .25s linear;
  will-change: opacity;
}
.offcanvas__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity .25s var(--ease_menu);
  will-change: opacity;
}
.offcanvas__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(92vw, 380px);
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform .3s var(--ease_menu);
  will-change: transform;
}
.offcanvas.in {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.offcanvas.in .offcanvas__overlay {
  opacity: 1;
}
.offcanvas.in .offcanvas__panel {
  transform: none;
}
.mnav {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mnav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.mnav__links {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
}
.mnav__links a {
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 400;
}
.mnav__links a:hover {
  background: rgba(150, 105, 76, 0.08);
}
.mnav__cta {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.mnav__socials {
  display: flex;
  gap: 10px;
}
.cta-head {
  margin-left: 6px;
}
@media (max-width: 1350px) {
  .nav,
  .cta-head {
    display: none;
  }
  .burger {
    display: inline-flex;
    margin-left: 6px;
  }
}
@media (max-width: 1300px) {
  .mnav__list {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .header__in {
    height: 50px;
  }
  :root {
    --header-h: 50px;
  }
  .action-btn,
  .burger {
    width: 32px;
    height: 32px;
    margin-left: 0px;
  }
  .logo .logo__mark img {
    width: 150px;
  }
}

/* Hero блок*/
.hero {
  position: relative;
  color: var(--white);
  min-height: 76vh;
  display: grid;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    1100px 600px at 100% 30%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.15) 60%,
    rgba(0, 0, 0, 0.25) 100%
  );
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 40px 20px;
}
.hero .promo_text,
.hero .form__subtitle,
.form .lbl {
  color: var(--primary-050);
}
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 200;
  display: inline-block;
  margin-bottom: 10px;
}
.hero-form {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  color: var(--white);
  padding: 25px;
}
.form {
  display: grid;
  gap: 10px;
}
.form .lbl {
  display: inline-block;
  font-size: 14px;
  margin: 0 5px 5px 0;
}
.form p {
  margin: 5px 0 0;
}
.form p:first-child:not(.form .check p) {
  margin-top: 0;
}
.hero-form .iti.iti--allow-dropdown.iti--separate-dial-code,
.card .iti.iti--allow-dropdown.iti--separate-dial-code {
  display: block;
  width: 100%;
  min-width: 0;
}
.iti--separate-dial-code .iti__selected-flag {
  border-radius: 12px;
}
.wpcf7 form .input,
.hero-form .iti input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.55));
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.05s;
  font-size: 18px;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
}
.input::placeholder,
.iti input::placeholder {
  color: var(--text-2);
  opacity: 0.8;
}
.input:not(:placeholder-shown),
.iti input:not(:placeholder-shown),
.input:required:valid,
.input:focus,
.iti input:focus {
  color: var(--text-2);
}
.input:-webkit-autofill,
.iti input:-webkit-autofill {
  -webkit-text-fill-color: var(--text-2);
}
.input:focus,
.iti input:focus,
.wpcf7 form .input:focus {
  border-color: var(--primary-300);
  box-shadow: 0 0 0 4px rgba(150, 105, 76, 0.12);
}
.wpcf7 form .btn.btn-primary {
  width: 100%;
}
.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--primary-050);
}
.wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}
.wpcf7-acceptance .wpcf7-list-item-label a {
  color: var(--white);
  text-decoration: underline;
}
.wpcf7-acceptance .wpcf7-list-item-label a:hover {
  color: var(--primary-050);
}
/* Модальная форма */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
}
.modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 25px;
  max-width: 650px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  cursor: pointer;
}
.modal-close .icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex: 0 0 24px;
}
.modal-notice {
  text-align: center;
  background: var(--white);
  padding: 40px;
  max-width: 400px;
  width: 90%;
  position: relative;
  border-radius: 16px;
}
.modal-notice.success {
  border-left: 5px solid green;
}
.modal-notice.error {
  border-left: 5px solid red;
}
.wpcf7-response-output {
  display: none;
}
.wpcf7-not-valid-tip {
  display: inline-block;
}
.modal .form {
  gap: 10px;
  display: flex;
  flex-direction: column;
}
.modal span.wpcf7-form-control-wrap.your-phone {
  display: inline-grid;
  width: 100%;
}
@media (max-width: 900px) {
  .modal {
    padding: 18px;
  }
}

.hero-form .form__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.2vw, 28px);
}
.hero-form .form__subtitle {
  margin: 0 0 14px;
}
@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }
  .hero__img {
    height: 500px;
  }
  .hero__overlay {
    height: 500px;
  }
  .hero-form {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow-sm);
  }
  .hero .form__subtitle,
  .form .lbl,
  .wpcf7-acceptance .wpcf7-list-item-label a {
    color: var(--text);
  }
  .wpcf7-acceptance .wpcf7-list-item label,
  .wpcf7-acceptance .wpcf7-list-item-label a:hover {
    color: var(--text-2);
  }
}
@media (max-width: 900px) {
  .hero-form {
    padding: 18px;
  }
  .wpcf7 form .input,
  .hero-form .iti input {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .hero__grid {
    padding: 30px 15px;
  }
}
@media (max-width: 340px) {
  .hero .promo_text {
    display: none;
  }
}

.icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  flex: 0 0 40px;
}
.icon svg {
  width: 100%;
  height: 100%;
}

/* Преимущества */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.adv {
  box-sizing: border-box;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-bg, var(--white));
  color: var(--card-fg, var(--primary-600));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 180px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.adv p {
  color: var(--card-p);
}
.adv__top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.icon2 {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--icon-bg, var(--white));
  color: var(--icon-fg, var(--primary));
  box-shadow: var(--shadow-sm);
}
.icon2 svg {
  width: 22px;
  height: 22px;
}
.adv-grid > .adv.adv--wide {
  grid-column: span 2;
}
@media (max-width: 1100px) {
  .adv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adv-grid > .adv.adv--wide {
    grid-column: 1 / -1;
  }
}
@media (max-width: 660px) {
  .adv-grid {
    grid-template-columns: 1fr;
  }
  .adv-grid > .adv.adv--wide {
    grid-column: auto;
  }
}

/* Декор */
/* Bishiktash */
.section--watermark {
  position: relative;
  isolation: isolate;
}
.section--watermark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/dekor/besiktas-text.svg") center / min(820px, 80%)
    no-repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.section--watermark > .container {
  position: relative;
  z-index: 1;
}
/* Разделитель секций */
.section--divider {
  position: relative;
}
.section--divider::after {
  content: "";
  display: block;
  height: 18px;
  margin-top: 24px;
  background: url("../img/dekor/sivri-kutu.svg") repeat-x center / 180px 18px;
  opacity: 0.35;
}
/* Брилианты */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 12px;
  background: url("../img/dekor/dogal-elmas.svg") left bottom / 56px 12px
    no-repeat;
  opacity: 0.8;
}
/* секция с «декором» (мягкий градиент сверху) */
.section--decor {
  position: relative;
  overflow: clip;
}
.section--decor::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 220px;
  background: radial-gradient(
    1200px 220px at 50% 0,
    rgba(150, 105, 76, 0.08),
    transparent 60%
  );
  pointer-events: none;
}
@media (max-width: 720px) {
  .section--decor::before {
    display: none;
  }
}

/* Локация */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.location__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
}
.location__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 400px;
}
.location__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.list {
  display: grid;
  gap: 15px;
  margin-top: 10px;
}
.list__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  background: var(--primary-050);
  border: 1px solid var(--border);
}
.dot {
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--white);
  flex: 0 0 8px;
}
@media (max-width: 1100px) {
  .location {
    grid-template-columns: 1fr;
  }
  .location__media {
    justify-self: stretch;
    max-width: 720px;
  }
}

/* Выгоды */
.benefits-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.benefit {
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.benefit--title {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.benefit__h {
  margin: 0;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 3.2vw, 32px);
}
.benefit__sub {
  margin-top: 6px;
  color: var(--card-p, var(--text-2));
}
@media (max-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 660px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .benefit__h {
    font-size: clamp(22px, 6vw, 28px);
  }
}

/* Планировки */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 15px;
  margin-bottom: 12px;
  position: relative;
}
.plans-swiper .swiper-wrapper {
  align-items: stretch;
}
.plans-swiper .swiper-slide {
  height: auto;
}
.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
@media (max-width: 560px) {
  .section-head {
    grid-template-columns: 1fr;
    justify-items: end;
  }
  .section-head__title {
    justify-self: stretch;
  }
  .gallery__nav {
    order: 2;
  }
}
.plan__media {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}
.plan__body {
  padding: 8px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}
.plan__meta {
  color: var(--text-2);
  font-size: 14px;
}
.plan .btn-ghost {
  margin-top: auto;
}
.plan__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.plan__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  backdrop-filter: blur(10px) saturate(1.05);
}
.plan__type-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  backdrop-filter: blur(10px) saturate(1.05);
}
.plan__title {
  display: flex;
  gap: 10px;
  line-height: 1.2;
  align-items: flex-end;
}
.plan__meta {
  display: flex;
  gap: 10px;
  line-height: 1.2;
  align-items: flex-end;
}
.plan__body .icon,
.plan__meta .icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex: 0 0 24px;
  transform: translateY(1px);
}
.plan_button {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.plans-swiper .swiper-slide {
  display: flex;
}
.plan__body .plan__meta:last-of-type { 
  margin-bottom: 5px; 
  }

/* Дизайн, Экстерьер */
.interiors__tabs {
  display: flex;
  gap: 10px;
  margin: 16px 0 12px;
}
.interiors__tab {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}
.interiors__tab.is-active {
  border-color: var(--primary);
  color: var(--primary);
  pointer-events: none;
}
.interiors__sliders,
.exteriors__slider-wrap {
  position: relative;
}
.interiors__slider-wrap {
  display: none;
}
.interiors__slider-wrap.is-active {
  display: block;
}
.interiors__img,
.exteriors__img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: var(--shadow-sm);
}
.interiors__empty {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-2);
}
.gallery__nav {
  display: flex;
  gap: 10px;
  justify-self: end;
  order: 1;
}
button.gallery__btn.gallery__btn--prev.swiper-button-disabled,
button.gallery__btn.gallery__btn--next.swiper-button-disabled {
  background: var(--border);
  border: 1px solid var(--primary-050);
  pointer-events: none;
  opacity: 0.6;
}
.gallery__btn[aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}
.gallery__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--primary-300);
  background: var(--border);
  display: grid;
  place-items: center;
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.gallery__btn:not(.swiper-button-disabled):hover,
.gallery__btn:not([aria-disabled="true"]):hover {
  background: var(--border);
  border-color: var(--primary-300);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.gallery__btn:not(.swiper-button-disabled):active,
.gallery__btn:not([aria-disabled="true"]):active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.gallery__btn:focus-visible {
  outline: 2px solid var(--primary-300);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(57, 183, 165, 0.18);
}

/* Инфраструктура */
#amenities .grid {
  margin-top: 16px;
}
.amen {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.amenities-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

/* О застройщике */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.stat .stat__num {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}
.stat .stat__label {
  font-weight: 600;
  margin-top: 6px;
}
.stat .stat__hint {
  margin-top: 4px;
  font-size: 14px;
  color: var(--card-p, var(--text-2));
}
.about__bullets {
  display: grid;
  gap: 8px;
  margin: 10px 0 15px 0;
}
.about__bullets li {
  list-style: none;
  color: var(--text-2);
  line-height: 1.45;
}
.brand_logo {
  width: 250px;
  margin: 12px 0 16px;
}
.brand_logo img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 660px) {
  .brand_logo {
    width: 160px;
  }
}
@media (max-width: 900px) {
  .stats-grid {
    gap: 15px;
  }
}
@media (max-width: 660px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.stat__num {
  white-space: nowrap;
}

/* Этапы покупки */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.steps > .step.adv--wide {
  grid-column: span 2;
}
@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps > .step.adv--wide {
    grid-column: 1 / -1;
  }
}
@media (max-width: 660px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps > .step.adv--wide {
    grid-column: auto;
  }
}
.step {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg, var(--white));
  color: var(--card-fg, var(--primary-600));
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.step__num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--grad-primary);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 400;
  border: 1px solid var(--primary-300);
}
.step p {
  color: var(--card-p, var(--text-2));
}

/* Faq */
details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
details + details {
  margin-top: 15px;
}
summary {
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 44px;
}
.question_answer:hover {
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
}
.answer {
  font-size: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary .sum-ico {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary);
}
summary svg.icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex: 0 0 24px;
}
details[open] summary .sum-ico .plus {
  display: none;
}
details:not([open]) summary .sum-ico .minus {
  display: none;
}

/* Общие */
.section--light {
  background: var(--primary-050);
}
.section--tint {
  background: var(--grad-primary);
}
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.delay1 {
  transition-delay: 0.08s;
}
.delay2 {
  transition-delay: 0.16s;
}
.delay3 {
  transition-delay: 0.24s;
}
.delay4 {
  transition-delay: 0.32s;
}
.delay5 {
  transition-delay: 0.4s;
}
.delay6 {
  transition-delay: 0.48s;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .grid {
    gap: 15px;
  }
}
@media (max-width: 660px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
.adv:hover,
.amen:hover,
.step:hover,
.list__item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
}
p.reveal.in {
  color: var(--text-2);
}
.standard-page {
  min-height: 100vh;
}
.standard-content .wp-block-list li {
  margin-left: 30px;
}
.standard-back {
  margin-bottom: 20px;
}
.standard-page h1 {
  font-size: clamp(30px, 4.8vw, 48px);
}
.standard-content p {
  line-height: 1.6;
  font-size: 16px;
  color: var(--text);
}
.standard-page .wp-block-list {
  line-height: 1.6;
  margin-bottom: 10px;
}
.standard-content p a,
.wp-block-list a {
  text-decoration: underline;
  transition: color 0.3s ease;
}
.standard-content p a:hover,
.wp-block-list a:hover {
  color: var(--text-2);
}

/* Контактная форма */
.card {
  background: var(--primary-050);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.card .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  padding: 25px;
}
.card .form .lbl,
.modal .form .lbl {
  color: var(--text);
}
.card .form .wpcf7-acceptance .wpcf7-list-item label,
.modal .form .wpcf7-acceptance .wpcf7-list-item label {
  color: var(--text-2);
}
.card .form .wpcf7-acceptance .wpcf7-list-item-label a,
.modal .form .wpcf7-acceptance .wpcf7-list-item-label a {
  color: var(--text);
}
.card .form .wpcf7-acceptance .wpcf7-list-item-label a:hover,
.modal .form .wpcf7-acceptance .wpcf7-list-item-label a:hover {
  color: var(--text-2);
}
.form__social {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.form__social .icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex: 0 0 24px;
}
@media (max-width: 900px) {
  .card .grid {
    padding: 18px;
    grid-template-columns: 1fr;
  }
}

/* 404 */
.error-404 {
  min-height: 100vh;
}
.error-404-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto 0 auto;
}
.error-404 p {
  color: var(--text);
}

/* Fancybox */
.zoomable {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
}
.zoomable img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
img.interiors__img,
img.exteriors__img {
  height: 380px;
}
img.plan__img {
  min-height: 220px;
}
.zoomable__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.zoomable__icon {
  transform: scale(0.9);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
  width: 32px;
  height: 32px;
}
.zoomable:hover .zoomable__overlay,
.zoomable:focus-visible .zoomable__overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.25);
}
.zoomable:hover .zoomable__icon,
.zoomable:focus-visible .zoomable__icon {
  transform: scale(1);
}

/* Футер */
.footer {
  background: var(--grad-primary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text);
  font-size: 16px;
}
.footer a {
  color: var(--primary-050);
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.footer a:hover:not(.logo__mark) {
  color: var(--primary);
  background: var(--primary-050);
  transform: translateY(-1px);
}
.footer__cta .btn {
  border: 1px solid var(--primary-050);
  border-radius: 12px;
}
.nav__list_footer {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav__list_footer > li > a {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
  color: var(--primary-050);
}
.footer__main2,
.footer__main3 {
  border-top: 1px solid var(--primary-050);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer__main {
  padding: 0 0 40px 0;
}
.footer__main2 {
  padding: 40px 0px;
}
.footer__main3 {
  padding: 40px 0 0 0;
  align-items: center;
}
.footer_logo_note,
.footer__cta {
  display: flex;
  gap: 20px;
  flex-direction: column;
  align-items: flex-start;
}
.footer__socials,
.contact_footer {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-policy,
.footer__note {
  font-size: 14px;
}
.footer__note,
.footer__cta h3 {
  color: var(--primary-050);
  margin: 0;
}
.footer_logo_note img {
  width: 300px;
}
.footer__socials a {
  padding: 0;
}
@media (max-width: 900px) {
  .footer__main2,
  .footer__main3 {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .footer_logo_note img {
    width: 250px;
  }
}
