:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #161616;
  background: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  height: 76px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero {
  position: relative;
  width: min(100%, 1120px);
  height: clamp(200px, 26vw, 300px);
  margin: 0 auto;
  overflow: hidden;
}

.hero__track {
  display: flex;
  height: 100%;
  transition: transform 320ms ease;
}

.hero__slide {
  flex: 0 0 100%;
}

.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 65%);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 160ms ease, transform 160ms ease;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
  background: rgb(0 0 0 / 82%);
}

.hero__arrow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.hero__arrow--previous { left: 16px; }
.hero__arrow--next { right: 16px; }

.text-section {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 56px 32px;
  display: grid;
  place-items: center;
  text-align: center;
}

.text-section__content {
  position: relative;
  width: min(100%, 820px);
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 42px 48px;
  border: 1px solid #f0dfce;
  border-radius: 18px;
  background: #fffaf5;
  color: #242424;
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
  outline: none;
  box-shadow: 0 14px 34px rgb(84 49 17 / 8%);
}

.text-section__content::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: #b62929;
  transform: translateX(-50%);
}

.text-section__content:focus {
  border-color: #d37964;
  box-shadow: 0 0 0 3px rgb(165 34 34 / 12%), 0 14px 34px rgb(84 49 17 / 8%);
}

.brand {
  color: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: #444;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.menu a:hover,
.menu a:focus-visible { color: #000; }

@media (max-width: 520px) {
  nav { height: 68px; padding: 0 20px; }
  .hero { height: 210px; }
  .hero__arrow { width: 38px; height: 38px; }
  .hero__arrow--previous { left: 10px; }
  .hero__arrow--next { right: 10px; }
  .text-section { padding: 40px 20px; }
  .text-section__content { min-height: 150px; padding: 38px 24px 28px; }
  .brand { gap: 8px; }
  .brand img { width: 54px; height: 54px; }
  .menu { gap: 18px; }
  .menu a { font-size: 0.88rem; }
}
