:root {
  --ink: #111111;
  --text: #3a3a3a;
  --gold: #b5973f;
  --gold-light: #cea838;
  --grey: #e3e3e3;
  --grey-soft: #f4f4f4;
  --radius: 6px;
  --shadow: 0 12px 34px rgba(0, 0, 0, .09);
  --container: 1140px;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 16px/1.8 var(--font); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--font); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.grid { display: grid; gap: 44px; }
.grid > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--grey); position: sticky; top: 0; z-index: 40; }
.site-header__inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: block; }
.brand img { width: 128px; height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle { display: none; }

/* hero */
.hero {
  position: relative; min-height: min(78vh, 700px); display: grid; align-items: center;
  background: #111 url("../img/hero.webp") center / cover no-repeat;
  color: #fff; padding: 110px 0;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .42) 70%, rgba(0, 0, 0, .3) 100%); }
.hero__inner { position: relative; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero h1::after { content: ""; display: block; width: 92px; height: 3px; background: var(--gold-light); margin-top: .35em; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.35rem); color: #f0ece2; margin: 0; }

/* sections */
.section { padding: 84px 0; }
.section--light { background: var(--grey-soft); }
.section--dark { background: var(--ink); color: #d8d5cd; }
.section--dark h2 { color: #fff; }
.section--dark .lead { color: var(--gold-light); font-size: 1.2rem; font-weight: 500; }
.section__head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.section__head h2::after { content: ""; display: block; width: 72px; height: 3px; background: var(--gold); margin: .5em auto 0; }
.section__head p { margin-bottom: 0; }

/* stats */
.stats { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats li { background: var(--grey-soft); border: 1px solid var(--grey); border-radius: var(--radius); padding: 30px 18px; }
.stats img { width: 58px; height: 58px; margin: 0 auto 14px; }
.stats__num { font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; margin: 0 0 .2em; }
.stats__label { margin: 0; font-size: .95rem; letter-spacing: .04em; }

/* about */
.about__grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
.about__media { margin: 0; }
.about__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* brands */
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.brands li { background: #fff; border: 1px solid var(--grey); border-radius: var(--radius); overflow: hidden; text-align: center; }
.brands img { width: 100%; }
.brands h3 { margin: 0; padding: 16px 12px; font-size: .95rem; letter-spacing: .1em; border-top: 1px solid var(--grey); }

/* services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.services li { border: 1px solid var(--grey); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.services img { width: 56px; height: 56px; margin: 0 auto 14px; }
.services h3 { margin-bottom: .35em; font-size: 1rem; }
.services p { margin: 0; font-size: .88rem; color: #6d6d6d; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact__card { background: #fff; border: 1px solid var(--grey); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.contact__card h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.contact__card address { font-style: normal; line-height: 1.9; }
.contact__card a { color: var(--ink); text-decoration: none; }
.contact__card a:hover { color: var(--gold); }

/* footer */
.site-footer { background: var(--ink); color: #b9b6ae; font-size: .9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-top: 26px; padding-bottom: 26px; }
.site-footer img { width: 54px; height: 54px; background: #fff; border-radius: 50%; padding: 5px; }
.site-footer p { margin: 0; margin-right: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #b9b6ae; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .primary-nav ul { gap: 16px; }
  .primary-nav a { font-size: .74rem; }
}

@media (max-width: 767px) {
  .site-header__inner { justify-content: space-between; gap: 12px; position: relative; }
  .brand { position: relative; z-index: 60; }
  .brand img { width: 104px; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--grey); background: #fff; cursor: pointer; position: relative; z-index: 60; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; }
  .nav-toggle__bar::before { position: absolute; top: -7px; }
  .nav-toggle__bar::after { position: absolute; top: 7px; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 12px 22px rgba(0, 0, 0, .15); z-index: 50; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 4px 20px 14px; }
  .primary-nav a { display: block; padding: 13px 0; border-top: 1px solid var(--grey); border-bottom: 0; }
  .hero { min-height: min(60vh, 520px); padding: 76px 0; }
  .section { padding: 56px 0; }
  .stats { grid-template-columns: 1fr; margin-bottom: 44px; }
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .brands, .services, .contact { grid-template-columns: 1fr; gap: 18px; }
  .site-footer__inner { justify-content: center; text-align: center; }
  .site-footer p { margin-right: 0; width: 100%; }
}
