/* ========================================
   RESET & VARIABLES
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg:        #F7F5F1;
  --white:     #FFFFFF;
  --dark:      #1C1C1C;
  --muted:     #6B6053;
  --gold:      #C9A96E;
  --gold-d:    #9D7A3E;
  --border:    #E8E4DC;
  --r:         12px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --ease:      0.25s ease;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
  --max:       1140px;
  --pad:       96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.section { padding: var(--pad) 0; }

.section__head {
  text-align: center;
  margin-bottom: 56px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 14px;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 600;
  line-height: 1.15;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), color var(--ease);
  min-height: 44px;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn--primary:hover { background: #3a3a3a; border-color: #3a3a3a; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); }

.btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--dark); }

.btn--white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn--white:hover { background: #f0ede7; }

.btn--gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-d); border-color: var(--gold-d); }

.btn--full { width: 100%; }

/* ========================================
   NAV
======================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 22px 0;
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
}
.nav.scrolled {
  background: var(--white);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  transition: color var(--ease);
  user-select: none;
}
.nav__logo em { font-style: italic; }
.nav.scrolled .nav__logo { color: var(--dark); }

.nav__links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav.scrolled .nav__links a { color: var(--muted); }
.nav.scrolled .nav__links a:hover { color: var(--dark); }

.nav__cta-link {
  background: var(--dark) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
}
.nav.scrolled .nav__cta-link { background: var(--dark) !important; color: var(--white) !important; }
.nav__cta-link:hover { background: #3a3a3a !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background var(--ease), transform 0.3s, opacity 0.3s;
}
.nav.scrolled .nav__burger span { background: var(--dark); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   HERO
======================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e2d1e 0%, #2c3e50 45%, #3d5a3e 100%);
  overflow: hidden;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.1) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(0,0,0,0.52), rgba(0,0,0,0.60));
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 660px;
}

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.9);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 7.5vw, 84px);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero__title em { font-style: italic; opacity: 0.82; }

.hero__sub {
  font-size: clamp(15px, 1.8vw, 18px);
  opacity: 0.78;
  line-height: 1.65;
  margin-bottom: 24px;
}

.hero__price {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 36px;
}
.hero__price strong {
  font-size: 24px;
  font-weight: 600;
  opacity: 1;
  color: var(--white);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__arrow {
  width: 18px;
  height: 18px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(5px); }
}

/* ========================================
   GALLERY STRIP
======================================== */
.gallery { background: var(--white); overflow: hidden; }

.gallery__strip {
  display: flex;
  gap: 0;
  height: 320px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery__strip::-webkit-scrollbar { display: none; }

.gallery__strip img {
  flex-shrink: 0;
  width: 33.33%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery__strip img:hover { transform: scale(1.03); }

@media (max-width: 768px) {
  .gallery__strip { height: 220px; }
  .gallery__strip img { width: 75%; }
}

/* ========================================
   STATS
======================================== */
.stats {
  background: var(--dark);
  padding: 48px 0;
}
.stats__row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--white);
}
.stat__n {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}
.stat__l {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}
.stat__divider {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.12);
}

/* ========================================
   ABOUT
======================================== */
.about { background: var(--bg); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.about__text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about__text p:last-child { margin-bottom: 0; }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--r);
  padding: 18px 16px;
}
.feature__icon {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.feature__icon::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}
.feature div { display: flex; flex-direction: column; gap: 3px; }
.feature strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.feature span { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ========================================
   RENDERS (в секции about)
======================================== */
.renders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 56px;
}
.renders img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.renders img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

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

/* ========================================
   PLANS
======================================== */
.plans { background: var(--white); }

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

.plan-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 28px 22px 24px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.plan-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.plan-card--accent {
  background: var(--dark);
  color: var(--white);
  padding-top: 36px;
}
.plan-card--accent:hover { border-color: #444; }

.plan-card__pop {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.plan-card__img {
  background: var(--white);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  overflow: hidden;
}
.plan-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.plan-card__img--light {
  background: rgba(255,255,255,0.12);
}

.plan-card__type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.plan-card--accent .plan-card__type { color: rgba(255,255,255,0.5); }

.plan-card__area {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 12px;
}

.plan-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 22px;
}
.plan-card--accent .plan-card__desc { color: rgba(255,255,255,0.6); }

.plan-card--accent .btn--outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.plan-card--accent .btn--outline:hover { border-color: rgba(255,255,255,0.7); }

.plans__note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
}

/* ========================================
   MORTGAGE
======================================== */
.mortgage { background: var(--bg); }

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

.mortgage-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 2px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.mortgage-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.mortgage-card--dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.mortgage-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mortgage-card--dark .mortgage-card__label { color: rgba(255,255,255,0.45); }

