/* =========================
   VARIABLES
     --color-dark: #1F2933;
  --color-text: #111827;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-bg: #F8FAFC;
  --color-accent: #3B82F6;
========================= */

:root {
  --color-dark: #1F2933;
  --color-text: #111827;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-bg: #F7F5F1;
  --color-accent: #3B82F6;
}

/* =========================
   BASE
========================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont;
  color: var(--color-text);
  line-height: 1.6;
  background: #ffffff;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

p + p {
  margin-top: 0.75rem;
}

section {
  scroll-margin-top: 90px;
  padding: 5.5rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }
}

.container {
  max-width: 1180px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  padding: 1rem 0;
}

.navbar-brand span {
  font-size: 0.95rem;
  color: var(--color-text);
}

.nav-link {
  color: var(--color-text);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link.btn {
  border: 1px solid var(--color-text);
  color: var(--color-text);
}

.nav-link.btn:hover {
  background: var(--color-text);
  color: #fff;
}

/* =========================
   HERO
========================= */

.hero-bg {
  position: relative;
  min-height: 80vh;
  background: url('/assets/img/hero-bg.jpg') center / cover no-repeat;
  animation: fadeUp 0.6s ease both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-content {
  background: rgba(255, 255, 255, 0.94);
  padding: 3.5rem 4rem;
  max-width: 720px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.06),
    0 2px 4px rgba(0,0,0,0.04);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-border);
  margin-top: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 620px;
  margin-bottom: 2rem;
}

/* CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  background: transparent;
  transition: border-color .2s ease, background .2s ease;
}

.hero-cta::after {
  content: "→";
  transition: transform .2s ease;
}

.hero-cta:hover {
  border-color: var(--color-text);
  background: #fff;
}

.hero-cta:hover::after {
  transform: translateX(4px);
}

/* HERO adaptive */
@media (max-width: 992px) {
  .hero-bg {
    min-height: auto;
    padding: 5rem 0;
  }

  .hero-overlay {
    position: relative;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 2.5rem 2rem;
    margin: 0 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* =========================
   SECTIONS
========================= */

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

/* Divider */
.section-divider {
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 80px;
  height: 1px;
  background: var(--color-border);
  transform: translateX(-50%);
}

/* =========================
   STEPS
========================= */

.steps-section {
  background: #ffffff;
}

.step-card {
  padding: 2.5rem 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: #ffffff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.step-number {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.step-card:hover {
  border-color: var(--color-text);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.05),
    0 1px 2px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

/* =========================
   PROJECTS
========================= */

.projects-section {
  background: var(--color-bg);
}

/* =========================
   PROJECT CARD — FINAL
========================= */

.project-card--final {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  padding: 2.5rem 2.5rem 2.25rem;
  height: 100%;

  border: 1px solid var(--color-border);
  background: #ffffff;
  text-decoration: none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

/* =========================
   HEADER
========================= */

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.project-arrow {
  font-size: 1.1rem;
  color: var(--color-muted);
  transition: transform .2s ease, color .2s ease;
}

/* =========================
   CONTENT
========================= */

/* Позиционирование */
.project-positioning {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Масштаб */
.project-scale {
  font-size: 1rem;
  color: var(--color-text);
}

.project-scale strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Scope — ключевая мета-информация */
.project-scope {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin: 0.75rem 0 0.5rem;
}

/* =========================
   HIGHLIGHTS
========================= */

.project-highlights {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 1.25rem; /* ← ВАЖНО */
  
  display: grid;
  grid-template-rows: repeat(3, minmax(1.2em, auto));
  gap: 0.3rem;
}


.project-highlights li {
  position: relative;
  padding-left: 1.1rem;

  font-size: 0.85rem;
  color: var(--color-muted);
}

.project-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;

  font-size: 0.75rem;
  color: #1f7a3f;
}

/* =========================
   STATUS
========================= */

.project-status {
  align-self: flex-start;
  margin-top: auto;

  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  padding: 0.35rem 0.6rem;
  border: 1px solid;
  border-radius: 2px;
}

/* Цвета статусов */
.project-status--active {
  color: #1f7a3f;
  border-color: #1f7a3f;
}

.project-status--final {
  color: #9a6b1a;
  border-color: #9a6b1a;
}

.project-status--closed,
.project-status--done {
  color: var(--color-muted);
  border-color: var(--color-border);
}
.project-status-note {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--color-muted);
}

/* =========================
   HOVER
========================= */

.project-card--final:hover {
  border-color: var(--color-text);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.05),
    0 1px 2px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.project-card--final:hover .project-arrow {
  transform: translateX(4px);
  color: var(--color-text);
}
/* =========================
   CTA PROJECT CARD
========================= */

.project-card--cta {
  border-color: var(--color-text);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.06),
    0 2px 4px rgba(0,0,0,0.04);

  transform: translateY(-1px);
}

/* Hover для CTA — минимальный */
.project-card--cta:hover {
  transform: translateY(-2px);
}

/* =========================
   PROJECT BADGES
========================= */

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-badge {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  padding: 0.25rem 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;

  color: var(--color-muted);
  background: transparent;
}
/* =========================
   PROJECT FOOTER META
========================= */

.project-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;

  margin-top: auto;
}

