/* Единая шапка и подвал 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; }

/* Начало страницы услуги: фото-баннер, текст слева на затемнении */
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__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: 16px; flex-wrap: wrap; padding: 10px 16px; }
  .dk-nav { order: 3; width: 100%; justify-content: flex-start; gap: 18px; overflow-x: auto; padding-bottom: 4px; }
  .dk-nav::-webkit-scrollbar { display: none; }
  .dk-nav { scrollbar-width: none; }
  .dk-phone span { display: none; }
  .dk-footer__in { flex-direction: column; align-items: flex-start; gap: 20px; }
}