.mortgage-card__rate {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.mortgage-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 10px;
}
.mortgage-card--dark .mortgage-card__desc { color: rgba(255,255,255,0.6); }

/* ========================================
   LOCATION
======================================== */
.location { background: var(--white); }

.location__wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: center;
}

.location__addr {
  background: var(--bg);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
}
.location__photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r);
  margin-bottom: 16px;
  display: block;
}

.location__addr-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
}
.location__addr-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.distances {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.dist {
  background: var(--bg);
  border-radius: var(--r);
  padding: 22px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background var(--ease), box-shadow var(--ease);
}
.dist:hover { background: var(--border); }

.dist__t {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--dark);
}
.dist__p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
}

/* ========================================
   DEVELOPER
======================================== */
.developer { background: var(--bg); }

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

.dev-stat {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow var(--ease), transform var(--ease);
}
.dev-stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.dev-stat__n {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  color: var(--dark);
}
.dev-stat__l {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========================================
   CONTACT
======================================== */
.contact { background: var(--white); }

.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info .h2 { margin-bottom: 18px; }
.contact__info p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.promises {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.promises li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ========================================
   LEAD FORM
======================================== */
.lead-form {
  background: var(--bg);
  border-radius: 20px;
  padding: 36px 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.form-group input,
.form-group select {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder { color: #b5aca3; }
.form-group input:focus,
.form-group select:focus { border-color: var(--dark); }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6053' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.btn--full { margin-top: 4px; }

.form-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}
.form-note a { color: var(--muted); }

.form-success,
.form-error {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.form-success { background: #EDF7EE; color: #2A6B2E; }
.form-error   { background: #FDECEA; color: #B32A2A; }
.form-error a { color: #B32A2A; font-weight: 600; }

.form-success__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2A6B2E;
  color: var(--white);
  font-size: 13px;
  flex-shrink: 0;
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}
.footer__logo em { font-style: italic; }
.footer__disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  max-width: 280px;
  line-height: 1.5;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__links a,
.footer__links span {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--ease);
}
.footer__links a:hover { color: var(--white); }

/* ========================================
   FADE-UP ANIMATION
======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .plans__grid { grid-template-columns: repeat(2, 1fr); }
  .distances    { grid-template-columns: repeat(3, 1fr); }
  .dev__grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad: 60px; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 18px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    gap: 14px;
  }
  .nav__links.open a,
  .nav__links.open a:hover { color: var(--dark) !important; }
  .nav__burger { display: flex; }

  .stat__divider    { display: none; }
  .about__grid      { grid-template-columns: 1fr; gap: 40px; }
  .features         { grid-template-columns: 1fr; }
  .plans__grid      { grid-template-columns: 1fr; }
  .mortgage__grid   { grid-template-columns: 1fr; }
  .location__wrap   { grid-template-columns: 1fr; gap: 36px; }
  .distances        { grid-template-columns: repeat(2, 1fr); }
  .dev__grid        { grid-template-columns: 1fr 1fr; }
  .contact__wrap    { grid-template-columns: 1fr; gap: 40px; }
  .hero__actions    { flex-direction: column; align-items: stretch; }
  .section__head    { margin-bottom: 36px; }
  .hero             { padding-top: 90px; }
  .mortgage-card__rate { font-size: 44px; }
  .form-group input,
  .form-group select { font-size: 16px; }
  .sidebar-form .form-group input,
  .sidebar-form .form-group select { font-size: 16px; }
  .footer__inner    { flex-direction: column; }
  .footer__links    { justify-content: center; gap: 12px 20px; }
}

@media (max-width: 480px) {
  :root { --pad: 40px; }
  .distances  { grid-template-columns: 1fr; }
  .dev__grid  { grid-template-columns: 1fr; }
  .lead-form  { padding: 24px 18px; }
  .stats__row { gap: 24px; }
  .stat__n    { font-size: 36px; }
  .section__head    { margin-bottom: 24px; }
  .mortgage-card__rate { font-size: 32px; }
  .float-tg   { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .hero        { padding-top: 76px; padding-bottom: 44px; }
  .hero__sub br { display: none; }
  .hero__badge  { font-size: 11px; padding: 6px 14px; }
}

/* ========================================
   INNER PAGES — общие стили
======================================== */

/* Шапка страницы */
.page-hero {
  background: var(--dark);
  padding: 110px 0 52px;
  text-align: center;
  color: var(--white);
}
.page-hero .tag { color: rgba(201,169,110,0.75); }
.page-hero__title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  margin: 12px 0 10px;
}
.page-hero__sub {
  font-size: 15px;
  opacity: 0.6;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Хлебные крошки */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
}
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb__sep { margin: 0 7px; opacity: 0.4; }

/* Раскладка: статья + сайдбар */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
  padding: 56px 0 80px;
}

/* Типографика статьи */
.article { min-width: 0; }
.article h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  margin: 40px 0 14px;
  line-height: 1.2;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.article p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.article ul, .article ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.article li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 6px;
}
.article strong { color: var(--dark); font-weight: 600; }
.article a { color: var(--dark); }

/* Таблица характеристик */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td {
  padding: 12px 8px;
  line-height: 1.5;
}
.specs-table td:first-child {
  color: var(--muted);
  width: 45%;
  font-size: 13px;
}
.specs-table td:last-child { font-weight: 500; }

/* Планировка на странице квартиры */
.plan-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg);
  border-radius: 16px;
  padding: 28px;
  margin: 28px 0;
}
.plan-detail__img {
  background: var(--white);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.plan-detail__img img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.plan-detail__info { display: flex; flex-direction: column; gap: 14px; }
.plan-detail__area {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}
.plan-detail__price { font-size: 15px; color: var(--muted); }
.plan-detail__price strong { font-size: 20px; color: var(--dark); font-weight: 600; }

/* FAQ аккордеон */
.faq-list { display: flex; flex-direction: column; gap: 0; margin: 24px 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark);
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s;
}
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  padding-bottom: 18px;
}

