/* ============================================================
   About/responsive.css — адаптивная вёрстка about.html

   Загружается ТОЛЬКО в about.html, ПОСЛЕ globals.css,
   About/style.css и shared.css.

   Старый макет (About/style.css) — фиксированный холст
   1600x5074 px с абсолютным позиционированием. Этот файл
   перестраивает содержимое страницы в потоковую адаптивную
   вёрстку (новые классы a-*):

     - широкие экраны (>=1600px): композиция один в один
       как в оригинале;
     - 1024-1599px: блоки сжимаются пропорционально;
     - <=1023px (планшеты/телефоны): блоки складываются
       в колонку.

   Общие include-блоки (баннер, форма, футер) и холст .div
   — в shared.css. Сами include-файлы не изменяются.
   ============================================================ */


/* ----------------------------------------------------------
   1. HERO — светлая шапка: баннер + заголовок + две кнопки
   + фото команды (в оригинале 1600x1103, градиент в кремовый)
   ---------------------------------------------------------- */
.a-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 233, 207, 0) 0%, rgb(245, 233, 207) 100%);
}

/* заголовок: 35px, 2 строки, по центру (в оригинале 836px;
   876 = 836 + 2x20 padding, box-sizing: border-box) */
.a-title {
  position: relative;
  z-index: 2;
  max-width: 876px;
  margin: 36px auto 0;
  padding: 0 20px;
  font-family: "Open Sans", Helvetica;
  font-size: 35px;
  font-weight: 700;
  color: #4d455d;
  text-align: center;
  line-height: normal;
}

/* две кнопки 255x60, зазор 50, по центру (в оригинале 520/825) */
.a-btns {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 104px;
}

.a-btn {
  display: block;
  width: 255px;
  height: 60px;
  line-height: 56px; /* 60px - 2x border */
  text-align: center;
  font-family: "Open Sans", Helvetica;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  background-color: #7db9b7;
  border: 2px solid #aef8f6;
  border-radius: 15px;
  overflow: hidden;
}

.a-btn:hover {
  background-color: #8dc9c7;
}

/* фото команды: 787px по центру, впритык к нижнему краю hero */
.a-team-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 49.19%; /* 787/1600 */
  max-width: 787px;
  height: auto;
  margin: 50px auto 0;
}

/* декоративные круги — % от hero (в оригинале фиксированные
   координаты в 1600x1103); на телефоне hero выше, круги
   просто следуют за композицией, края обрезает overflow */
.a-dot {
  position: absolute;
  border-radius: 50%;
}

