/* ============================================================
   promdelo.su — style.css
   Версия: 1.0 | 2026-04-12
   ============================================================

   БЫСТРАЯ ШПАРГАЛКА — ЧТО МЕНЯТЬ:

   Основные цвета:
     Акцент (оранжевый):  #ff6600  — кнопки, ссылки при hover
     Тёмный акцент:       #e55a00  — hover на оранжевых кнопках
     Текст:               #141412  — основной текст
     Фон страницы:        #ffffff
     Серый блок:          #f0f0f0  — секции на сером фоне
     Футер:               #171717  — тёмный низ страницы

   Шрифт: Arial, Helvetica, sans-serif
   Базовый размер: 16px

   Файлы:
     style.css       — этот файл, общие стили для всех страниц
     index.html      — Главная
     abouthtml/      — О нас
     services/       — Услуги
     contacts/       — Контакты
     static/logo.png — логотип
     images/         — все картинки
     send.php        — скрипт отправки формы
   ============================================================ */

/* --- RESET & BASE --- */
/* Не трогать — сброс стандартных стилей браузера */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #141412;
  background: #fff;
  line-height: 1.5;
}

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

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

ul {
  list-style: none;
}

/* --- CONTAINER --- */
/* Максимальная ширина контента — 1200px по центру.
   Менять max-width если нужна другая ширина сайта */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   ШАПКА
   Высота: 10vh (зависит от высоты экрана, как в оригинале)
   Логотип: 9vh — файл static/logo.png
   Цвет фона: #fff, тень снизу
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 990;
  background: #fff;
  box-shadow: 0 10px 40px -2px rgba(0, 11, 48, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 10vh;
  min-height: 70px;
  gap: 16px;
}

/* Логотип */
.header-logo a {
  display: block;
}

.header-logo img {
  height: 9vh;
  width: auto;
}

/* Навигация */
.header-nav ul {
  display: flex;
  gap: 0;
}

.header-nav ul li a {
  display: block;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #141412;
  transition: color 0.2s;
  white-space: nowrap;
}

.header-nav ul li a:hover,
.header-nav ul li a.active {
  color: #ff6600;
}

/* Правая часть шапки — всё в одну строку */
.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-contacts {
  font-size: 15px;
  font-weight: 700;
  color: #141412;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.header-contacts a {
  color: inherit;
}

.header-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Кнопки шапки — маленькие (в шапке)
   .btn-outline = белая с обводкой (телефон)
   .btn-orange  = оранжевая ("Заказать")
   Большие кнопки hero: .btn-orange-lg и .btn-white-lg — в index.html */
.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  line-height: 1.4;
}

.btn-outline {
  color: #141412;
  border-color: #141412;
  background: transparent;
}

.btn-outline:hover {
  background: #141412;
  color: #fff;
}

.btn-orange {
  background: #ff6600;
  color: #fff;
  border-color: #ff6600;
}

.btn-orange:hover {
  background: #e55a00;
  border-color: #e55a00;
}

.btn-orange-lg {
  background: #ff6600;
  color: #fff;
  border-color: #ff6600;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 17px;
}

.btn-orange-lg:hover {
  background: #e55a00;
  border-color: #e55a00;
}

.btn-white-lg {
  background: #fff;
  color: #141412;
  border-color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 17px;
}

.btn-white-lg:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}

/* Социальные иконки в шапке */
.header-social {
  display: flex;
  gap: 6px;
  align-items: center;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: opacity 0.2s;
}

.header-social a:hover {
  opacity: 0.7;
}

.header-social svg {
  width: 28px;
  height: 28px;
}

/* --- BURGER МЕНЮ (мобильная) ---
   Показывается на экранах до 980px
   Три полоски → крестик при открытии */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.header-burger span {
  display: block;
  height: 2px;
  background: #141412;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-burger.open span:nth-child(2) {
  opacity: 0;
}

.header-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильное меню выпадающее */
.mobile-menu {
  display: none;
  position: fixed;
  top: 10vh;
  left: 0;
  width: 100%;
  background: #111;
  z-index: 980;
  padding: 20px 0;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
}

.mobile-menu ul li a {
  display: block;
  padding: 14px 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}

.mobile-menu ul li a:hover {
  color: #ff6600;
}

