/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #c99a3b;
  --gold-dark: #b8862a;
  --ink: #2b2b2b;
  --gray: #7a7a7a;
  --gray-light: #9a9a9a;
  --line: #ececec;
  --bg: #f4f2ee;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: .2s ease;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: #fff;
  padding: 14px 30px;
}
.btn--primary:hover { background: var(--gold-dark); }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--ink);
  padding: 12px 24px;
}
.btn--outline:hover { background: var(--gold); color: #fff; }

/* ============ HEADER ============ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__title { font-weight: 800; font-size: 20px; }
.logo__sub { font-size: 11px; color: var(--gray-light); letter-spacing: .3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav__link:hover { color: var(--gold); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  padding: 4px;
  transition: transform .2s;
}
.icon-btn:hover { transform: scale(1.1); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ============ HERO ============ */
.hero { background: var(--white); padding-bottom: 40px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 540px;
}
.hero__content { padding: 40px 0; }
.hero__title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero__text {
  margin-top: 22px;
  font-size: 17px;
  color: var(--gray);
  max-width: 460px;
}

.search {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
  max-width: 560px;
}
.search__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.search__field input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  width: 100%;
  color: var(--ink);
  padding: 10px 0;
}
.search__select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  position: relative;
}
.search__select select {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  padding-right: 18px;
}
.search__chev { position: absolute; right: 12px; pointer-events: none; }

.stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 13px; width:27%; }
.stat__icon {
  width: 44px; height: 44px;
  background: #faf6ee;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.stat__num { font-size: 26px; font-weight: 800; }
.stat__label { font-size: 13px; color: var(--gray); max-width: 130px; }

.hero__image { height: 100%; }
.hero__image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: 0px;
}

/* ============ FEATURES ============ */
.features { background: var(--bg); padding: 0 0 60px; margin-top: -30px; }
.features__card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  box-shadow: var(--shadow);
  position: relative;
  top: -40px;
}
.feature { text-align: left; }
.feature__icon {
  width: 52px; height: 52px;
  background: #faf6ee;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature__text { font-size: 14px; color: var(--gray); }

/* ============ SECTION HEAD ============ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.section-title { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
  transition: gap .2s;
}
.link-arrow:hover { gap: 12px; }

/* ============ TOP COMPANIES ============ */
.top { background: var(--bg); padding: 30px 0 70px; }
.top__slider { position: relative; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  position: relative;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card__rank {
  position: absolute;
  top: 18px; left: 18px;
  width: 26px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  border-radius: 6px 6px 3px 3px;
}
.card__rank--1 { background: var(--gold); }
.card__rank--2 { background: #b7b7b7; }
.card__rank--3 { background: #cd9a5b; }
.card__rank--4 { background: #cfcfcf; }

.card__logo {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 20px;
  font-weight: 800;
  font-size: 22px;
}
.card__name { font-size: 19px; font-weight: 700; }
.card__rating { display: flex; align-items: center; gap: 8px; margin: 10px 0 18px; }
.card__score { font-size: 18px; font-weight: 800; }
.card__stars { color: var(--gold); font-size: 15px; letter-spacing: 1px; }
.card__reviews { color: var(--gray-light); font-size: 14px; }

.card__rows { border-top: 1px solid var(--line); padding-top: 14px; }
.card__row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
}
.card__row span:first-child { color: var(--gray); }
.card__row span:last-child { font-weight: 700; }

.card__btn {
  margin-top: 18px;
  width: 100%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}
.card__btn:hover { background: var(--gold); color: #fff; }

.slider-arrow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.slider-arrow:hover { background: var(--gold); }
.slider-arrow:hover svg { stroke: #fff; }

/* ============ HOW ============ */
.how { background: var(--bg); padding: 0 0 70px; }
.how__card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  border: 1px solid var(--line);
}
.how__card .section-title { margin-bottom: 34px; }
.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: start;
}
.how-step { position: relative; }
.how-step__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.how-step__icon {
  width: 46px; height: 46px;
  background: #faf6ee;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.how-step__num { font-size: 26px; font-weight: 800; color: var(--gold); }
.how-step__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.how-step__text { font-size: 14px; color: var(--gray); max-width: 220px; }
.how-step__arrow {
  position: absolute;
  top: 12px; right: -5px;
  color: #cfcfcf;
}

/* ============ ARTICLES ============ */
.articles { background: var(--bg); padding: 0 0 80px; }
.articles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .25s, transform .25s;
}
.article:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.article__img { height: 210px; overflow: hidden; }
.article__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article:hover .article__img img { transform: scale(1.05); }
.article__body { padding: 24px; }
.article__title { font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.article__text { font-size: 14px; color: var(--gray); margin-bottom: 18px; }
.article__date { font-size: 13px; color: var(--gray-light); }

/* ============ FOOTER ============ */
.footer { background: #ffffff; padding: 40px 0 40px; border-top: 1px solid var(--line); }
.footer__promo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.promo { display: flex; gap: 12px; }
.promo__icon {
  width: 40px; height: 40px;
  background: #faf6ee;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.promo__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.promo__text { font-size: 13px; color: var(--gray); }

.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 30px;
  padding-top: 40px;
}
.footer__copy { margin-top: 20px; font-size: 13px; color: var(--gray-light); }
.footer__heading { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer__list li { margin-bottom: 12px; }
.footer__list a { font-size: 14px; color: var(--gray); transition: color .2s; }
.footer__list a:hover { color: var(--gold); }

.socials { display: flex; gap: 12px; }
.social {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #faf6ee;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.social:hover { background: var(--gold); }
.social:hover svg { fill: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero__title { font-size: 40px; }
  .features__card { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .how-step__arrow { display: none; }
  .articles__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__promo { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: repeat(2, 1fr); }
  .slider-arrow { display: none; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .hero__image { order: -1; }
  .hero__image img { min-height: 300px; }
  .hero__title { font-size: 34px; }
  .search { flex-wrap: wrap; }
  .search__select { border-left: none; }
  .search__btn { width: 100%; }
  .section-title { font-size: 26px; }
  .header__actions .btn--outline { display: none; }
}

@media (max-width: 560px) {
  .features__card { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; }
  .articles__grid { grid-template-columns: 1fr; }
  .footer__promo { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
}
