@charset "UTF-8";
/*---------------------------------------------------------------------------
    Проект Улучшение поиска в сервисе доставки лекарств
    Префикс search- для изоляции от других кейсов
---------------------------------------------------------------------------*/

/* ============================================
   1. Оглавление кейса (TOC)
   ============================================ */

.search-toc-row {
  background-color: #ffffff;
  color: #151515;
}

.search-toc {
  width: 100%;
  margin: 80px 0 64px;
  box-sizing: border-box;
}

.search-toc *,
.search-toc *::before,
.search-toc *::after {
  box-sizing: border-box;
}

.search-toc__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 64px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.search-toc__left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 24px;
}

.search-toc__title {
  margin: 0 0 60px;
  color: #151515;
  font-family: 'Headline Bold', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
}

.search-toc__title-line {
  display: block;
}

.search-toc__description {
  max-width: 520px;
  margin: 0;
  color: #353535;
  font-family: 'Onest-Regular', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.search-toc__visual {
  width: 100%;
  max-width: 440px;
  margin-top: 16px;
}

.search-toc__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.search-toc__right {
  justify-self: end;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 480px;
  gap: 32px;
  padding-top: 8px;
}

.search-toc__meta {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
}

.search-toc__meta-item {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #151515;
  font-family: 'Onest-Regular', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.search-toc__meta-label {
  flex: 0 0 auto;
  color: #8b8b8b;
}

.search-toc__meta-value {
  min-width: 0;
  color: #151515;
  font-weight: 500;
}

.search-toc__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 80px 0 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: #151515;
}

.search-toc__list {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.search-toc__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.search-toc__link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  overflow: visible;
  background: transparent;
  color: #151515;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.search-toc__link:hover,
.search-toc__link:focus-visible {
  background: transparent;
  color: #000;
}

.search-toc__num {
  flex: 0 0 24px;
  min-width: 24px;
  color: #8b8b8b;
  font-family: 'Fact Expanded Bold', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.search-toc__link:hover .search-toc__num,
.search-toc__link:focus-visible .search-toc__num {
  color: #000;
}

.search-toc__text {
  display: block;
  min-width: 0;
  color: #151515;
  font-family: 'Onest-Regular', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.search-toc__link:hover .search-toc__text,
.search-toc__link:focus-visible .search-toc__text {
  color: #000;
}

.search-toc__link::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease-out;
  pointer-events: none;
}

.search-toc__link:hover::after,
.search-toc__link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left center;
}

.search-toc__link:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.8);
  outline-offset: 6px;
}

@media only screen and (max-width: 1200px) {
  .search-toc__inner { column-gap: 48px; }
  .search-toc__title { font-size: 38px; }
}

@media only screen and (max-width: 1024px) {
  .search-toc { margin: 64px 0; }
  .search-toc__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
  }
  .search-toc__right { justify-self: stretch; }
  .search-toc__title { font-size: 34px; }
  .search-toc__description { max-width: 480px; font-size: 15px; }
  .search-toc__visual { max-width: 380px; }
  .search-toc__nav { margin-top: 64px; }
}

@media only screen and (max-width: 767px) {
  .search-toc { margin: 48px 0; }
  .search-toc__inner { display: block; }
  .search-toc__title { margin-bottom: 32px; font-size: 30px; }
  .search-toc__description { max-width: none; font-size: 15px; }
  .search-toc__visual { display: none; }
  .search-toc__right {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 40px;
    padding-top: 0;
  }
  .search-toc__nav { display: none !important; }
}

@media only screen and (max-width: 479px) {
  .search-toc { margin: 40px 0; }
  .search-toc__title {
    margin-bottom: 24px;
    font-size: 26px;
    letter-spacing: -0.5px;
  }
  .search-toc__description { font-size: 14px; line-height: 1.6; }
  .search-toc__meta-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
  }
}

/* ============================================
   2. О проекте (TL;DR)
   ============================================ */

.search-tldr-row {
  background: radial-gradient(
    ellipse at 0% 50%,
    #F7FBFF 0%,
    #EEF7FF 100%
  );
}

.search-tldr {
  margin: 80px 0;
}

