/* === RESET & VARIABLES === */
:root {
  --color-primary: #2a2a2a;
  --color-accent: #f5a623;
  --color-text: #333;
  --color-light: #fff;
  --color-bg: #f8f9fa;
  --font-main: 'Segoe UI', system-ui, sans-serif;
  --container-width: 1200px;
  --header-height: 70px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER & MENU === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 60px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.menu--secondary {
  gap: 16px;
}

.menu__link, .dropdown-menu__link {
  font-weight: 500;
  transition: color var(--transition);
  padding: 8px 0;
  position: relative;
}

.menu__link:hover, .dropdown-menu__link:hover {
  color: var(--color-accent);
}

/* Dropdown */
.menu__item--dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-light);
  min-width: 220px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  list-style: none;
  z-index: 10;
}

.menu__item--dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu__item {
  padding: 0;
}

.dropdown-menu__link {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-text);
}

.dropdown-menu__link:hover {
  background: #f1f1f1;
  color: var(--color-accent);
}

/* Hamburger */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.header__toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  position: absolute;
  left: 0;
  transition: all var(--transition);
}

.header__toggle-line:nth-child(1) { top: 0; }
.header__toggle-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__toggle-line:nth-child(3) { bottom: 0; }

.header__toggle.is-active .header__toggle-line:nth-child(1) {
  top: 50%; transform: translateY(-50%) rotate(45deg);
}
.header__toggle.is-active .header__toggle-line:nth-child(2) {
  opacity: 0;
}
.header__toggle.is-active .header__toggle-line:nth-child(3) {
  bottom: 50%; transform: translateY(50%) rotate(-45deg);
}

/* Блок: Заголовок страницы */
.page-title {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff; /* Цвет текста для светлой темы */
}

/* Затемнение фона (опционально, чтобы текст читался) */
.page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный слой */
  z-index: 1;
}

.page-title__content {
  position: relative;
  z-index: 2; /* Текст поверх затемнения */
}

.page-title__heading {
  font-size: 3rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.page-title__subheading {
  font-size: 1.5rem;
  font-weight: 400;
}

/* Адаптивность */
@media (max-width: 768px) {
  .page-title__heading { font-size: 2.2rem; }
  .page-title__subheading { font-size: 1.2rem; }
}


/* === PAGE TITLE === */
.page-title {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-light);
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.page-title__content {
  position: relative;
  z-index: 1;
}

.page-title__heading {
  font-size: 3rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.page-title__subheading {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
}

/* === SERVICES === */
.services {
  padding: 80px 0;
}

.services__heading {
  text-align: center;
  margin-bottom: 40px;
}

.services__heading h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.services__heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.services__card {
  background: var(--color-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.services__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.services__card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.services__card__content {
  padding: 20px;
  text-align: center;
}

.services__card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  margin-bottom: 8px;
}

.services__card__tag {
  font-size: 0.85rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === PROCESS SECTION === */
.process {
  padding: 80px 0;
  background: var(--color-bg);
}

.process__title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 12px;
}

.process__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.process__step {
  background: var(--color-light);
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.process__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.process__step__icon {
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  color: var(--color-light);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.process__step__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.process__step__desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === FOOTER === */
.footer {
  background: #2a2a2abf;
  color: #ccc;
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-light);
  display: inline-block;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer__heading {
  color: var(--color-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.footer__nav {
  list-style: none;
}

.footer__link {
  color: #aaa;
  display: block;
  padding: 6px 0;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__contacts {
  font-style: normal;
  list-style: none;
}

.footer__contact-item {
  display: block;
  color: #aaa;
  padding: 6px 0;
  transition: color var(--transition);
}

.footer__contact-item:hover {
  color: var(--color-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}

.footer__copyright {
  font-size: 0.85rem;
  color: #888;
}

/* === CONTACTS SECTION === */
.contacts {
  padding: 80px 0;
  background: var(--color-bg);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacts__info { }

.contacts__title {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.contacts__data {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contacts__item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 4px;
}

.contacts__item__text {
  display: flex;
  flex-direction: column;
}

.contacts__item__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 4px;
}

.contacts__item__value {
  color: var(--color-text);
  font-size: 1.05rem;
  text-decoration: none;
  transition: color var(--transition);
}

.contacts__item__value:hover {
  color: var(--color-accent);
}

.contacts__map {
  width: 100%;
  height: 300px;
  background: #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contacts__map__iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts__form-wrap {
  background: var(--color-light);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contacts__form-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.contacts__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts__label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}

.contacts__input,
.contacts__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contacts__input:focus,
.contacts__textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
  outline: none;
}

.contacts__textarea {
  min-height: 120px;
  resize: vertical;
}

.contacts__btn {
  padding: 14px 24px;
  background: var(--color-accent);
  color: var(--color-light);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.contacts__btn:hover {
  background: #e0951a;
  transform: translateY(-1px);
}

.contacts__btn:active {
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .contacts__grid {
    grid-template-columns: 1fr;
  }
  .contacts__form-wrap {
    order: -1;
  }
}

@media (max-width: 576px) {
  .contacts { padding: 60px 0; }
  .contacts__title, .contacts__form-title { font-size: 1.6rem; }
  .contacts__form-wrap { padding: 24px 20px; }
  .contacts__map { height: 250px; }
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
  .process__title { font-size: 1.8rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer__heading::after { left: 50%; transform: translateX(-50%); }
  .footer__desc, .footer__contacts { margin: 0 auto; max-width: 100%; }
}


/* === RESPONSIVE === */
@media (max-width: 992px) {
  .page-title__heading { font-size: 2.5rem; }
  .page-title__subheading { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  .header__toggle { display: block; }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: var(--color-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right var(--transition);
    overflow-y: auto;
  }

  .header__nav.is-open {
    right: 0;
  }

  .menu {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .menu--secondary {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 12px;
  }

  /* Mobile Dropdown */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 8px 0 8px 10px;
    display: none;
  }

  .menu__item--dropdown.is-open .dropdown-menu {
    display: block;
  }

  .page-title__heading { font-size: 2rem; }
  .page-title__subheading { font-size: 1.1rem; }
  .services__heading h2 { font-size: 1.8rem; }
}
