/* Новослободская 14 — CSS для вставки в head (Настройки сайта → HTML code) */

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

:root {
  --coal:   #1A1814;
  --coal2:  #2C2820;
  --coal3:  #211F1A;
  --ivory:  #F5F0E8;
  --ivory2: #E8E2D6;
  --brass:  #C9A96E;
  --brass2: #9A7D4E;
  --muted:  #8C8478;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--coal);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 48px;
  background: linear-gradient(to bottom, rgba(26,24,20,0.97) 0%, transparent 100%);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ivory); text-decoration: none;
}
.nav-cta {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); text-decoration: none;
  border-bottom: 1px solid var(--brass2); padding: 8px 0 6px;
  min-height: 44px; display: flex; align-items: center;
  transition: color .25s, border-color .25s;
}
.nav-cta:hover { color: var(--ivory); border-color: var(--ivory); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;       /* fallback для старых браузеров */
  min-height: 100svh;      /* iOS Safari: без адресной строки */
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 48px 96px;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  filter: brightness(0.55) contrast(1.08) saturate(0.75);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(26,24,20,0) 0%, rgba(26,24,20,0.45) 100%),
    linear-gradient(to bottom,
      rgba(26,24,20,0.30) 0%,
      rgba(26,24,20,0.20) 30%,
      rgba(26,24,20,0.60) 65%,
      rgba(26,24,20,0.98) 100%
    );
}
.hero-content { position: relative; max-width: 680px; }
.hero-eyebrow {
  font-size: 0.63rem; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 22px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300; line-height: 1.0; letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300; font-style: italic;
  color: var(--ivory2); margin-bottom: 48px; letter-spacing: 0.02em;
  max-width: 520px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; font-family: var(--sans);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--coal); background: var(--brass);
  padding: 17px 40px; text-decoration: none; cursor: pointer;
  border: none;
  min-height: 52px; touch-action: manipulation;
  transition: background .25s, color .25s, transform .2s;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--ivory); transform: translateY(-1px); }
button.btn-primary { font-family: var(--sans); font-size: 0.7rem; }
.btn-outline {
  display: inline-block; font-family: var(--sans);
  font-size: 0.65rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); border: 1px solid var(--brass2);
  padding: 14px 28px; text-decoration: none;
  transition: all .25s;
}
.btn-outline:hover { color: var(--coal); background: var(--brass); border-color: var(--brass); }

/* ── SECTION LAYOUT ── */
section { padding: 112px 48px; }
.inner { max-width: 1100px; margin: 0 auto; }
.label {
  font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--brass);
  display: flex; align-items: center; gap: 14px; margin-bottom: 52px;
}
.label::before { content:''; width:36px; height:1px; background: var(--brass2); flex-shrink:0; }
h2.title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 300; line-height: 1.15; letter-spacing: 0.02em; margin-bottom: 28px;
}
.body-text { font-size: 0.975rem; color: var(--ivory2); line-height: 1.88; max-width: 560px; }
.body-text + .body-text { margin-top: 18px; }
.divider {
  height: 1px; margin: 0 48px;
  background: linear-gradient(to right, transparent, var(--brass2), transparent);
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 60px; }
.about-note {
  margin-top: 32px; padding: 24px 28px; border-left: 2px solid var(--brass);
  font-family: var(--serif); font-size: 1.05rem; font-style: italic;
  color: var(--ivory2); line-height: 1.65;
}
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--coal2); }
.feat { background: var(--coal); padding: 28px 24px; transition: background .2s; }
.feat:hover { background: var(--coal3); }
.feat-label { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.feat-val { font-family: var(--serif); font-size: 1.3rem; color: var(--ivory); font-weight: 400; }

/* ── HOW IT WORKS ── */
.how { background: var(--coal2); }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--coal3); margin-top: 60px; }
.step { background: var(--coal2); padding: 44px 40px; }
.step-num {
  font-family: var(--serif); font-size: 3rem; font-weight: 300;
  color: transparent; -webkit-text-stroke: 1px var(--brass2);
  line-height: 1; margin-bottom: 20px; opacity: 0.55;
}
.step-text { font-size: 0.975rem; color: var(--ivory2); line-height: 1.75; }
.step-conclusion {
  grid-column: 1 / -1; background: var(--coal3);
  padding: 36px 40px; border-top: 1px solid rgba(201,169,110,0.18);
}
.step-conclusion p {
  font-family: var(--serif); font-size: 1.15rem; font-style: italic;
  color: var(--ivory); text-align: center; line-height: 1.55;
}
.step-conclusion p + p { margin-top: 14px; color: var(--ivory2); font-size: 1rem; opacity: 0.8; }

