/* ======================================================
   ВАРИАНТ A — «Государственный подрядчик» (Премиум-монументальный)
   Палитра: графит #0F1419, айвори #F5F1EA, акцент #F24D20
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #0F1419;
  background: #F5F1EA;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === VARIABLES === */
:root {
  --dark: #0F1419;
  --ivory: #F5F1EA;
  --accent: #F24D20;
  --muted-dark: #7A7468;
  --border-dark: #2A2D33;
  --border-light: #D8D2C5;
  --footer-bg: #0A0D11;
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}
.site-header.scrolled {
  background: rgba(15,20,25,0.95);
  backdrop-filter: blur(12px);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo img { width: 36px; height: 36px; }
.header-logo-text {
  display: flex;
  flex-direction: column;
}
.header-logo-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.header-logo-text .sub {
  font-size: 10px;
  color: var(--muted-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header-nav a {
  color: var(--ivory);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s;
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.header-nav a:hover { opacity: 1; }
.header-nav a:hover::after { width: 100%; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-phone {
  color: var(--ivory);
  font-size: 14px;
  opacity: 0.7;
}
.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--ivory);
  transition: 0.3s;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('bocharov-ruchey.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,20,25,0.4) 0%, rgba(15,20,25,0.85) 60%, var(--dark) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  max-width: 960px;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 6vw, 80px);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 760px;
}
.hero-subtitle {
  color: var(--ivory);
  font-size: 18px;
  opacity: 0.7;
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-caption {
  position: absolute;
  bottom: 80px; right: 48px;
  color: var(--muted-dark);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}

/* === SECTION COMMONS === */
.section-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}
section { padding: 120px 48px; }

/* === SERVICES — светлая секция === */
.services { background: var(--ivory); }
.services-header { margin-bottom: 80px; }
.services-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  max-width: 600px;
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  align-items: start;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
}
.service-row:last-child { border-bottom: 1px solid var(--border-light); }
.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--muted-dark);
}
.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  padding-top: 4px;
}
.service-desc {
  font-size: 15px;
  color: var(--muted-dark);
  line-height: 1.7;
  padding-top: 6px;
}

/* === OBJECTS — тёмная секция === */
.objects { background: var(--dark); }
.objects-header { margin-bottom: 80px; }
.objects-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.02em;
}
.object-item { margin-bottom: 120px; }
.object-item:last-child { margin-bottom: 0; }
.object-photo {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 40px;
}
.object-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.object-item:hover .object-photo img { transform: scale(1.03); }
.object-meta {
  display: flex;
  gap: 48px;
  align-items: baseline;
  flex-wrap: wrap;
}
.object-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.02em;
  flex: 1 1 300px;
}
.object-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.object-detail {
  font-size: 12px;
  color: var(--muted-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.object-detail span { color: var(--ivory); opacity: 0.6; }

/* === STATS — светлая секция === */
.stats { background: var(--ivory); }
.stats-header { margin-bottom: 80px; }
.stats-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 48px 40px;
  border-right: 1px solid var(--border-light);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* === LETTER — тёмная секция === */
.letter { background: var(--dark); }
.letter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.letter-img {
  border: 1px solid var(--border-dark);
}
.letter-img img { width: 100%; }
.letter-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.letter-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ivory);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}
.letter-attribution {
  font-size: 13px;
  color: var(--muted-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* === STAGES — светлая секция === */
.stages { background: var(--ivory); }
.stages-header { margin-bottom: 80px; }
.stages-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.stages-list {
  position: relative;
  padding-left: 60px;
}
.stages-list::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  width: 1px;
  background: var(--border-light);
}
.stage-item {
  position: relative;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}
.stage-item:first-child { padding-top: 0; }
.stage-dot {
  position: absolute;
  left: -52px; top: 44px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.stage-item:first-child .stage-dot { top: 4px; }
.stage-num {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  color: var(--muted-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stage-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.stage-desc {
  color: var(--muted-dark);
  font-size: 15px;
  max-width: 640px;
  line-height: 1.7;
}

/* === CONTACTS — тёмная секция === */
.contacts { background: var(--dark); }
.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contacts-header { margin-bottom: 48px; }
.contacts-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.02em;
}
.form-group { margin-bottom: 32px; }
.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 0;
  color: var(--ivory);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--dark); color: var(--ivory); }
.btn-submit {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 14px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.btn-submit:hover { background: var(--accent); color: #fff; }
.contacts-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--ivory);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}
.contact-item {
  margin-bottom: 24px;
}
.contact-item .label {
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-item .value {
  color: var(--ivory);
  font-size: 16px;
}
.map-placeholder {
  margin-top: 40px;
  width: 100%;
  height: 320px;
  background: var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-dark);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* === FOOTER === */
.site-footer {
  background: var(--footer-bg);
  padding: 64px 48px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo img { width: 32px; height: 32px; }
.footer-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ivory);
}
.footer-desc {
  color: var(--muted-dark);
  font-size: 13px;
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--ivory);
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 10px;
  transition: opacity 0.3s;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-dark);
  font-size: 12px;
}

/* === FADE-UP ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .site-header { padding: 0 32px; }
  section { padding: 80px 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .header-nav, .header-actions { display: none; }
  .header-logo-text .sub { display: none; }
  .header-logo-text .name { font-size: 18px; }
  .menu-toggle { display: flex; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--dark);
    padding: 24px 24px 32px;
    gap: 18px;
    border-bottom: 1px solid var(--border-dark);
  }
  .hero { padding-bottom: 56px; align-items: center; }
  .hero-content { padding: 0 24px; }
  .hero-content h1 { margin-bottom: 20px; }
  .hero-subtitle { font-size: 16px; margin-bottom: 32px; }
  .hero-caption { display: none; }
  section { padding: 64px 20px; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .letter-inner, .contacts-inner { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 32px 20px; border-right: none; border-bottom: 1px solid var(--border-light); }
  .stat-item:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
