/* ==========================================================================
   БАЗОВІ СТИЛІ, ЗМІННІ ТА УНІВЕРСАЛЬНІ КНОПКИ (css/style.css)
   Компанія: APFEL EXPERT (APFEL GROUP)
   ========================================================================== */

:root {
  /* Фірмова колірна палітра APFEL EXPERT */
  --primary-green: #63AF38;
  --primary-green-hover: #549E2D;
  --secondary-gray: #60787F;
  --secondary-gray-hover: #4D6268;
  
  /* Фонові кольори */
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-dark: #0F172A;
  --bg-deep-dark: #0D1520;
  
  /* Текстові кольори та бордери */
  --text-dark: #0F172A;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --border-color: #E2E8F0;
  --border-dark: rgba(255, 255, 255, 0.15);
  
  /* Тіні та радіуси заокруглення */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  /* Плавна архітектурна анімація */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- СКИДАННЯ ТА БАЗОВІ НАЛАШТУВАННЯ --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Захист від горизонтального скролу */
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Прибираємо сірий квадрат при тапі на смартфонах */
  -webkit-tap-highlight-color: transparent;
}

/* Блокування скролу сторінки при відкритих модальних вікнах / меню */
body.no-scroll {
  overflow: hidden !important;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  /* === ЗАБОРОНА АВТОЗУМУ ПРИ ШВИДКОМУ КЛІКУ === */
  touch-action: manipulation;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  /* === ЗАБОРОНА АВТОЗУМУ ДЛЯ ПОЛІВ ВВОДУ === */
  touch-action: manipulation;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* === ЗАБОРОНА АВТОЗУМУ ДЛЯ КНОПОК === */
  touch-action: manipulation;
}

/* Захист від автозуму в iPhone при фокусі на формах вводу */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  textarea {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   КОНТЕЙНЕР ТА СЕКЦІЇ
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 
  Відступ при скролі по якорях з меню, щоб фіксована шапка не перекривала заголовки 
*/
.section,
#hero,
#catalog,
#projects,
#brands,
#about,
#faq,
#contacts {
  scroll-margin-top: 90px;
}

.section {
  padding: 85px 0 95px;
  position: relative;
}

.section--light {
  background-color: var(--bg-light);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* --- ТИПОГРАФІЯ ЗАГОЛОВКІВ СЕКЦІЙ --- */
.section__header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 42px;
}

.section__title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   УНІВЕРСАЛЬНА ПРЕМІАЛЬНА КНОПКА КОМПАНІЇ (.btn--apfel)
   Еталонна кнопка для будь-яких блоків, закликів, форм та модальних вікон
   ========================================================================== */

.btn--apfel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 42px;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #FFFFFF !important;
  text-decoration: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #63AF38 0%, #4D8F2A 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(99, 175, 56, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: var(--transition);
}

.btn--apfel:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #6CC03D 0%, #559E2F 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 32px rgba(99, 175, 56, 0.48),
              inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #FFFFFF !important;
}

.btn--apfel:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 175, 56, 0.35);
}

/* Анімація іконки всередині універсальної кнопки */
.btn--apfel__icon,
.btn__icon {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--apfel:hover .btn--apfel__icon,
.btn--apfel:hover .btn__icon,
.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* ==========================================================================
   СТАНДАРТНІ КНОПКИ (BUTTONS)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.96rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #63AF38 0%, #4D8F2A 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(99, 175, 56, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #6CC03D 0%, #559E2F 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 175, 56, 0.4);
  color: #FFFFFF !important;
}

.btn--secondary {
  background-color: var(--secondary-gray);
  color: #FFFFFF !important;
}

.btn--secondary:hover {
  background-color: var(--secondary-gray-hover);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--primary-green);
  color: var(--primary-green) !important;
  background: transparent;
}

.btn--outline:hover {
  background-color: var(--primary-green);
  color: #FFFFFF !important;
}

.btn--lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   АДАПТИВНІСТЬ ДЛЯ ПЛАНШЕТІВ ТА СМАРТФОНІВ (ГОЛОВНИЙ ПРІОРИТЕТ!)
   ========================================================================== */

/* Планшети (<= 1024px) */
@media (max-width: 1024px) {
  .section {
    padding: 70px 0 80px;
  }

  .section__header {
    margin-bottom: 35px;
    padding: 0 10px;
  }

  .section__title {
    font-size: 2rem;
  }
}

/* Смартфони (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0 70px;
  }

  .section__header {
    margin-bottom: 30px;
    padding: 0;
  }

  .section__title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .section__subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* Кнопки на смартфонах мають зручну зону для натискання пальцем */
  .btn,
  .btn--apfel {
    padding: 15px 24px;
    font-size: 0.98rem;
    border-radius: 12px;
  }

  /* Відступ під фіксовану шапку для мобільних */
  .section,
  #hero,
  #catalog,
  #projects,
  #brands,
  #about,
  #faq,
  #contacts {
    scroll-margin-top: 75px;
  }
}

/* Малі мобільні екрани (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .section {
    padding: 50px 0 60px;
  }

  .section__title {
    font-size: 1.55rem;
  }

  .section__subtitle {
    font-size: 0.92rem;
  }
}