/* ===== Базові стилі ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 120px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Хедер ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header .header__inner {
  position: relative;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

/* Жовта лінія внизу хедера */
.header__border {
  height: 4px;
  background: #f4c430;
  width: 100%;
}

/* ===== Ліва частина: категорії ===== */
.header__categories {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.category:hover {
  opacity: 0.8;
}

.category__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
}

.category__icon svg,
.category__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* SERVICES з випадаючим меню */
.category--with-dropdown {
  position: static;
}

.category__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s, color 0.2s;
}

.category--with-dropdown .category__link:hover,
.header--services-open #services-trigger .category__label {
  color: #c41e3a;
}

.category--with-dropdown .category__icon {
  color: inherit;
}

/* ===== Лого ===== */
.header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.logo__mark {
  position: relative;
  display: inline-block;
}

.logo__red-lines {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(calc(-50% + 8px));
  font-size: 10px;
  letter-spacing: 2px;
  color: #c41e3a;
  font-weight: 700;
}

.logo__word {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
}

.logo__sk {
  font-size: 1.35rem;
}

.logo__roof-line {
  display: block;
  width: 80px;
  height: 6px;
  background: #c41e3a;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  margin: 0.25rem 0 0.35rem;
}

.logo__tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a1a1a;
}

/* ===== Права частина ===== */
.header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}
.header__phone .fa-phone {
  font-size: 1.1rem;
  color: #c41e3a;
  transition: transform 0.2s;
}
.header__phone:hover .fa-phone {
  transform: scale(1.1);
}
.header__phone:hover {
  opacity: 0.9;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header__nav a:hover {
  opacity: 0.7;
}

/* ===== Випадаюче меню Services ===== */
.services-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 1.75rem 0;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}

.header--services-open .services-dropdown {
  opacity: 1;
  visibility: visible;
}

.services-dropdown__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.services-dropdown__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  flex-shrink: 0;
  max-width: 200px;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
}

.services-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0;
  counter-reset: svc;
}

.services-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.75rem;
  border-left: 1px solid rgba(0,0,0,0.12);
  counter-increment: svc;
}
.services-dropdown__item::before {
  content: counter(svc, decimal-leading-zero);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  opacity: 0.4;
  line-height: 1;
}

.services-dropdown__item:first-child {
  border-left: none;
  padding-left: 0;
}

.services-dropdown__list a {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
}

.services-dropdown__list a:hover {
  color: #c41e3a;
}

/* ===== Адаптив (планшет/мобільний) ===== */
@media (max-width: 900px) {
  .header__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .header__categories {
    display: none;
  }

  .header__logo {
    width: auto;
    flex-shrink: 0;
  }

  .header__right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .header__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .services-dropdown__inner {
    flex-direction: column;
    gap: 1rem;
  }

  .services-dropdown__list {
    flex-wrap: wrap;
    gap: 0.5rem 0;
  }

  .services-dropdown__item {
    border-left: none;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    padding: 0.6rem 0;
    padding-left: 0;
  }

  .services-dropdown__item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 500px) {
  .header__nav {
    gap: 0.75rem;
  }

  .header__nav a {
    font-size: 0.75rem;
  }

  .category__label {
    font-size: 0.65rem;
  }
}

/* ===== Мобільне меню ===== */
.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  color: #1a1a1a;
  transition: color 0.2s;
}
.header__burger:hover {
  color: #c41e3a;
}
.header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header--mobile-open .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header--mobile-open .header__burger-line:nth-child(2) {
  opacity: 0;
}
.header--mobile-open .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}
.header--mobile-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #1a1a1a;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu__close .fa-times {
  font-size: 1.5rem;
}
.mobile-menu__close:hover {
  color: #c41e3a;
  transform: scale(1.1);
}

.mobile-menu__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-shrink: 0;
}
.mobile-menu__logo .logo__mark,
.mobile-menu__logo .logo__word,
.mobile-menu__logo .logo__sk,
.mobile-menu__logo .logo__roof-line,
.mobile-menu__logo .logo__tagline {
  display: inline-block;
}
.mobile-menu__logo .logo__red-lines {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(calc(-50% + 8px));
  font-size: 10px;
  letter-spacing: 2px;
  color: #c41e3a;
  font-weight: 700;
}
.mobile-menu__logo .logo__word {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
}
.mobile-menu__logo .logo__sk {
  font-size: 1.35rem;
}
.mobile-menu__logo .logo__roof-line {
  display: block;
  width: 80px;
  height: 6px;
  background: #c41e3a;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  margin: 0.25rem 0 0.35rem;
}
.mobile-menu__logo .logo__tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a1a1a;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.mobile-menu__nav a {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  transition: color 0.2s;
}
.mobile-menu__nav a:hover {
  color: #c41e3a;
}
.mobile-menu__services {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.mobile-menu__services a {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  padding: 0.4rem 1rem;
  transition: color 0.2s;
}
.mobile-menu__services a:hover {
  color: #c41e3a;
}
.mobile-menu__phone {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 1.5rem;
  transition: opacity 0.2s;
}
.mobile-menu__phone:hover {
  opacity: 0.8;
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .header__burger {
    display: flex;
  }
  .header__categories,
  .header__right .header__nav,
  .header__right .header__phone {
    display: none !important;
  }
  .header__right {
    flex-direction: row;
  }
}

/* ===== Контент сторінок послуг ===== */
.page-content {
  padding: 3rem 1.5rem;
}

.page-content__inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-content__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.page-content__lead {
  font-size: 1.15rem;
  color: #444;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.page-content p {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: #333;
}
