
/* --------------------------------------------------------------------------
   1. ЗМІННІ
   -------------------------------------------------------------------------- */
:root {
  --bg: #f4f4f9;
  --paper: #ffffff;
  --ink: #202124; /* весь текст */
  --black: #000000; /* h1 / бренд / політики */
  --muted: #55565a;
  --line: #cfcfd6;
  --line-dark: #202124;
  --accent: #e0483d; /* Subscribe */
  --mark: #ffe14d; /* підсвітка пошуку жовтим */

  --display: 'Bigshot One', Georgia, 'Times New Roman', serif;
  --sans: 'Bricolage Grotesque', 'Segoe UI', system-ui, Arial, sans-serif;

  --container: 1440px;
  --gutter: 20px;

  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. RESET / БАЗА
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
dl,
dd {
  margin: 0;
}
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 10px 18px;
  background-color: var(--ink);
  color: #fff;
}
.skip-link:focus {
  left: 0;
}

body.is-locked {
  overflow: hidden;
}

/* підсвітка знайденого слова */
mark.search-hit {
  background-color: var(--mark);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
mark.search-hit.is-current {
  outline: 2px solid var(--ink);
}

/* --------------------------------------------------------------------------
   3. КОНТЕЙНЕР
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 1200px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* --------------------------------------------------------------------------
   4. ХЕДЕР
   -------------------------------------------------------------------------- */
.header {
  position: relative;
  background-color: var(--bg);
}

/* мобільний верхній рядок: пошук + бургер (тільки <1200px) */
.mobartop {
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
}
@media (min-width: 1200px) {
  .mobartop {
    display: none;
  }
}

.mobartop__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 58px;
}

.mobartop__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.mobartop__btn:hover {
  transform: scale(1.08);
}

/* topbar */
.topbar {
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
}

.topbar__date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink);
}
.topbar__date::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url('img/globe.svg');
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__subscribe {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-right: 2px;
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
  overflow: visible;
  transition: opacity 0.25s var(--ease);
}
.topbar__subscribe:hover {
  opacity: 0.7;
}

.topbar__word {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.topbar__arrow {
  font-size: 16px;
  line-height: 1;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.search-toggle:hover {
  transform: scale(1.12);
}

/* masthead (бренд) */
.masthead {
  display: flex;
  justify-content: center;
  padding: 14px 0 12px;
}
@media (min-width: 1200px) {
  .masthead {
    padding: 22px 0 18px;
  }
}

.masthead__logo {
  font-family: var(--display);
  font-weight: 400;
  color: var(--black);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  transition: opacity 0.25s var(--ease);
}
.masthead__logo:hover {
  opacity: 0.8;
}
@media (min-width: 1200px) {
  .masthead__logo {
    font-size: 64px;
  }
}

/* nav */
.mainnav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mainnav {
  display: none;
}
@media (min-width: 1200px) {
  .mainnav {
    display: block;
  }
}

.mainnav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 48px;
}

.mainnav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: opacity 0.25s var(--ease);
}
.mainnav__link:hover {
  opacity: 0.6;
}
.mainnav__link.is-current {
  font-weight: 700;
}

/* бургер (у мобільному верхньому рядку) */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
}
@media (min-width: 1200px) {
  .burger {
    display: none;
  }
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s var(--ease);
}

/* пошуковий рядок */
.searchbar {
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
}
.searchbar[hidden] {
  display: none;
}

.searchbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}

.searchbar__icon {
  color: var(--muted);
  flex-shrink: 0;
}

.searchbar__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}
.searchbar__input:focus {
  outline: none;
}

.searchbar__count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.searchbar__nav,
.searchbar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s var(--ease);
}
.searchbar__nav:hover,
.searchbar__close:hover {
  background-color: var(--bg);
}

/* --------------------------------------------------------------------------
   5. МОБІЛЬНЕ МЕНЮ
   -------------------------------------------------------------------------- */
.mobilemenu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0 24px 40px;
  background-color: var(--bg);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.45s var(--ease),
    visibility 0s linear 0.45s;
}
.mobilemenu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.45s var(--ease),
    visibility 0s;
}
@media (min-width: 1200px) {
  .mobilemenu {
    display: none;
  }
}

.mobilemenu__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 60px;
  padding: 20px 0;
  background-color: var(--paper);
  margin: 0 -24px 30px;
  padding-left: 24px;
  padding-right: 24px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.mobilemenu__search,
.mobilemenu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

.mobilemenu__nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 10px;
}