/* Сайдбар с формой */
.sidebar { position: sticky; top: 100px; }
.sidebar-form {
  background: var(--bg);
  border-radius: 20px;
  padding: 28px 24px;
}
.sidebar-form__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}
.sidebar-form__sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.sidebar-form .form-group { margin-bottom: 14px; }
.sidebar-form .form-group label { font-size: 12px; }
.sidebar-form .form-group input,
.sidebar-form .form-group select { padding: 11px 14px; font-size: 14px; }
.sidebar-form .btn--primary { font-size: 14px; padding: 12px 20px; }

/* Похожие страницы */
.related {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.related__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.related-card {
  background: var(--bg);
  border-radius: var(--r);
  padding: 18px 16px;
  text-decoration: none;
  color: var(--dark);
  border: 1.5px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
  display: block;
}
.related-card:hover { border-color: var(--border); box-shadow: var(--shadow); }
.related-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 5px;
}
.related-card__name { font-size: 15px; font-weight: 600; line-height: 1.3; }

/* Плитка планировок на /kvartiry/ */
.plans-catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 8px 0 32px;
}
.plans-catalog a { text-decoration: none; color: inherit; }
.plan-tile {
  background: var(--bg);
  border-radius: 16px;
  padding: 24px 20px;
  border: 2px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.plan-tile:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-2px); }
.plan-tile__img { height: 140px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.plan-tile__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.plan-tile__type { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.plan-tile__area { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.plan-tile__desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; }
  .plan-detail { grid-template-columns: 1fr; }
  .related__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .plans-catalog { grid-template-columns: 1fr; }
  .page-hero { padding: 90px 0 40px; }
}

/* ========================================
   FLOATING TELEGRAM BUTTON
======================================== */
.float-tg {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #229ED9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: tg-pulse 2.8s ease-in-out infinite;
  text-decoration: none;
}
.float-tg:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(34,158,217,0.55);
  animation: none;
}
@keyframes tg-pulse {
  0%,100% { box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 0 0 0 rgba(34,158,217,0.45); }
  60%      { box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 0 0 12px rgba(34,158,217,0); }
}

/* ========================================
   BLOG
======================================== */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.blog-meta__date::before { content: '📅 '; }
.blog-meta__time::before { content: '⏱ '; }
.blog-meta__tag {
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-d);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.blog-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.blog-card:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-d);
}
.blog-card__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.blog-card__desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.blog-card__meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Страница без сайдбара — только статья */
.article-solo {
  max-width: 780px;
  margin: 56px auto 80px;
}
.article-solo h2 {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  margin: 36px 0 12px;
  line-height: 1.25;
}
.article-solo h2:first-of-type { margin-top: 0; }
.article-solo p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.article-solo ul,
.article-solo ol {
  padding-left: 0;
  margin-bottom: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-solo ul li,
.article-solo ol li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.article-solo ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.article-solo ol {
  counter-reset: ol-counter;
}
.article-solo ol li {
  counter-increment: ol-counter;
}
.article-solo ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-d);
}
.article-solo strong { color: var(--dark); font-weight: 600; }
.article-solo a { color: var(--dark); }

/* Инфо-блок (highlight box) */
.info-box {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.info-box strong { color: var(--dark); }

/* CTA-блок внутри статьи */
.article-cta {
  background: var(--dark);
  color: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 36px 0;
  flex-wrap: wrap;
}
.article-cta__text { font-size: 18px; font-weight: 500; line-height: 1.4; }
.article-cta__sub { font-size: 14px; opacity: 0.6; margin-top: 4px; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-cta { flex-direction: column; align-items: flex-start; }
}