.search-tldr__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 60px 0 20px 0;
  border-bottom: 1px solid #bacfff;
}

.search-tldr__title {
  font-family: 'Headline Bold', sans-serif;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2;
  color: #151515;
  margin: 0;
  text-transform: uppercase;
}

.search-tldr__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.search-tldr__icon svg {
  width: 100%;
  height: 100%;
}

.search-tldr__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-tldr__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 48px;
  padding: 28px 0 0 0;
  align-items: flex-start;
}

.search-tldr__item--first {
  padding-top: 28px;
  padding-bottom: 0;
}

.search-tldr__label {
  font-family: 'Headline Bold', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  padding-top: 2px;
}

.search-tldr__content {
  min-width: 0;
}

.search-tldr__text {
  font-family: 'Onest-Regular', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #141414;
  margin: 0;
  padding-bottom: 10px;
}

.search-tldr__divider {
  height: 1px;
  background-color: #bacfff;
  margin: 24px 0 0 0;
  width: 100%;
}

.search-tldr__bullets {
  list-style: none;
  margin: 0;
  padding: 0 0 10px 0;
}

.search-tldr__bullets li {
  position: relative;
  padding-left: 16px;
  font-family: 'Onest-Regular', sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: #353535;
  margin-bottom: 10px;
}

.search-tldr__bullets li:last-child { margin-bottom: 0; }

.search-tldr__bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #353535;
  font-size: 16px;
  line-height: 1.7;
}

.search-tldr__item:last-child .search-tldr__divider {
  display: none;
}

@media only screen and (max-width: 1024px) {
  .search-tldr__item {
    grid-template-columns: 180px 1fr;
    column-gap: 32px;
    padding: 20px 0;
  }
  .search-tldr__title { font-size: 26px; }
  .search-tldr__text,
  .search-tldr__bullets li { font-size: 15px; }
}

@media only screen and (max-width: 767px) {
  .search-tldr { margin: 60px 0; }
  .search-tldr__header { padding-bottom: 16px; }
  .search-tldr__title { font-size: 24px; }
  .search-tldr__icon { width: 28px; height: 28px; }
  .search-tldr__item {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 20px 0;
  }
  .search-tldr__label { font-size: 12px; padding-top: 0; }
  .search-tldr__text,
  .search-tldr__bullets li { font-size: 14px; line-height: 1.6; }
}

@media only screen and (max-width: 479px) {
  .search-tldr { margin: 40px 0; }
  .search-tldr__header { padding-bottom: 14px; }
  .search-tldr__title { font-size: 20px; }
  .search-tldr__icon { width: 24px; height: 24px; }
  .search-tldr__item { padding: 16px 0; row-gap: 8px; }
  .search-tldr__label { font-size: 11px; letter-spacing: 0.05em; }
  .search-tldr__text,
  .search-tldr__bullets li { font-size: 13px; line-height: 1.6; }
  .search-tldr__bullets li { margin-bottom: 8px; padding-left: 14px; }
  .search-tldr__divider { margin-top: 20px; }
}

/* ============================================
   3. Контекст и проблема
   ============================================ */

.search-context-row {
  background-color: #ffffff;
}

.search-context {
  margin: 64px 0;
}

.search-context__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #D8D8D8;
  margin-bottom: 32px;
}

.search-context__title {
  font-family: 'Headline Bold', sans-serif;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #151515;
  margin: 0;
}

.search-context__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.search-context__icon svg {
  width: 100%;
  height: 100%;
}

.search-context__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 0;
}



.search-context__heading {
  font-family: 'Headline Bold', sans-serif;
  font-size: 22px;
  letter-spacing: -1px;
  color: #111;
  margin: 0;
  padding: 2px 0 16px 0;
  line-height: 1.3;
}

.search-context__text {
  font-size: 16px;
  line-height: 1.6;
  color: #141414;
  margin-bottom: 16px;
}

.search-context__text:last-child { margin-bottom: 0; }

.search-context__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.search-context__list-item {
  position: relative;
  padding-left: 16px;
  font-size: 16px;
  line-height: 1.4;
  color: #141414;
  margin-bottom: 8px;
}