.project-tags {
  min-height: 0.9rem;
  display: flex;
  gap: 0.4rem;
}

.project-tag {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  transition: color .2s ease;
}
.project-card--final {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Контент растягивается */
.project-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

/* Теги — нижняя зона */
.project-tags {
  min-height: 0.9rem; /* резерв места */
  margin-top: 1rem;

  display: flex;
  gap: 0.4rem;
}

/* Тег */
.project-tag {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}
@media (max-width: 768px) {
  .project-card--final {
    background: #fafafa;
  }
}
@media (max-width: 768px) {
  .project-card--final::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 0;
  }

  .project-card--final {
    position: relative;
  }

  .project-content,
  .project-tags {
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 768px) {
  .project-card--final {
    box-shadow: none;
    border-color: rgba(0,0,0,0.12);
  }
}
@media (max-width: 768px) {
  .project-card--cta {
    background: #f5f5f5;
    border-color: var(--color-text);
  }
}
@media (max-width: 768px) {
  .project-head {
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
  }
}
@media (max-width: 768px) {
  .project-card--final::after {
    content: "";
    position: absolute;

    right: 0.75rem;
    bottom: 0.75rem;

    width: 100px;
    height: 100px;

    background: url('/assets/img/logo.png') center / contain no-repeat;

    opacity: 0.06;
    pointer-events: none;
  }

  .project-card--final {
    position: relative;
  }
}
@media (max-width: 768px) {
  .project-content,
  .project-tags {
    position: relative;
    z-index: 1;
  }
}



/* =========================
   TRANSITIONS
========================= */

a,
button {
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   CONTACTS
========================= */

.contacts-section {
  background: var(--color-bg);
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacts-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contacts-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contacts-value,
.contacts-value a {
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
}

/* =========================
   FORM
========================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;

  max-width: 720px;
}

/* Общая модель размеров */
.contact-form,
.contact-form * {
  box-sizing: border-box;
}

/* =========================
   FORM LAYOUT
========================= */

/* Две колонки */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Группа поля */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Label */
.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Поля */
.form-group input,
.form-group textarea {
  width: 100%;

  border: 1px solid var(--color-border);
  padding: 0.75rem 0.85rem;

  font-size: 0.95rem;
  background: #ffffff;
}

/* Focus */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

/* =========================
   FORM CONSENT
========================= */

.form-consent {
  margin-top: 0.75rem;
}

.consent-label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;

  font-size: 0.75rem;
  color: var(--color-muted);
  cursor: pointer;
}

.consent-label input {
  margin-top: 0.15rem;
}

.consent-label a {
  color: var(--color-text);
  text-decoration: underline;
}

/* =========================
   SUBMIT BUTTON
========================= */

.form-submit {
  align-self: flex-start;

  padding: 0.6rem 1.2rem;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);

  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.form-submit:hover {
  background: var(--color-text);
  color: #ffffff;
}

/* =========================
   FORM RESULT
========================= */

.form-result {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  animation: fadeUp .3s ease;
}

.form-result--success {
  color: #1f7a3f;
}

.form-result--error {
  color: #9a2d2d;
}

/* =========================
   CONTACT INTRO
========================= */

.contact-intro {
  margin-bottom: 2rem;
}

.contact-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-text {
  max-width: 720px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* =========================
   ADAPTIVE
========================= */

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;

  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Левая часть */
.footer-brand {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

.footer-region {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-link-row {
  line-height: 1.2;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;

  font-size: 0.75rem;
  color: var(--color-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-text);
}


.icon-avito {
  display: block;
}



.footer-year {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Адаптив */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }
}
/* =========================
   ABOUT
========================= */

.about-section {
  background: #ffffff;
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.about-text {
  color: var(--color-muted);
  max-width: 900px;
}

/* Факты */
.about-facts {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-facts li strong {
  display: block;
  font-size: 0.95rem;
}

.about-facts li span {
  font-size: 0.8rem;
  color: var(--color-muted);
}
/* =========================
   PROJECT PAGE
========================= */

.project-page {
  background: #ffffff;
}

/* Заголовок */
.project-page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Статус проекта */
.project-page-status {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  padding: 0.35rem 0.6rem;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* Описание */
.project-page-description p {
  max-width: 720px;
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

/* План участков */
.project-plan {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 1rem;
}

.project-plan img {
  display: block;
  width: 100%;
  height: auto;
}

/* Мета-информация */
.project-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-meta li {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.project-meta strong {
  font-weight: 500;
  color: var(--color-text);
}

/* Блок формы */
.project-form-intro h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.project-form-intro p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

/* Форма — мягче, чем в контактах */
.project-page .contact-form {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  background: #ffffff;
}

/* Адаптив */
@media (max-width: 768px) {

  .project-page-title {
    margin-bottom: 0.75rem;
  }

  .project-page-status {
    margin-bottom: 1.5rem;
  }

  .project-plan {
    margin-bottom: 2rem;
  }

}
/* ===== ABOUT CYCLE ===== */

.about-cycle {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.about-cycle-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-cycle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 1.5rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.4rem 1.5rem;
}

.about-cycle-list li {
  font-size: 0.75rem;
  color: var(--color-muted);
  position: relative;
  padding-left: 0.8rem;
}

.about-cycle-list li::before {
  content: "— ";
  position: absolute;
  left: 0;
  color: var(--color-border);
}
/* =========================
   PROJECT GALLERY
========================= */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;

  margin-bottom: 2.5rem;
}

.project-gallery img {
  display: block;
  width: 100%;
  height: auto;

  object-fit: cover;
  aspect-ratio: 4 / 3;

  background: #f7f7f7;
  border: 1px solid var(--color-border);
}

/* Адаптив */
@media (max-width: 992px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }
}
/* =========================
   PROJECT INVESTMENT
========================= */

.project-investment {
  margin-top: 2rem;
  padding-top: 1.5rem;

  border-top: 1px solid var(--color-border);
}

.project-investment p {
  margin-bottom: 0.5rem;

  font-size: 0.85rem;
  color: var(--color-muted);
}

.project-investment strong {
  font-weight: 500;
  color: var(--color-text);
}
/* =========================
   PROJECT READY
========================= */

.project-ready {
  margin-top: 2rem;
}

.project-ready h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-ready ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  gap: 0.4rem;
}

.project-ready li {
  font-size: 0.8rem;
  color: var(--color-muted);
  position: relative;
  padding-left: 0.9rem;
}

.project-ready li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-border);
}
