:root {
  --bg: #faf6ef;
  --bg-alt: #f2e9da;
  --wood-dark: #5c3a24;
  --wood: #a9744e;
  --wood-light: #e8d5ba;
  --accent: #4a7856;
  --accent-dark: #345940;
  --text: #2e2419;
  --text-soft: #6b5c4c;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 30px -14px rgba(46, 36, 25, 0.25);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img, svg {
  max-width: 100%;
  display: block;
}

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

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--wood-dark);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

a {
  color: inherit;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.4em;
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5em;
  color: var(--text-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(74, 120, 86, 0.6);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--wood-dark);
  border: 2px solid var(--wood-light);
}

.btn-outline:hover {
  border-color: var(--wood);
  background: var(--wood-light);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-header {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wood-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--wood-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--white);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-soft);
  font-weight: 500;
}

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

.header-phone {
  font-weight: 700;
  text-decoration: none;
  color: var(--wood-dark);
  white-space: nowrap;
}

/* Hero */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(circle at 85% 15%, rgba(74, 120, 86, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-alt), var(--bg) 70%);
}

.hero-inner {
  max-width: 760px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero-lead {
  font-size: 1.1rem;
  margin-bottom: 2em;
}

/* Why section */
.why {
  padding: 72px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: var(--accent);
}

/* Catalog */
.catalog {
  padding: 72px 0;
  background: var(--bg-alt);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.house-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.house-photo {
  aspect-ratio: 4 / 3;
  background: var(--wood-light);
  overflow: hidden;
}

.house-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-photo-plan img {
  object-fit: contain;
  background: var(--white);
}

.house-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.house-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.house-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.house-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.house-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.house-stats span {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.house-stats strong {
  color: var(--wood-dark);
  font-size: 1.05rem;
}

/* Mortgage */
.mortgage {
  padding: 72px 0;
}

.mortgage-inner {
  max-width: 700px;
  text-align: center;
}

.mortgage-badge {
  display: block;
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 18px 32px;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mortgage-badge strong {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--accent-dark);
  font-weight: 800;
  line-height: 1.35;
}

/* Viewing */
.viewing {
  padding: 72px 0;
  background: var(--wood-dark);
  color: var(--white);
}

.viewing h2,
.viewing p {
  color: var(--white);
}

.viewing-inner {
  max-width: 680px;
  text-align: center;
}

.viewing .btn-primary {
  background: var(--accent);
}

/* Lead form */
.lead-section {
  padding: 72px 0 88px;
  background: var(--bg-alt);
}

.lead-inner {
  max-width: 520px;
}

.lead-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.form-row input,
.form-row select {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid var(--wood-light);
  background: var(--bg);
  color: var(--text);
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-message {
  min-height: 1.4em;
  text-align: center;
  font-weight: 600;
  margin: 0;
}

.form-message.is-success {
  color: var(--accent-dark);
}

.form-message.is-error {
  color: #b3413a;
}

/* Footer */
.site-footer {
  background: var(--wood-dark);
  color: var(--wood-light);
  padding: 44px 0 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(232, 213, 186, 0.25);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.footer-brand .logo-text {
  display: flex;
  flex-direction: column;
}

.footer-brand .logo-title {
  color: var(--white);
}

.footer-brand .logo-subtitle {
  color: var(--wood-light);
  opacity: 0.75;
}

.footer-contacts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-contacts a {
  text-decoration: none;
  font-weight: 700;
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  text-decoration: none;
  color: var(--wood-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(232, 213, 186, 0.7);
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-phone {
    display: none;
  }

  .house-stats {
    gap: 14px;
  }

  .lead-form {
    padding: 24px;
  }
}