.mobilemenu__link {
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.mobilemenu.is-open .mobilemenu__link {
  opacity: 1;
  transform: none;
}
.mobilemenu.is-open .mobilemenu__link:nth-child(1) {
  transition-delay: 0.08s;
}
.mobilemenu.is-open .mobilemenu__link:nth-child(2) {
  transition-delay: 0.13s;
}
.mobilemenu.is-open .mobilemenu__link:nth-child(3) {
  transition-delay: 0.18s;
}
.mobilemenu.is-open .mobilemenu__link:nth-child(4) {
  transition-delay: 0.23s;
}
.mobilemenu.is-open .mobilemenu__link:nth-child(5) {
  transition-delay: 0.28s;
}
.mobilemenu.is-open .mobilemenu__link:nth-child(6) {
  transition-delay: 0.33s;
}
.mobilemenu.is-open .mobilemenu__link:nth-child(7) {
  transition-delay: 0.38s;
}
.mobilemenu__link.is-current {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. СЕКЦІЇ / ТИПОГРАФІКА
   -------------------------------------------------------------------------- */
.block {
  padding: 34px 20px;
}
@media (min-width: 1200px) {
  .block {
    padding: 54px 40px;
  }
}

.block__title {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
@media (min-width: 1200px) {
  .block__title {
    font-size: 30px;
  }
}

.block__title--line {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
  text-transform: none;
}

.lead-title {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 600;
}
@media (min-width: 1200px) {
  .lead-title {
    font-size: 30px;
  }
}

.lead-sub {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
@media (min-width: 1200px) {
  .lead-sub {
    font-size: 17px;
  }
}

.lead-sub--line {
  margin-top: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}

.prose {
  margin-top: 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}
@media (min-width: 1200px) {
  .prose {
    font-size: 15px;
  }
}

.prose--tight {
  margin-top: 10px;
}

.prose--line {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}

/* верхня лінія-роздільник під BEST DAILY */
.block__title:not(.block__title--line) {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}

/* широке фото */
.wide-media {
  margin: 22px 0 0;
  overflow: hidden;
}
.wide-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
@media (min-width: 1200px) {
  .wide-media {
    margin-top: 26px;
  }
  .wide-media img {
    object-position: center 30%;

}
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  padding: 22px 20px 0;
}
@media (min-width: 1200px) {
  .hero {
    padding: 34px 40px 0;
  }
}

.hero__media {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 1200px) {
  .hero__media img {
    aspect-ratio: 21 / 9;
    object-position: center 35%;
  }
}

.hero__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background-color: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.hero__title {
  margin-top: 24px;
  font-family: var(--display);
  font-weight: 400;
  color: var(--black);
  font-size: 30px;
  line-height: 1.1;
}
@media (min-width: 1200px) {
  .hero__title {
    margin-top: 30px;
    font-size: 30px;
  }
}

.hero__lead {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  max-width: 70ch;
}
@media (min-width: 1200px) {
  .hero__lead {
    font-size: 20px;
  }
}

.hero__text {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
@media (min-width: 1200px) {
  .hero__text {
    font-size: 13.5px;
  }
}

/* --------------------------------------------------------------------------
   8. СІТКИ (десктоп — флекс, без слайдерів)
   -------------------------------------------------------------------------- */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
}
@media (min-width: 1200px) {
  .grid {
    gap: 26px;
    margin-top: 34px;
  }
}

/* базово (мобільний, поза слайдером) — одна колонка */
.grid > * {
  flex: 1 1 100%;
}

@media (min-width: 1200px) {
  .grid--3 > * {
    flex: 1 1 calc(33.333% - 18px);
    max-width: calc(33.333% - 18px);
  }
  .grid--4 > * {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
  }
}

/* timeline-картки (Origins) — на планшеті 2 в ряд */
@media (min-width: 640px) and (max-width: 1199px) {
  .grid > * {
    flex: 1 1 calc(50% - 11px);
  }
}

/* картка з картинкою+текстом */
.tcard__media,
.jcard__media {
  overflow: hidden;
  background-color: #e6e6ec;
}
.tcard__media img,
.jcard__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.tcard:hover .tcard__media img,
.jcard:hover .jcard__media img {
  transform: scale(1.05);
}

.tcard__title,
.jcard__title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
}

.tcard__text,
.jcard__text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

/* текстові колонки (Circus) */
.fcol__title {
  font-size: 15px;
  font-weight: 700;
}
.fcol__text {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink);
}

/* Q&A (FAQ) */
.qa__q {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.qa__a {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   9. СЛАЙДЕР — тільки мобільний. На десктопі це звичайний флекс-грід.
   -------------------------------------------------------------------------- */
.flexslider {
  margin-top: 0;
}

/* десктоп: слайдер повністю вимкнений — трек просто грід */
@media (min-width: 1200px) {
  .flexslider__dots {
    display: none;
  }
}

/* мобільний (<1200px): робимо каруселлю */
@media (max-width: 1199px) {
  .flexslider {
    position: relative;
    overflow: hidden;
  }
  .flexslider__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 26px;
    transition: transform 0.5s var(--ease);
    will-change: transform;
  }
  .flexslider__track > * {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 2px;
  }
  .flexslider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }
  .flexslider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--line);
    cursor: pointer;
    transition:
      width 0.3s var(--ease),
      background-color 0.3s var(--ease);
  }
  .flexslider__dot.is-active {
    width: 22px;
    border-radius: 999px;
    background-color: var(--ink);
  }
}

