/*
Theme Name: Smallway Theme
Version: 1.0
*/

header {
  display: flex;
	flex-direction: column;
	align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  background: #ffffff;
}

.site-header__content {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}

.top-sections {
	width: 100%;
}

.top-hero {
	width: 100%;
	margin: 0 0 24px;
  position: relative;
	border-radius: 16px;
	overflow: hidden;
}

.top-hero img {
  display: block;
  width: 100%;
  height: clamp(320px, 52vw, 640px);
  object-fit: cover;
	border-radius: 16px;
}

.top-hero__content {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #ffffff;
}

.top-hero__company {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.4;
  color: #ffffff;
}

.top-section {
	width: 100%;
	box-sizing: border-box;
	padding: 0 16px;
	margin: 0 auto -1px;
}

.top-section__content {
	width: 100%;
	box-sizing: border-box;
	padding: 24px;
  border-top: 1px solid #d8d8d8;
	border-bottom: 1px solid #d8d8d8;
	background: #ffffff;
}

.top-section:first-child .top-section__content {
  margin-top: 0;
  border-top: none;
}

.top-section:last-child .top-section__content {
  margin-bottom: 0;
  border-bottom: none;
}

.top-section__content h5 {
	margin: 0 0 10px;
	font-size: 1.125rem;
	line-height: 1.4;
}

.top-section__content h6 {
	margin: 20px 0 10px;
	font-size: 0.856rem;
	line-height: 1.4;
}

.top-section__content p {
	margin: 0;
	line-height: 1.8;
}

@media (min-width: 900px), (min-width: 768px) and (orientation: landscape) {
  .main-wrapper {
		width: 980px;
		padding: 0;
		margin-bottom: 36px;
	}

  .site-header__content {
    width: 980px;
  }

	.top-section__content {
		width: 50%;
	}

	.top-sections .top-section:nth-child(odd) .top-section__content {
		margin-right: auto;
	}

	.top-sections .top-section:nth-child(even) .top-section__content {
		margin-left: auto;
	}
}