/* =====================================================
   BASE — Токени, Reset, Типографіка, Утиліти
   ===================================================== */

/* -------------------------------------------------------
   1. Шрифти (Proxima Nova через @font-face)
   ------------------------------------------------------- */
@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------
   2. CSS Змінні (Design Tokens)
   ------------------------------------------------------- */
:root {
  /* Кольори */
  --color-primary: #094eef;
  --color-accent: #f8ca00;
  --color-secondary: #45506d;
  --color-dark: #182340;
  --color-white: #ffffff;
  --color-bg: #f4f6fa;
  --color-text: #182340;
  --color-text-muted: #6b7a99;
  --color-border: #e2e8f0;

  /* Шрифти */
  --font-main: 'Montserrat', sans-serif;
  --font-accent: 'Proxima Nova', 'Montserrat', sans-serif;
  --font-inter: 'Inter', sans-serif;

  /* Радіуси */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Тіні */
  --shadow-card: 0 4px 24px rgba(9, 78, 239, 0.08);
  --shadow-hover: 0 8px 40px rgba(9, 78, 239, 0.16);

  /* Анімації */
  --transition: 0.3s ease;
}

/* -------------------------------------------------------
   3. Reset & Base
   ------------------------------------------------------- */
*,
*::before,
*::after,
span {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Скидаємо відступи для головної */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.page-template-page-energy {
  background-color: #f5f7fc;
}

.page-template-page-fuel {
  background-color: #fdfcfe;
}

main {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

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

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

  transition-duration: 250ms;
  transition-timing-function: ease;
  outline: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;

  transition-duration: 250ms;
  transition-timing-function: ease;

  outline: 0;
  border: 0;
  background-color: transparent;
}

section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;

  z-index: 5;
}

/* -------------------------------------------------------
   Елементи форм
   ------------------------------------------------------- */

input {
  cursor: text;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
}

input[type='search']::-webkit-search-decoration,
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-results-button,
input[type='search']::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

input[type='search'] {
  -webkit-appearance: none;
  box-sizing: border-box;
}

/* -------------------------------------------------------
   Скролл
   ------------------------------------------------------- */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* трек (фон) */
::-webkit-scrollbar-track {
  background: var(--color-dark);
}

/* сам повзунок */
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 10px;
}

/* hover */
::-webkit-scrollbar-thumb:hover {
  background: #f9de63;
}

/* -------------------------------------------------------
   Контейнер
   ------------------------------------------------------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;

  @media (min-width: 768px) {
    padding: 0 40px;
  }

  @media (min-width: 1280px) {
    padding: 0 60px;
  }

  @media (min-width: 1920px) {
    padding: 0 120px;
    max-width: 1920px;
  }
}

/* -------------------------------------------------------
   Типографіка
   ------------------------------------------------------- */
.section-title {
  font-weight: 700;
  font-size: clamp(24px, 20.12px + 1.04vw, 40px);
  line-height: 100%;
  letter-spacing: 0px;
  color: var(--color-dark);

  @media (min-width: 1280px) {
    font-size: 36px;
  }
}

.section-subtitle {
  font-size: clamp(16px, 14.06px + 0.52vw, 24px);
  line-height: 100%;
  letter-spacing: 0px;
  color: var(--color-dark);

  @media (min-width: 1280px) {
    font-size: 20px;
  }
}

.page-title {
  font-size: clamp(24px, 18.17px + 1.6vw, 48px);
  font-weight: 700;
  color: var(--color-dark);
}

.page-subtitle {
  font-size: clamp(16px, 13.5px + 0.7vw, 24px);
  color: var(--color-dark);
  font-weight: 400;

  @media (max-width: 768px) {
    font-weight: 500;
  }
}

/* -------------------------------------------------------
   Секція (загальна)
   ------------------------------------------------------- */
.section--bg {
  background: var(--color-bg);
}

/* -------------------------------------------------------
   Утиліти
   ------------------------------------------------------- */
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--color-primary);
}
.text-accent {
  color: var(--color-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -------------------------------------------------------
   Анімації при появі у viewport — [data-anim]
   ------------------------------------------------------- */

[data-anim] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--anim-delay, 0s);
}

[data-anim='up'] {
  transform: translateY(28px);
}
[data-anim='left'] {
  transform: translateX(-36px);
}
[data-anim='right'] {
  transform: translateX(36px);
}
[data-anim='scale'] {
  transform: scale(0.92);
}

