* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #767676;
  background: #fff;
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

a {
  color: #d65050;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #b83f3f;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.header-wrap {
  width: min(1170px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  display: block;
  width: 260px;
  min-height: 32px;
}

.mainnav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mainnav a {
  display: block;
  color: #fff;
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 82px;
}

.mainnav li.active a,
.mainnav a:hover,
.mainnav a:focus {
  color: #d65050;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background: #111;
}

.hero-slider {
  height: 100vh;
  min-height: 540px;
}

.hero-image {
  height: 350px;
  background: url('../images/cropped-apple-1867762_1920.jpg') center center / cover no-repeat;
}

.slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  animation: sliderFade 28s infinite;
  transform: scale(1.02);
}

.slide-one {
  background-image: url('../images/slide-1.jpg');
  opacity: 1;
}

.slide-two {
  background-image: url('../images/macbook-336704_1920.jpg');
  animation-delay: 7s;
}

.slide-three {
  background-image: url('../images/stock-624712_1920.jpg');
  animation-delay: 14s;
}

.slide-four {
  background-image: url('../images/social-media-763731_1920.jpg');
  animation-delay: 21s;
}

@keyframes sliderFade {
  0%, 20% { opacity: 1; }
  25%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 82px;
}

.maintitle {
  margin: 0 0 34px;
  padding: 12px 24px 16px;
  color: #fff;
  background: rgba(100, 100, 100, 0.75);
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 600;
  line-height: 1.2;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 32px;
  border: 1px solid #d65050;
  border-radius: 3px;
  color: #fff;
  background: #d65050;
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-button:hover,
.hero-button:focus {
  color: #d65050;
  background: transparent;
}

.page-wrap {
  padding: 83px 0 100px;
}

.content-wrapper {
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
}

.page-content-card {
  width: 100%;
}

.title-post {
  margin: 0 0 32px;
  color: #443f3f;
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
}

.entry-content {
  color: #767676;
}

.entry-content.legal-content {
  white-space: pre-wrap;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 26px 0 12px;
  color: #443f3f;
  font-family: Raleway, Arial, Helvetica, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}

.entry-content h2 {
  font-size: 42px;
}

.entry-content h4 {
  font-size: 25px;
}

.entry-content p {
  margin: 0 0 16px;
}

.contact-form {
  width: min(100%, 640px);
  white-space: normal;
}

.form-field {
  margin: 0 0 18px;
}

.form-field label {
  display: block;
  margin: 0 0 8px;
  color: #333;
  font-weight: 600;
}

.required {
  color: #d65050;
}

.form-field input,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  color: #767676;
  font: inherit;
}

.form-field input {
  height: 42px;
  padding: 8px 10px;
}

.form-field textarea {
  min-height: 120px;
  padding: 10px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 1px solid #d65050;
  border-color: #d65050;
}

.form-actions button {
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #eee;
  color: #333;
  font: inherit;
  cursor: pointer;
}

.form-actions button:hover,
.form-actions button:focus {
  border-color: #d65050;
  color: #fff;
  background: #d65050;
}

.site-footer {
  min-height: 72px;
  background: #1c1c1c;
}

@media (max-width: 900px) {
  .header-wrap {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-title {
    display: none;
  }

  .mainnav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 20px;
  }

  .mainnav a {
    line-height: 1.5;
  }

  .hero-slider {
    min-height: 480px;
  }

  .hero-inner {
    padding-top: 120px;
  }

  .page-wrap {
    padding-top: 56px;
  }

  .title-post {
    font-size: 40px;
  }

  .entry-content h2 {
    font-size: 32px;
  }

  .entry-content h4 {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .header-wrap,
  .content-wrapper,
  .hero-inner {
    width: min(100% - 24px, 1170px);
  }

  .mainnav ul {
    gap: 8px 14px;
  }

  .mainnav a {
    font-size: 13px;
  }

  .hero-slider {
    min-height: 430px;
  }

  .hero-image {
    height: 290px;
  }

  .maintitle {
    padding: 10px 14px 12px;
    font-size: 31px;
  }

  .hero-button {
    min-height: 46px;
    padding: 10px 20px;
  }

  .title-post {
    font-size: 34px;
  }
}