/* --------------------------------------------------------------------------
   10. SPLIT (Regional)
   -------------------------------------------------------------------------- */
.split {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 26px;
}
@media (min-width: 1200px) {
  .split {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    margin-top: 34px;
  }
}

.split__media {
  margin: 0;
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (min-width: 1200px) {
  .split__media {
    flex: 0 0 38%;
  }
}

.split__body {
  flex: 1 1 auto;
}

.split__title {
  font-size: 24px;
  font-weight: 600;
}
@media (min-width: 1200px) {
  .split__title {
    font-size: 30px;
  }
}

.regions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.region dt {
  display: inline;
  font-weight: 700;
}
.region dd {
  display: inline;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   11. ФУТЕР
   -------------------------------------------------------------------------- */
.footer {
  margin-top: 20px;
  padding: 30px 0 40px;
  background-color: var(--bg);
  border-top: 3px solid var(--ink);
}
@media (min-width: 1200px) {
  .footer {
    padding: 40px 0 50px;
  }
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1200px) {
  .footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__logo {
  font-family: var(--display);
  font-weight: 400;
  color: var(--black);
  font-size: 30px;
  line-height: 1;
  transition: opacity 0.25s var(--ease);
}
.footer__logo:hover {
  opacity: 0.8;
}
@media (min-width: 1200px) {
  .footer__logo {
    font-size: 44px;
  }
}

.footer__mail {
  font-size: 13.5px;
  color: var(--ink);
  transition: opacity 0.25s var(--ease);
}
.footer__mail:hover {
  opacity: 0.7;
}

.footer__mid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1200px) {
  .footer__mid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }
}

.footer__copy {
  font-size: 12px;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.footer__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: opacity 0.25s var(--ease);
}
.footer__link:hover {
  opacity: 0.6;
}

.footer__legalrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 60px;
  padding-top: 26px;
}
@media (min-width: 1200px) {
  .footer__legalrow {
    padding-top: 34px;
  }
}

.footer__legal {
  font-family: var(--display);
  font-weight: 400;
  color: var(--black);
  font-size: 22px;
  transition: opacity 0.25s var(--ease);
}
.footer__legal:hover {
  opacity: 0.75;
}
@media (min-width: 1200px) {
  .footer__legal {
    font-size: 30px;
  }
}

/* --------------------------------------------------------------------------
   12. СТОРІНКИ PRIVACY / TERMS — просто чорний фон
   -------------------------------------------------------------------------- */
.page {
  padding: 40px 0 60px;
  min-height: 60vh;
  color: #202124;
}
@media (min-width: 1200px) {
  .page {
    padding: 66px 0 100px;
  }
}

.page__title {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #2a2a2e;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
}
@media (min-width: 1200px) {
  .page__title {
    margin-bottom: 40px;
    font-size: 54px;
  }
}

.page__content {
  color: #202124;
  font-size: 14px;
  line-height: 1.85;
}
@media (min-width: 1200px) {
  .page__content {
    font-size: 15px;
  }
}

.page__content h2 {
  margin: 28px 0 10px;
  font-size: 20px;
}
@media (min-width: 1200px) {
  .page__content h2 {
    margin: 40px 0 12px;
    font-size: 24px;
  }
}

.page__content h3 {
  margin: 20px 0 8px;
  font-size: 15px;
}
@media (min-width: 1200px) {
  .page__content h3 {
    margin: 26px 0 10px;
    font-size: 16px;
  }
}

.page__content p {
  margin-bottom: 14px;
}
@media (min-width: 1200px) {
  .page__content p {
    margin-bottom: 16px;
  }
}

.page__content ul,
.page__content ol {
  margin: 0 0 16px 20px;
  list-style: disc;
}
@media (min-width: 1200px) {
  .page__content ul,
  .page__content ol {
    margin-bottom: 20px;
  }
}

.page__content li {
  margin-bottom: 6px;
}

.page__content a {
  color: #202124;
  text-decoration: underline;
}
