/* Base & layout — design tokens (єдине джерело кольорів/радіусів) */

@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg-page: #f3f4ff;
  --color-text-default: #222222;
  --color-text-default-rgb: 34, 34, 34;
  --color-text: #1b1e27;
  --color-text-heading: #2d2d2d;
  --color-text-muted: #656c86;
  --color-text-muted-2: #a1a7c2;
  --color-text-strong: #444b6e;
  --color-accent: #9363FF;
  --color-accent-hover: #7A4AE6;
  --color-accent-rgb: 123, 92, 255;
  --color-card-bg: #ffffff;
  --color-card-soft: #f8f9ff;
  --color-white: #ffffff;
  --color-white-rgb: 255, 255, 255;
  --color-black: #000000;
  --color-chart-orange: #ffab40;
  --color-bg-soft: #F7F8FA;
  --color-bg-muted: #F0F1F5;
  --color-bg-muted-rgb: 240, 241, 245;
  --color-bg-hover: #f0f1f8;
  --color-tab-bg: #E8E9F0;
  --color-grid: rgba(0, 0, 0, 0.08);
  --radius-card: 30px;
  --radius-inner: 16px;
  --radius-sm: 4px;
  --radius-btn: 44px;
  --shadow-card: 0 18px 45px rgba(53, 63, 131, 0.15);
  --shadow-card-soft: 0 2px 8px rgba(53, 63, 131, 0.06);
  --shadow-nav-sub: 0 18px 45px rgba(53, 63, 131, 0.35);
  --shadow-dropdown: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-header: 0px 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-tooltip: 0 4px 12px rgba(0, 0, 0, 0.15);
  --font-sans: "Rubik", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body.page {
  display: flex;
  flex-flow: column nowrap;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--color-bg-page);
  color: var(--color-text);
}

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

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 41px;
  border-radius: var(--radius-btn);
  font-size: 17px;
  border: none;
}

/* Main layout */

.main {
  padding: 33px 0;
}

/* Hero section */

.heroSection {
  margin-bottom: 33px;
}

.heroSection .wrap {
  padding: 20px 24px 24px;
}

.heroSection .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: 16px;
  margin-bottom: 12px;
}

.heroSection .content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.heroSection .title {
  margin: 0 0 8px;
  font-size: 33px;
  font-weight: 700;
  color: var(--color-text-heading);
}

.heroSection .subtitle {
  margin: 0;
  font-size: 22px;
  letter-spacing: -1px;
  color: var(--color-text-default);
}

.heroSection .controls {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.heroSection .tabs {
  display: flex;
  gap: 10px;
}

.heroSection .tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--color-text-muted);
  background: var(--color-tab-bg);
  transition: all 0.3s ease;
}

.heroSection .tab:hover:not(.active) {
  background: var(--color-accent);
  color: var(--color-white);
}

.heroSection .tab.active {
  background: var(--color-text-heading);
  color: var(--color-white);
}

.heroSection .searchWrapper {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.heroSection .searchBlock {
  width: 100%;
  max-width: 520px;
  position: relative;
  border-radius: var(--radius-card);
  border: 5px solid white;
  background: transparent;
  transition: all 0.3s ease;
}

.heroSection .searchBlock:focus-within {
  /* box-shadow: 0 0 0 2px rgba(123, 92, 255, 0.5), 0 0 32px rgba(123, 92, 255, 0.2); */
}

.heroSection .search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 18px;
  border-radius: 999px;
  background: var(--color-bg-muted);
  min-height: 48px;
}

.heroSection .input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--color-text-heading);
}

.heroSection .input::placeholder {
  color: var(--color-text-muted-2);
}

.heroSection .crossBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--color-tab-bg);
}

.heroSection .reset {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.heroSection .reset.visible {
  display: inline-flex;
}

.heroSection .reset:hover {
  color: var(--color-text-heading);
}

.heroSection .searchBtn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 18px;
  cursor: pointer;
  transition: filter 0.2s;
}

.heroSection .searchBtn:hover {
  filter: brightness(1.1);
}

/* Режим «По бренду»: тільки лупа */
.heroSection .searchBtn .iconSearch {
  display: flex;
}
.heroSection .searchBtn .iconSearchArrow {
  display: none;
}

/* Режим «По ГЕО»: тільки стрілка */
.heroSection .searchBtn.modeGeo .iconSearch {
  display: none;
}
.heroSection .searchBtn.modeGeo .iconSearchArrow {
  display: inline-flex;
  font-size: 12px;
  transition: transform 0.25s ease;
}

/* Поворот стрілки при відкритому дропдауні */
.heroSection .searchBlock:has(.geoDropdown.open) .iconSearchArrow {
  transform: rotate(180deg);
}

.heroSection .geoDropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  padding: 12px;
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-dropdown);
  max-height: 280px;
  overflow-y: auto;
  z-index: 20;
}

.heroSection .geoDropdown.open {
  display: block;
}

.heroSection .geoList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.heroSection .geoList li {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-text-heading);
  border-radius: 12px;
  cursor: pointer;
}

.heroSection .geoList li:hover {
  background: var(--color-bg-hover);
}

.pageSeparator {
  max-width: 680px;
}

@media (max-width: 768px) {
  .main {
    padding: 20px 0;
  }

  .container {
    padding: 0 20px;;
  }

  .heroSection {
    margin-bottom: 20px;
  }
  

  .heroSection .wrap {
    border-radius: 18px;
    padding: 18px 16px;
  }

  .heroSection .title {
    font-size: 30px;
  }

  .heroSection .subtitle {
    font-size: 19px;
  }

  .heroSection .searchWrapper {
    flex-direction: column;
    gap: 18px;
  }

  .heroSection .searchBlock {
    max-width: none;
  }
}