.search-context__list-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #333;
}

.search-context__visual {
  width: 100%;
}

.search-context__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
}

@media only screen and (max-width: 1023px) {
  .search-context__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .search-context__content { max-width: none; }
}

@media only screen and (max-width: 767px) {
  .search-context { margin: 48px 0; }
  .search-context__header { padding-bottom: 16px; margin-bottom: 24px; }
  .search-context__title { font-size: 24px; }
  .search-context__icon { width: 28px; height: 28px; }
  .search-context__heading { font-size: 20px; }
  .search-context__text,
  .search-context__list-item { font-size: 14px; line-height: 1.6; }
}

@media only screen and (max-width: 479px) {
  .search-context { margin: 40px 0; }
  .search-context__header { padding-bottom: 14px; margin-bottom: 20px; }
  .search-context__title { font-size: 20px; }
  .search-context__icon { width: 24px; height: 24px; }
  .search-context__heading { font-size: 18px; }
  .search-context__text,
  .search-context__list-item { font-size: 13px; line-height: 1.6; }
}

/* ============================================
   4. Моя роль
   ============================================ */

.search-role-row {
  background-color: #ffffff;
}

.search-role {
  margin: 64px 0;
}

.search-role__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #D8D8D8;
  margin-bottom: 32px;
}

.search-role__title {
  font-family: 'Headline Bold', sans-serif;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #151515;
  margin: 0;
}

.search-role__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.search-role__icon svg { width: 100%; height: 100%; }

.search-role__text {
  font-family: 'Onest-Regular', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #141414;
  margin: 0 0 16px 0;
  max-width: 860px;
}

.search-role__text:last-child { margin-bottom: 0; }

@media only screen and (max-width: 767px) {
  .search-role { margin: 48px 0; }
  .search-role__header { padding-bottom: 16px; margin-bottom: 24px; }
  .search-role__title { font-size: 24px; }
  .search-role__icon { width: 28px; height: 28px; }
  .search-role__text { font-size: 14px; line-height: 1.6; }
}

@media only screen and (max-width: 479px) {
  .search-role { margin: 40px 0; }
  .search-role__header { padding-bottom: 14px; margin-bottom: 20px; }
  .search-role__title { font-size: 20px; }
  .search-role__icon { width: 24px; height: 24px; }
  .search-role__text { font-size: 13px; line-height: 1.6; }
}

/* ============================================
   5. Что будет в кейсе
   ============================================ */

.search-agenda-row {
  background-color: #ffffff;
}

.search-agenda {
  margin: 64px 0 96px;
}

.search-agenda__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #D8D8D8;
  margin-bottom: 32px;
}

.search-agenda__title {
  font-family: 'Headline Bold', sans-serif;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #151515;
  margin: 0;
}

.search-agenda__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.search-agenda__icon svg { width: 100%; height: 100%; }

.search-agenda__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.search-agenda__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid #E8E9ED;
  border-radius: 16px;
  background-color: #FAFBFC;
}

.search-agenda__num {
  flex-shrink: 0;
  font-family: 'Fact Expanded Bold', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #8b8b8b;
  line-height: 1.4;
}

.search-agenda__item-text {
  font-family: 'Onest-Regular', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #141414;
  margin: 0;
}

@media only screen and (max-width: 1024px) {
  .search-agenda__list { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 767px) {
  .search-agenda { margin: 48px 0 72px; }
  .search-agenda__header { padding-bottom: 16px; margin-bottom: 24px; }
  .search-agenda__title { font-size: 24px; }
  .search-agenda__icon { width: 28px; height: 28px; }
  .search-agenda__item { padding: 18px; gap: 12px; }
  .search-agenda__item-text { font-size: 14px; }
}

@media only screen and (max-width: 479px) {
  .search-agenda { margin: 40px 0 64px; }
  .search-agenda__header { padding-bottom: 14px; margin-bottom: 20px; }
  .search-agenda__title { font-size: 20px; }
  .search-agenda__icon { width: 24px; height: 24px; }
  .search-agenda__item { padding: 16px; border-radius: 12px; }
  .search-agenda__item-text { font-size: 13px; }
}