/* =============================================
   ПЕРЕМЕННЫЕ И СБРОС
   ============================================= */
:root {
  --color-bg: #ffffff;
  --color-text: #1A1A1F;
  --color-accent: #B85D3E;
  --color-block: #D4DCE8;
  --color-hero: #C41E24;
  --color-muted: #6b6b70;
  --color-steel: #3E5C82;
  --color-header-bg: rgba(26, 26, 31, 0.97);
  --header-h: 68px;
  --container-w: 1280px;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button {
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #f0a68d;
  outline-offset: 3px;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

/* =============================================
   ТИПОГРАФИКА
   ============================================= */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

/* =============================================
   КОНТЕЙНЕР
   ============================================= */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

/* =============================================
   ХЕДЕР / НАВИГАЦИЯ
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-accent);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}
.logo:hover { color: var(--color-accent); }

.main-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.main-nav a {
  color: #d0d0d8;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(184, 93, 62, 0.25);
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1100;
}
.burger span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   СЕКЦИИ
   ============================================= */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--color-block); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 1rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(196, 30, 36, 0.78) 0%,
    rgba(100, 10, 14, 0.65) 60%,
    rgba(26, 26, 31, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 2rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
  border: none;
  padding: 0;
}
.hero-quote cite {
  display: block;
  font-size: 0.9em;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.65);
  font-style: normal;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* =============================================
   О КОМПАНИИ
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: #333;
}
.about-text p:last-child { margin-bottom: 0; }

.about-photo {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =============================================
   НАШИ РАБОТЫ — завершённые проекты
   ============================================= */
.work-item {
  margin-bottom: 5rem;
}
.work-item:last-child { margin-bottom: 0; }

/* Шапка проекта: медная метка + название. Изображение-герой, оверлей и
   адресная строка включаются только на мобильных (mobile-fixes.css) */
.work-hero {
  position: relative;
}
.work-hero-overlay,
.work-hero-address { display: none; }

/* Eyebrow-метки: типографика повторяет .contact-label */
.work-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.work-eyebrow--status { color: var(--color-accent); }
.work-eyebrow--info { color: var(--color-steel); }

.work-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

/* Тело проекта: информация слева, слайдер справа (примерно 40/60) */
.work-body {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 1.25rem;
}

/* Адресный блок: метка + сильный заголовок + абзац описания */
.work-address {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.work-desc {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: #444;
}

/* «Результат»: белая карточка с медной галочкой */
.work-result {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.75rem;
  background: #fff;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.work-result-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.work-result-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.work-result-text {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--color-text);
  line-height: 1.65;
}

/* СЛАЙДЕР */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #111;
  aspect-ratio: 16/9;
  max-height: 540px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(26,26,31,0.65);
  color: #fff;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 10;
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: var(--color-accent); transform: translateY(-50%) scale(1.1); }
.slider-btn--prev { left: 14px; }
.slider-btn--next { right: 14px; }

.slider-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background var(--transition), transform var(--transition);
}
.dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* =============================================
   ПОЧЕМУ ВЫБИРАЮТ НАС
   ============================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.13);
}

.card-icon {
  width: 56px; height: 56px;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 100%; height: 100%; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.card-text {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* =============================================
   УСЛУГИ (внутри секции «Почему выбирают нас»)
   ============================================= */
.services-block {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.services-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2.5rem;
}

.services-list {
  list-style: none;
  display: grid;
  gap: 0.875rem;
  max-width: 860px;
}

.services-list li {
  position: relative;
  padding-left: 2.25rem;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: #333;
  line-height: 1.6;
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23B85D3E' stroke-width='1.8'/%3E%3Cpath d='M6 10.2l2.6 2.6 5.4-5.6' stroke='%23B85D3E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* =============================================
   КОНТАКТЫ
   ============================================= */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}
a.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.contact-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(184, 93, 62, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}
.contact-value {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 500;
  color: var(--color-text);
}

/* =============================================
   ФУТЕР
   ============================================= */
.site-footer {
  background: #1A1A1F;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
}

/* =============================================
   АДАПТИВНОСТЬ
   ============================================= */

/* 2K и выше */
@media (min-width: 1920px) {
  :root { --container-w: 1560px; }
  html { font-size: 18px; }
}

/* Планшеты */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    position: relative;
    top: 0;
    max-width: 380px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Мобильные — меню */
@media (max-width: 768px) {
  .burger { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 100vw);
    height: 100svh;
    background: var(--color-header-bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a {
    font-size: 1.15rem;
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
  }
  .main-nav a:last-child { border-bottom: none; }

  .contacts-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }

  .about-photo { max-width: 100%; }

  .slider { aspect-ratio: 4/3; }

  .hero-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
  .slider { aspect-ratio: 1/1; }
  .slider-btn { width: 38px; height: 38px; font-size: 1rem; }
}

/* Очень маленькие (320px) */
@media (max-width: 360px) {
  .logo { font-size: 1.1rem; }
  .hero-title { font-size: 1.4rem; }
}