/* ============================================================
   ФУТЕР
   Цвет фона: #171717 (тёмный)
   Высота: 80px
   Содержит: копирайт слева, иконки по центру, "Наверх" справа
   ============================================================ */
.site-footer {
  background: #171717;
  color: #fff;
  padding: 0 0 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}

.footer-copy {
  font-size: 13px;
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.7;
}

.footer-social svg {
  width: 30px;
  height: 30px;
}

.footer-top a {
  color: #fff;
  font-size: 13px;
  transition: opacity 0.2s;
}

.footer-top a:hover {
  opacity: 0.7;
}

/* ============================================================
   ФОРМА ЗАЯВКИ — общие стили для всех страниц
   Фоновое фото задаётся здесь: url('images/blob.png')
   Поменять фото — изменить путь в background-image
   Цвет оверлея: rgba(0,0,0,0.8-0.9) — затемнение фона
   ============================================================ */
.form-section {
  background-image: url('images/blob.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  position: relative;
}

.form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.9));
}

.form-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.form-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.form-descr {
  font-size: 20px;
  color: #fff;
  margin-bottom: 40px;
  opacity: 0.9;
}

#pf-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

#pf-form .pf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

#pf-form .pf-field {
  flex: 1 1 180px;
}

#pf-form .pf-field-full {
  flex: 1 1 100%;
}

#pf-form input[type="text"],
#pf-form input[type="email"],
#pf-form input[type="tel"],
#pf-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 16px;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 3px;
  outline: none;
}

#pf-form input::placeholder,
#pf-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#pf-form textarea {
  resize: vertical;
  min-height: 80px;
}

.pf-submit {
  color: #fff;
  background: #f5914f;
  border: none;
  border-radius: 3px;
  padding: 14px 40px;
  font-size: 17px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.pf-submit:hover {
  background: #e07d3a;
}

.pf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#pf-msg {
  margin-top: 16px;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
}

#pf-msg.success { color: #7dff7d; }
#pf-msg.error   { color: #ff7d7d; }

/* ============================================================
   БЛОК КОНТАКТОВ — общий для всех страниц
   Левая колонка: 380px — текст и соцсети
   Правая колонка: flex:1 — карта Яндекс (iframe)
   ⚠️ Координаты карты — исправить в index.html (помечено там)
   ============================================================ */
.contacts-section {
  padding: 80px 0;
}

.contacts-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.contacts-info {
  flex: 0 0 380px;
}

.contacts-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contacts-text {
  font-size: 17px;
  line-height: 1.7;
  color: #141412;
}

.contacts-text a {
  color: #ff6600;
}

.contacts-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.contacts-social a {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.contacts-social a:hover { opacity: 0.7; }
.contacts-social svg { width: 36px; height: 36px; }

.contacts-map {
  flex: 1;
  min-height: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.contacts-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ============================================================
   АДАПТИВНОСТЬ
   980px — переключение на мобильную шапку (бургер)
   768px — одноколоночный layout для контактов и футера
   Мобильная адаптация hero, счётчиков и услуг — в index.html
   ============================================================ */
@media screen and (max-width: 980px) {
  /* Шапка: скрываем десктопное меню и правую часть, показываем бургер */
  .header-nav,
  .header-right {
    display: none;
  }

  .header-burger {
    display: flex;
  }

  .header-logo img {
    height: 55px;
  }
}

@media screen and (max-width: 768px) {
  .contacts-inner {
    flex-direction: column;
  }

  .contacts-info {
    flex: none;
    width: 100%;
  }

  .form-title {
    font-size: 26px;
  }

  .form-descr {
    font-size: 17px;
  }

  .footer-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 20px 0;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }
}

/* ============================================================
   HONEYPOT — антиспам (не трогать)
   Поле скрыто от людей, но видно ботам
   ============================================================ */
.pf-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/* ============================================================
   СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ
   Чекбокс + раскрывающийся текст под кнопкой "Отправить"
   ============================================================ */
.pf-consent-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.pf-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.pf-consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #ff6600;
}

.pf-consent-toggle {
  background: none;
  border: none;
  color: #ffaa77;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dashed;
}

.pf-consent-toggle:hover {
  color: #ffcc99;
}

.pf-consent-text {
  display: none;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border-left: 2px solid #ff6600;
  border-radius: 0 3px 3px 0;
  margin-left: 28px;
  max-width: 700px;
  text-align: left;
}