/* ── WHY FIVE ── */
.v-numeral {
  font-family: var(--serif); font-size: clamp(7rem, 18vw, 16rem);
  font-weight: 300; color: transparent; -webkit-text-stroke: 1px var(--brass2);
  line-height: 0.85; margin-bottom: 44px; opacity: 0.4; user-select: none;
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-quote {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300; font-style: italic; line-height: 1.45;
  border-left: 2px solid var(--brass); padding-left: 32px; color: var(--ivory);
}

/* ── RESIDENCES ── */
.res-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--coal3); margin-top: 60px;
}
.res-card {
  background: var(--coal2); padding: 44px 28px 36px;
  display: flex; flex-direction: column; gap: 0;
  position: relative; overflow: hidden;
  transition: background .3s;
}
.res-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--brass2);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.res-card:hover { background: #252119; }
.res-card:hover::before { transform: scaleX(1); }
.res-num {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}
.res-name {
  font-family: var(--serif); font-size: 1.2rem; color: var(--ivory);
  margin-bottom: 28px; font-weight: 400;
}
.res-tag {
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); background: rgba(201,169,110,0.12);
  padding: 3px 10px; display: inline-block; margin-top: 8px;
}
.res-area {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 300;
  color: var(--ivory); line-height: 1; margin-bottom: 10px;
}
.res-area span { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 300; }
.res-price {
  font-family: var(--serif); font-size: 1.1rem; color: var(--ivory2);
  margin-bottom: 32px; letter-spacing: 0.01em;
}
.res-not-for-sale {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); line-height: 1.7; margin-bottom: 32px;
}
.res-cta { margin-top: auto; }

/* ── FORM SECTION ── */
.form-section { background: var(--coal); padding: 100px 48px; }
.form-inner { max-width: 580px; margin: 0 auto; }
.form-title-wrap { text-align: center; margin-bottom: 52px; }
.form-title-wrap h2.title { margin-bottom: 14px; }
.form-sub { font-size: 0.93rem; color: var(--muted); line-height: 1.7; }

/* Visual form (replaced by Tilda Forms block in production) */
.form-visual {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid rgba(201,169,110,0.2);
}
.form-field {
  padding: 0 36px;
  border-bottom: 1px solid rgba(201,169,110,0.12);
}
.form-field label {
  display: block; font-size: 0.58rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--brass); padding-top: 20px; margin-bottom: 6px;
}
.form-field input {
  display: block; width: 100%; background: transparent; border: none;
  padding: 0 0 18px; color: var(--ivory);
  font-family: var(--sans); font-size: 1rem; font-weight: 300;
  outline: none; caret-color: var(--brass);
  transition: color .2s;
  -webkit-appearance: none; /* убирает iOS стили */
  border-radius: 0; /* убирает iOS скругление */
}
@media (max-width: 600px) {
  .form-field input { font-size: 16px; } /* предотвращает zoom на iOS при фокусе */
}
.form-field input::placeholder { color: var(--muted); opacity: 0.6; }
.form-field input:focus { color: var(--ivory); }
.form-field:focus-within { border-bottom-color: rgba(201,169,110,0.4); }
.form-submit {
  padding: 32px 36px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.form-legal {
  font-size: 0.7rem; color: var(--muted); line-height: 1.6;
}
.form-legal a { color: var(--brass2); text-decoration: none; }
.form-legal a:hover { color: var(--brass); }
.form-success { text-align: center; padding: 48px 0; }
.form-success-text {
  font-family: var(--serif); font-size: 1.3rem; color: var(--brass);
  font-style: italic; line-height: 1.5;
}
/* Убираем системный outline, добавляем свой */
.form-field input:focus { outline: none; }
.form-field:focus-within label { color: var(--ivory); }

/* ── FLOORPLANS ── */
.floorplans { background: var(--coal2); }
.fp-img { width: 100%; display: block; margin-top: 52px; }
.fp-note {
  font-size: 0.78rem; color: var(--muted); font-style: italic;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(201,169,110,0.15);
}

/* ── AUTHOR ── */
.author { background: var(--coal2); }
.author-grid { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: start; margin-top: 60px; }
.author-img-wrap { position: relative; overflow: hidden; }
.author-img {
  width: 100%; display: block;
  filter: grayscale(0.6) brightness(0.88) contrast(1.06) saturate(0.5);
}
.author-name { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; margin-bottom: 6px; letter-spacing: 0.01em; }
.author-role { font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--brass); margin-bottom: 40px; }

