:root {
  --bg: #f1f1ef;
  --primary: #0c5b5f;
  --primary-hover: #09484c;
  --text: #1a1a18;
  --muted: #73736f;
  --badge: #5e7878;
  --white: #ffffff;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1780px;
  --header-h: 92px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page__bg {
  position: absolute;
  inset: 0 0 0 38%;
  background: url("../img/hero-bg.jpg") right center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.page__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    rgba(241, 241, 239, 0.82) 16%,
    rgba(241, 241, 239, 0.2) 42%,
    transparent 62%
  );
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.header,
.hero,
.features {
  position: relative;
  z-index: 1;
}

.header {
  padding: 22px 0 8px;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.header__logo {
  justify-self: center;
}

.header__logo img {
  height: 48px;
  width: auto;
}

.header__phone {
  justify-self: end;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.header__phone:hover {
  opacity: 0.75;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 0 8px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(280px, 775px) 1fr;
  grid-template-areas:
    "content visual"
    "features features";
  gap: 24px 40px;
  align-items: center;
  width: min(100% - 48px, var(--container));
}

.hero__content {
  grid-area: content;
  max-width: 775px;
}

.hero__visual {
  grid-area: visual;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
}

.hero__socials {
  display: none;
}

.only-mobile {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(12, 91, 95, 0.45);
  border-radius: 999px;
  color: var(--badge);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 28px;
  background: rgba(241, 241, 239, 0.55);
}

.badge__icon {
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.badge__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hero h1 {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero h1 .accent,
.hero h1 span.accent {
  color: var(--primary);
}

.hero h1 .accent-m {
  color: inherit;
}

.hero__lead {
  font-size: 24px;
  color: #171918;
  line-height: normal;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 680px;
  height: 56px;
  padding: 0 32px;
  background: var(--primary);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 24px rgba(12, 91, 95, 0.28);
}

.btn:focus-visible,
.social:focus-visible,
.header__phone:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.hero__pens {
  width: min(100%, 460px);
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 28px 28px rgba(40, 40, 30, 0.14));
  transform: translateX(-4%);
}

.hero__clients {
  position: absolute;
  right: 22%;
  top: 35%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 10px 18px rgba(12, 91, 95, 0.08));
}

.features {
  grid-area: features;
  padding: 8px 0 36px;
}

.features__list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
}

.features__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4a4a48;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.features__icon {
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
  padding: 15px;
  border: 1px solid var(--primary);
  border-radius: 50%;
}

.features__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(30px, 4vw, 46px);
  }

  .hero__clients {
    width: min(150px, 30%);
  }
}

@media (max-width: 900px) {
  .page {
    overflow-x: hidden;
    min-height: auto;
  }

  .page__bg {
    display: none;
  }

  .container,
  .hero__inner {
    width: min(100% - 32px, var(--container));
  }

  .header {
    padding: 16px 0 8px;
  }

  .header__socials {
    display: none;
  }

  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .header__logo {
    justify-self: start;
  }

  .header__logo img {
    height: 36px;
  }

  .header__phone {
    font-size: 16px;
  }

  .hero {
    flex: none;
    display: block;
    padding: 12px 0 60px;
    overflow: visible;
  }

  .hero__inner {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "features";
    gap: 28px 0;
    align-items: start;
  }

  .hero__content {
    max-width: none;
  }

  .badge {
    width: 100%;
    font-size: 14px;
    margin-bottom: 20px;
    padding-right: 0;
  }

  .hero h1 {
    font-size: 26px;
    margin-bottom: 14px;
  }

  .hero h1 .accent-m {
    color: var(--primary);
  }

  .only-desktop {
    display: none;
  }

  .only-mobile {
    display: block;
  }

  .hero__lead {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .hero__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
  }

  .social {
    width: 40px;
    height: 40px;
  }

  .hero__visual {
    grid-area: auto;
    position: absolute;
    right: 0;
    bottom: 20px;
    width: 280px;
    height: 344px;
    min-height: 0;
    z-index: 1;
    padding: 0;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
  }

  .hero__pens {
    transform: none;
    width: 280px;
    height: 344px;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    filter: none;
  }

  .hero__clients {
    width: 120px;
    right: 0;
    top: auto;
    bottom: 28px;
  }

  .features {
    padding: 0 0 12px;
    min-height: 344px;
    position: relative;
    z-index: 2;
    align-self: stretch;
  }

  .features__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    position: relative;
    z-index: 2;
    width: 100%;
  }

  .features__item {
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.25;
    gap: 8px;
    position: relative;
    z-index: 2;
  }

  .features__icon {
    padding: 10px;
  }
}

@media (max-width: 380px) {
  .hero__visual,
  .hero__pens {
    width: 250px;
  }

  .features {
    min-height: 306px;
  }

  .hero__clients {
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .social,
  .btn {
    transition: none;
  }

  .social:hover,
  .btn:hover {
    transform: none;
  }
}
