:root {
  --header-height: 80px;
}

.header__logo-subtitle {
  display: none;
}

.header__logo-artwork {
  display: block;
  width: 180px;
  height: auto;
  overflow: visible;
}

.header__logo,
.header__logo:hover,
.header__logo:focus {
  text-decoration: none;
}

@media (min-width: 992px) {
  :root {
    --header-height: 116px;
  }

  .header__nav {
    height: var(--header-height);
  }

  .header__top {
    height: 100%;
    gap: 34px;
  }

  .header__logo {
    flex: 0 0 auto;
  }

  .header__logo-artwork {
    width: 205px;
  }

  .header__logo-leaves {
    /* SVG units: balance the leaves against the visible lettering, not the line box. */
    transform: translateY(14px);
  }

  .header__logo-subtitle {
    display: block;
    position: relative;
    top: -4px; /* Tighten the two lines without moving the artwork or header layout. */
    margin-top: -6px;
    /* Wordmark ink starts at 140.66 / 540; compensate Nunito Sans 400's И sidebearing. */
    padding-left: calc(26.048% - 0.087em);
    color: #625c57;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
  }

  .header__base_nav {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    align-items: flex-end !important;
    justify-content: center;
    gap: 15px;
  }

  .header__base_nav > ul {
    display: flex;
    width: auto !important;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-end;
    gap: clamp(14px, 1.7vw, 28px);
  }

  .header__base_nav > ul > li {
    margin: 0;
  }

  .header__base_nav > ul > li > a {
    min-height: 30px;
    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 600;
  }

  .header__contacts--desktop {
    order: -1;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin: 0;
    line-height: 1.2;
  }

  .header__contacts--desktop .header__contact-phone {
    font-size: 19px;
  }

  .header__contacts--desktop .header__contact-email {
    margin: 0;
    font-size: 15px;
  }

  .header__actions {
    position: absolute;
    width: 0;
    height: 0;
  }
}

@media (min-width: 1200px) {
  .header__logo-artwork {
    width: 240px;
  }

  .header__logo-subtitle {
    font-size: 12px;
  }
}

@media (min-width: 1400px) {
  .header__logo-artwork {
    width: 267px;
  }

  :root {
    --header-height: 124px;
  }

  .header__top {
    gap: 48px;
  }

  .header__logo-subtitle {
    font-size: 13px;
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .header__top {
    gap: 24px;
  }

  .header__logo img {
    width: 205px;
  }

  .header__base_nav {
    gap: 12px;
  }

  .header__base_nav > ul {
    gap: 13px;
  }

  .header__contacts--desktop {
    gap: 22px;
  }
}

.home-hero {
  margin: 0;
  overflow: hidden;
  background: #fffbed;
  border-top: 1px solid rgba(66, 66, 66, 0.06);
  border-bottom: 1px solid #eadbd4;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  min-height: 575px;
  padding-top: 0;
  padding-bottom: 0;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 62px 44px 54px 0;
}

.home-hero__eyebrow,
.home-start__eyebrow {
  margin: 0 0 16px;
  color: var(--bs-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 4.15vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-hero__lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: #565656;
  font-size: clamp(21px, 1.75vw, 25px);
  line-height: 1.48;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 34px;
}

.home-hero__actions .btn {
  min-height: 58px;
  padding: 14px 30px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
}

.home-hero__text-link {
  color: var(--bs-primary);
  font-size: 18px;
  font-weight: 700;
  text-underline-offset: 5px;
}

.home-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.home-hero__fact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.home-hero__fact img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.home-hero__fact strong,
.home-hero__fact span {
  display: block;
}

.home-hero__fact strong {
  font-size: 18px;
  line-height: 1.15;
}

.home-hero__fact span {
  margin-top: 3px;
  color: #6a6a6a;
  font-size: 13px;
  line-height: 1.25;
}

.home-hero__media {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 575px;
  margin: 0 0 0 -84px;
  background: #fffbed;
}

.home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 575px;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    rgba(0, 0, 0, 0.08) 5%,
    rgba(0, 0, 0, 0.42) 12%,
    rgba(0, 0, 0, 0.82) 20%,
    #000 27%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    rgba(0, 0, 0, 0.08) 5%,
    rgba(0, 0, 0, 0.42) 12%,
    rgba(0, 0, 0, 0.82) 20%,
    #000 27%
  );
}

.home-start {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 48px;
  padding-bottom: 54px;
}

.home-start h2 {
  margin: 0 0 30px;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.15;
}

.home-start__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-start__card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  min-height: 172px;
  padding: 28px 58px 28px 28px;
  border: 1px solid #eadbd4;
  border-radius: 22px;
  color: var(--bs-body-color);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.home-start__card:hover,
.home-start__card:focus-visible {
  border-color: var(--bs-primary);
  color: var(--bs-body-color);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(66, 66, 66, 0.1);
}

.home-start__card > img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.home-start__card h3 {
  margin: 2px 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.home-start__card p {
  margin: 0;
  color: #626262;
  font-size: 16px;
  line-height: 1.45;
}

.home-start__link {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--bs-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-hero__media .home-hero__image--author-books {
  object-position: right center;
}

.home-services-intro {
  margin: 0 0 28px;
}

.home-services-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 3vw, 44px);
}

.home-services-intro p {
  max-width: 760px;
  color: #666;
  font-size: 18px;
}

@media (max-width: 1199.98px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    min-height: 520px;
  }

  .home-hero__content {
    padding: 48px 38px 44px 0;
  }

  .home-hero__media,
  .home-hero__media img {
    min-height: 520px;
  }

  .home-hero__media {
    margin-left: -56px;
  }

  .home-hero__facts {
    gap: 14px;
  }

  .home-start__card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding-left: 22px;
  }

  .home-start__card > img {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 991.98px) {
  .header__top {
    width: 100%;
  }

  .header__base_nav {
    top: var(--header-height);
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero__content {
    padding: 48px 0 42px;
  }

  .home-hero__media,
  .home-hero__media img {
    min-height: 360px;
  }

  .home-hero__media {
    margin-left: 0;
  }

  .home-hero__media img {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-start__grid {
    grid-template-columns: 1fr;
  }

  .home-start__card {
    min-height: 142px;
  }
}

@media (max-width: 575.98px) {
  .home-hero h1 {
    font-size: 39px;
    line-height: 1.1;
  }

  .home-hero__lead {
    margin-top: 20px;
    font-size: 19px;
  }

  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  .home-hero__actions .btn,
  .home-hero__text-link {
    width: 100%;
    text-align: center;
  }

  .home-hero__facts {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 34px;
  }

  .home-hero__media,
  .home-hero__media img {
    min-height: 280px;
  }

  .home-start {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .home-start h2 {
    margin-bottom: 22px;
    font-size: 31px;
  }

  .home-start__card {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 0;
    padding: 22px 48px 22px 20px;
    border-radius: 18px;
  }

  .home-start__card > img {
    width: 50px;
    height: 50px;
  }

  .home-start__card h3 {
    margin-top: 0;
    font-size: 21px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px), (max-width: 374.98px) {
  .home-start__card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 22px 28px 22px 20px;
  }

  .home-start__link {
    position: static;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-start__card {
    transition: none;
  }
}