.a-dot-1 { left: 12.38%; top: 73.25%; width: 51px; height: 51px; background-color: #7db9b7; }
.a-dot-2 { left: 85.69%; top: 25.84%; width: 29px; height: 29px; background-color: #f5e9cf; }
.a-dot-3 { left: 80.56%; top: 89.48%; width: 45px; height: 45px; background-color: #e96479; }
.a-dot-4 { left: 20.13%; top: 28.83%; width: 26px; height: 26px; background-color: #e96479cf; }
.a-dot-5 { left: -1.63%; top: 37.26%; width: 76px; height: 76px; background-color: #f5e9cf; }
.a-dot-6 { left: 94.13%; top: 58.11%; width: 67px; height: 67px; background-color: #7db9b7cc; }


/* ----------------------------------------------------------
   2. КОМАНДА — кремовый блок: волна-вектор, тёмная плашка
   1404x708 с текстом и двумя бирюзовыми чертами
   ---------------------------------------------------------- */
.a-team {
  position: relative;
  width: 100%;
  background-color: #f5e9cf;
  padding-bottom: 130px; /* крем под плашкой (в оригинале 2044-1914) */
}

/* волна 780x10 — по центру самого верху блока */
.a-team-vector {
  display: block;
  width: 780px;
  max-width: 92%;
  height: 10px;
  margin: 0 auto;
}

.a-team-box {
  position: relative;
  width: 100%;
  max-width: 1404px;
  height: 708px;
  margin: 93px auto 0; /* 103px от верха блока минус 10px вектора */
  background-color: #4d455d;
  box-sizing: border-box;
}

/* бирюзовые черты 163x3 */
.a-team-line {
  position: absolute;
  width: 163px;
  height: 3px;
}

/* верхняя — у левого края, над текстом */
.a-team-line-top {
  top: 134px;
  left: 142px;
}

/* нижняя — справа, под текстом */
.a-team-line-bottom {
  top: 588px;
  left: 1090px;
}

/* текст: 25px белый; line-height 2 — унаследовано от глобального
   правила p, как в оригинале (top 226 = 196 + margin 30) */
.a-team-text {
  position: absolute;
  top: 226px;
  left: 143px;
  width: 1108px;
  max-width: calc(100% - 286px);
  margin: 0;
  font-family: "Open Sans", Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 25px;
  line-height: 2;
  text-align: justify;
}


/* ----------------------------------------------------------
   3. ОСОБЕННОСТИ — белый блок: слева заголовки, справа
   нумерованный список 01-05 (в оригинале 2044..3158)
   ---------------------------------------------------------- */
.a-features {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  padding: 302px 0 254px;
}

/* контент 1110px (245..1355) — по центру */
.a-feat-inner {
  display: flex;
  justify-content: center;
  gap: 6px;
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* левая колонка 450px: "Наши особенности:" + подзаголовок */
.a-feat-left {
  position: relative;
  flex: 0 0 450px;
}

.a-feat-title {
  max-width: 350px;
  margin: 0;
  font-family: "Open Sans", Helvetica;
  font-size: 35px;
  font-weight: 700;
  color: #4d455d;
  text-align: left;
  line-height: normal;
}

/* подзаголовок смещён на 20px левее заголовка (225 против 245) */
.a-feat-sub {
  max-width: 450px;
  margin: 76px 0 0 -20px;
  font-family: "Open Sans", Helvetica;
  font-size: 30px;
  font-weight: 600;
  color: #7db9b7;
  text-align: justify;
  line-height: normal;
}

/* розовая точка у заголовка (189 против 245 -> -56) */
.a-feat-dot {
  position: absolute;
  top: 12px;
  left: -56px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background-color: #e96479;
}

/* правая колонка: 5 строк "кружок-номер + текст" */
.a-feat-rows {
  flex: 0 0 654px; /* 60 (кружок) + 24 (зазор) + 570 (текст) */
}

.a-feat-row {
  display: flex;
  align-items: flex-start;
  height: 99px; /* шаг строк 2-5 в оригинале */
}

/* первая строка выше: шаг 162 (заголовок слева — 2 строки) */
.a-feat-row:first-child {
  height: 162px;
}

.a-feat-num-wrap {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  height: 63px;
}

/* кремовый кружок 47x47 */
.a-feat-num-bg {
  position: absolute;
  top: 16px;
  left: 0;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background-color: #f5e9cf;
}

/* розовый номер 35px */
.a-feat-num {
  position: absolute;
  top: 0;
  left: 19px;
  font-family: "Open Sans", Helvetica;
  font-size: 35px;
  font-weight: 600;
  color: #e96479;
  line-height: 1;
}

.a-feat-text {
  width: 570px;
  margin: 17px 0 0 24px;
  font-family: "Open Sans", Helvetica;
  font-weight: 400;
  color: #4d455d;
  font-size: 20px;
  text-align: left;
  line-height: normal;
}


/* ----------------------------------------------------------
   4. АДАПТИВ
   ---------------------------------------------------------- */

/* --- планшеты и узкие десктопы --- */
@media (max-width: 1023px) {
  .a-title {
    font-size: 28px;
    margin-top: 28px;
  }

  .a-btns {
    margin-top: 40px;
  }

  .a-team-photo {
    width: 85%;
    margin-top: 40px;
  }

  /* команда: плашка без фиксированной высоты */
  .a-team {
    padding-bottom: 64px;
  }

  .a-team-vector {
    max-width: 70%;
  }

  .a-team-box {
    height: auto;
    margin-top: 48px;
    padding: 40px 24px 44px;
  }

  .a-team-line-top {
    position: static;
    margin-bottom: 24px;
  }

  .a-team-line-bottom {
    display: none;
  }

  .a-team-text {
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
    text-align: left;
  }

  /* особенности: одна колонка */
  .a-features {
    padding: 72px 20px 64px;
  }

  .a-feat-inner {
    flex-direction: column;
    gap: 44px;
    padding: 0;
  }

  .a-feat-left {
    flex: 0 0 auto;
  }

  .a-feat-title {
    max-width: none;
    font-size: 30px;
  }

  .a-feat-sub {
    max-width: none;
    margin: 20px 0 0;
    font-size: 24px;
  }

  .a-feat-dot {
    display: none;
  }

  .a-feat-rows {
    flex: 0 0 auto;
    width: 100%;
  }

  .a-feat-row,
  .a-feat-row:first-child {
    height: auto;
    margin-bottom: 34px;
  }

  .a-feat-row:last-child {
    margin-bottom: 0;
  }

  .a-feat-num {
    font-size: 28px;
  }

  .a-feat-text {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    margin: 8px 0 0 16px;
    font-size: 17px;
  }
}

/* --- телефоны --- */
@media (max-width: 767px) {
  .a-btns {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
  }

  .a-btn {
    width: 100%;
    max-width: 320px;
    height: 56px;
    line-height: 52px;
  }
}

@media (max-width: 480px) {
  .a-title {
    font-size: 24px;
  }

  .a-btn {
    font-size: 18px;
  }

  .a-feat-title {
    font-size: 26px;
  }

  .a-feat-sub {
    font-size: 20px;
  }

  .a-feat-num {
    font-size: 24px;
  }

  .a-team-text {
    font-size: 18px;
  }
}