[data-anim].anim-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------------
   Fade-in анімація (legacy)
   ------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------
   Базові компоненти сторінок напрямків роботи
   ------------------------------------------------------- */

.areas-page__base-hero-content {
  display: flex;
  flex-direction: column;
  width: min(100%, 581px);
  flex-shrink: 0;
  /* padding: clamp(40px, 5vw, 100px) clamp(40px, 5vw, 100px) clamp(40px, 5vw, 100px) clamp(40px, 5vw, 100px); */
}

.areas-page__base-hero-subtitle {
  margin-top: clamp(16px, 12.2px + 1.1vw, 32px);
  width: min(100%, 530px);
}

.areas-page__base-hero-btn {
  border-radius: var(--radius-md);
  padding: clamp(10px, 5vw, 20px);
  margin-top: clamp(48px, 5vw, 60px);
  width: min(100%, 440px);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 5vw, 10px);

  position: relative;
  z-index: 5;

  font-size: clamp(16px, 5vw, 24px);
  font-weight: 600;

  @media (min-width: 1280px) {
    font-weight: 700;
  }
}

.areas-page__base-advantages-list {
  width: min(100%, 581px);
  height: 64px;
  display: flex;

  justify-content: space-between;
  margin: 0 auto;
  margin-top: clamp(32px, 5vw, 40px);

  gap: 18px;

  @media (min-width: 1280px) {
    height: 140px;
  }
}

.areas-page__base-advantages-list-mobile {
  padding: 0 2px;
  @media (min-width: 1400px) {
    display: none;
  }
}

.areas-page__base-advantages-list-desktop {
  display: none;

  @media (min-width: 1400px) {
    display: flex;
  }
}

.areas-page__base-hero-image-wrapper-desktop {
  display: none;

  @media (min-width: 1400px) {
    display: flex;
    position: relative;
  }
}

.areas-page__base-hero-image-wrapper-mobile {
  position: relative;

  @media (min-width: 769px) and (max-width: 1399px) {
    max-width: 600px;
    margin: 0 auto;
  }

  @media (min-width: 1400px) {
    display: none;
  }
}

.areas-page__base-advantages-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 5vw, 12px);
}

.areas-page__base-advantages-item-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;

  @media (min-width: 1280px) {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(232, 232, 232, 1);
  }
}

.areas-page__base-advantages-item-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;

  @media (min-width: 1280px) {
    width: 72px;
    height: 72px;
  }
}

.areas-page__base-advantages-item-icon {
  height: auto;
}

.icon-guard {
  width: 20px;

  @media (min-width: 1280px) {
    width: auto;
  }
}

.icon-car {
  width: 28px;

  @media (min-width: 1280px) {
    width: auto;
  }
}

.icon-label {
  width: 22px;

  @media (min-width: 1280px) {
    width: auto;
  }
}

.areas-page__base-advantages-item-title {
  font-size: clamp(13px, 11.3px + 0.45vw, 20px);
  font-weight: 600;
  color: var(--color-dark);
  text-align: center;
  @media (min-width: 1280px) {
    font-weight: 500;
  }
}

.areas-page__base-hero-image-wrapper {
  width: min(100%, 700px);
  height: max(100%, 880px);
  flex-shrink: 0;

  @media (min-width: 1920px) {
    width: min(100%, 1054px);
  }
}

.areas-page__base-hero-image-wrapper .areas-page__base-hero-image {
  /* -webkit-clip-path: url(#custom-svg-mask); */
  clip-path: url(#custom-svg-mask);
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.areas-page__base-hero-image {
  will-change: transform;
  transform: translateZ(0);
}

.blue-hero__decor--mob,
.orange-hero__decor--mob {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.32;
  z-index: 0;

  @media (min-width: 1400px) {
    display: none;
  }
}
.areas-page__base-hero-decor {
  /* width: 100%; */
  object-fit: cover;
  position: absolute;
  top: -92px;
  left: 0;
  z-index: 0;
}

.blue-hero__decor--desktop,
.orange-hero__decor--desktop {
  display: none;

  @media (min-width: 1020px) {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.32;
    z-index: 0;
  }
}

.bg-decor-mob {
  @media (min-width: 1020px) {
    display: none;
  }
}

.bg-decor-desktop {
  display: none;
  @media (min-width: 1020px) {
    display: block;
  }
}
