/* Единая шапка и подвал derevo-kraska.ru.
   Классы с префиксом dk- намеренно не пересекаются со стилями страниц.
   Селекторы вида header.dk-header перекрывают старые правила header{}/footer{}. */

header.dk-header {
  position: static;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.dk-header__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.dk-header__logo { display: block; flex: 0 0 auto; }
.dk-header__logo img { display: block; height: 46px; width: auto; max-width: none; }
.dk-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 24px;
  min-width: 0;
}
.dk-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 0.2s;
}
.dk-nav a:hover { color: #91bd2c; }
.dk-nav a.is-active { color: #91bd2c; }
.dk-header__contacts { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.dk-phone { color: #fff; font-size: 15px; line-height: 1.4; text-align: right; }
.dk-phone span { display: block; font-size: 12px; opacity: 0.75; }
.dk-phone a { color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; }
.dk-header__contacts img { display: block; width: 24px; height: 24px; }

/* Кнопка мобильного меню: на широких экранах не нужна */
.dk-burger {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.dk-burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.dk-header.is-open .dk-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.dk-header.is-open .dk-burger span:nth-child(2) { opacity: 0; }
.dk-header.is-open .dk-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Начало страницы услуги: фото-баннер, текст слева на затемнении */
section.dk-lead {
  position: relative;
  min-height: 0;
  padding: 0;
  background-color: #0e2a2c;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
section.dk-lead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 29, 31, 0.93) 0%,
    rgba(8, 29, 31, 0.86) 42%,
    rgba(8, 29, 31, 0.35) 100%
  );
}
.dk-lead__in {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 420px;
  padding: 64px 24px;
  display: flex;
  align-items: center;
  text-align: left;
}
.dk-lead__text { max-width: 620px; }
.dk-lead__text h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 16px;
}
.dk-lead__text p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
}
.dk-lead__price {
  display: inline-block;
  margin: 0 0 26px;
  padding-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid #91bd2c;
}
.dk-lead__actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 900px) {
  .dk-lead__in { min-height: 340px; padding: 44px 20px; }
  section.dk-lead::before {
    background: linear-gradient(
      180deg,
      rgba(8, 29, 31, 0.88) 0%,
      rgba(8, 29, 31, 0.82) 60%,
      rgba(8, 29, 31, 0.7) 100%
    );
  }
}

footer.dk-footer {
  background: #111;
  padding: 44px 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.dk-footer__in {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.dk-footer__logo img { display: block; height: 44px; width: auto; max-width: none; }
.dk-footer__nav { display: flex; flex: 1; flex-wrap: wrap; gap: 24px; }
.dk-footer__nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.dk-footer__nav a:hover { color: #fff; }
.dk-footer__copy { color: rgba(255, 255, 255, 0.4); font-size: 13px; }
.dk-footer__projects {
  max-width: 1100px;
  margin: 18px auto 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.dk-footer__projects a { color: rgba(255, 255, 255, 0.85); text-decoration: none; border-bottom: 1px solid rgba(145, 189, 44, 0.6); }
.dk-footer__projects a:hover { color: #fff; border-bottom-color: #91bd2c; }

.dk-footer__legal {
  max-width: 1100px;
  margin: 20px auto 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .dk-header__in { gap: 12px; padding: 8px 16px; min-height: 64px; flex-wrap: wrap; }
  .dk-header__logo img { height: 40px; }
  .dk-burger { display: flex; order: 3; }
  .dk-header__contacts { order: 2; margin-left: auto; gap: 12px; }
  .dk-phone span { display: none; }
  .dk-phone a { font-size: 15px; }

  /* меню — отдельной панелью под шапкой, раскрывается кнопкой */
  .dk-nav {
    order: 4;
    flex: 0 0 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }
  .dk-header.is-open .dk-nav { display: flex; }
  .dk-nav a {
    padding: 13px 2px;
    font-size: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dk-footer__in { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 520px) {
  /* узкий экран: в шапке оставляем логотип, телефон и кнопку меню.
     Мессенджеры не теряются — они в блоке контактов и в подвале */
  .dk-header__in { gap: 8px; padding: 8px 12px; }
  .dk-header__logo img { height: 34px; }
  .dk-header__contacts > a { display: none; }   /* только иконки мессенджеров */
  .dk-phone a { font-size: 14px; }
  .dk-burger { width: 40px; padding: 9px 8px; }
}