/* ── PRE-FORM ── */
.pre-form { background: var(--coal3); }
.pf-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.pf-inner .label { justify-content: center; }
.pf-inner .label::before { display: none; }
.pf-inner h2.title { text-align: center; }
.pf-desc { font-size: 0.95rem; color: var(--muted); margin-bottom: 44px; line-height: 1.75; }
.pf-list {
  list-style: none; display: inline-block; text-align: left;
  border: 1px solid rgba(201,169,110,0.2); padding: 36px 48px;
}
.pf-list li {
  padding: 10px 0; border-bottom: 1px solid rgba(201,169,110,0.1);
  display: flex; align-items: center; gap: 14px;
  font-size: 0.95rem; color: var(--ivory2);
}
.pf-list li:last-child { border-bottom: none; }
.pf-list li::before { content: '—'; color: var(--brass); font-family: var(--serif); flex-shrink: 0; }

/* ── FAQ ── */
.faq { background: var(--coal); }
.faq-list { margin-top: 60px; border-top: 1px solid rgba(201,169,110,0.18); }
.faq-item { border-bottom: 1px solid rgba(201,169,110,0.18); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 26px 0; display: flex; justify-content: space-between; align-items: center;
  text-align: left; gap: 24px;
}
.faq-q-text {
  font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400; color: var(--ivory); line-height: 1.3;
}
.faq-icon {
  flex-shrink: 0; width: 28px; height: 28px; position: relative;
  border: 1px solid var(--brass2); border-radius: 50%;
  transition: background .25s;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--brass);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-icon::before { width: 10px; height: 1px; }
.faq-icon::after { width: 1px; height: 10px; transition: transform .3s, opacity .25s; }
.faq-item.open .faq-icon { background: rgba(201,169,110,0.12); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 0 26px; font-size: 0.975rem; color: var(--ivory2); line-height: 1.85; max-width: 640px; }
.faq-answer-inner a { color: var(--brass); text-decoration: none; border-bottom: 1px solid var(--brass2); }

/* ── CONTACTS ── */
.contacts { background: var(--coal2); padding: 80px 48px; }
.contacts-inner { max-width: 1100px; margin: 0 auto; }
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--coal3); margin-top: 52px; }
.contact-item { background: var(--coal2); padding: 36px 32px; transition: background .2s; }
.contact-item:hover { background: var(--coal3); }
.contact-type { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.contact-val { font-family: var(--serif); font-size: 1.2rem; color: var(--ivory); }
.contact-val a { color: inherit; text-decoration: none; transition: color .2s; }
.contact-val a:hover { color: var(--brass); }

/* ── FOOTER ── */
footer {
  background: var(--coal); border-top: 1px solid rgba(201,169,110,0.12);
  padding: 44px 48px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.28em; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.7rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brass); }
.footer-copy { font-size: 0.7rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .res-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  section { padding: 72px 24px; }
  .divider { margin: 0 24px; }
  .hero { padding: 0 24px 72px; }
  .hero-img { object-position: center center; }
  .about-grid, .why-grid, .author-grid { grid-template-columns: 1fr; gap: 44px; }
  .author-img { max-width: 260px; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-conclusion { grid-column: 1; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts { padding: 72px 24px; }
  .form-section { padding: 72px 24px; }
  footer { padding: 36px 24px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .pf-list { padding: 24px 28px; }
}
@media (max-width: 600px) {
  .res-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .form-field { padding: 0 24px; }
  .form-submit { padding: 24px; }
  nav { padding: 16px 20px; }
  .nav-logo { font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.hero-overlay {
  background: rgba(0, 0, 0, 0.25) !important;
}

.hero-img {
    opacity: 1 !important;
    filter: brightness(1.15) contrast(1.05) !important;
}
.fp-img{
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

.author-img{
    max-width: 360px;
    width: 100%;
}