/* =============================================================
   tg-about.css — страница «О компании» (/about/, page_id=9)
   Дизайн-спека web-designer v1 (27.07.2026), токены brand-system v2.9.
   Всё скоуплено под .tg-about — блок живёт в page_text внутри
   .page-content, поэтому правила ≥(0,2,0), чтобы бить .page-content <tag>.
   H1 «О компании» рендерит шаблон через .side-title (page_name).
   ============================================================= */

.tg-about{
  --tga-yellow:#FFCE00;
  --tga-dark:#1C1F24;
  --tga-cream:#EFEAEA;
  --tga-charcoal:#363636;
  --tga-gray:#ACACAC;
  --tga-border:#D9D9D9;
  --tga-r-sm:8px;
  --tga-r-md:15px;
  --tga-r-lg:20px;
  --tga-sp-1:8px;
  --tga-sp-2:16px;
  --tga-sp-3:24px;
  --tga-sp-4:40px;
  --tga-sp-5:64px;
  --tga-sp-6:96px;

  font-family:'Inter',Arial,sans-serif;
  color:var(--tga-charcoal);
  font-weight:300;
}
.tg-about *,
.tg-about *::before,
.tg-about *::after{box-sizing:border-box;}

/* ---- вертикальный ритм секций ---- */
.tg-about .tga-sec{margin-top:var(--tga-sp-6);}
.tg-about .tga-sec:first-child{margin-top:var(--tga-sp-3);}

/* ---- заголовки секций (03D) — бьют .page-content h2 (0,1,1) ---- */
.tg-about .tga-h2{
  font-family:'Manrope',Arial,sans-serif;
  font-weight:600;
  font-size:40px;
  line-height:1.2;
  text-transform:uppercase;
  color:#000;
  margin:0 0 var(--tga-sp-3);
  letter-spacing:.01em;
}

/* ---- текстовые роли ---- */
.tg-about .tga-lead{
  font-family:'Inter',Arial,sans-serif;
  font-weight:300;
  font-size:24px;
  line-height:1.5;
  color:var(--tga-charcoal);
  max-width:820px;
  margin:0;
}
.tg-about .tga-lead--sm{font-size:20px;}
.tg-about .tga-body{
  font-family:'Inter',Arial,sans-serif;
  font-weight:300;
  font-size:16px;
  line-height:1.6;
  color:var(--tga-charcoal);
  max-width:780px;
  margin:0;
}
.tg-about .tga-body + .tga-body{margin-top:var(--tga-sp-2);}
.tg-about .tga-body b,
.tg-about .tga-lead b{
  color:#000;
  font-weight:600;
  font-family:'Manrope',Arial,sans-serif;
}
.tg-about .tga-closing{margin-top:var(--tga-sp-4);}

/* интро под H1 */
.tg-about .tga-intro{margin-top:var(--tga-sp-3);}

/* жёлтый хайлайтер */
.tg-about .tga-mark{
  background:linear-gradient(var(--tga-yellow),var(--tga-yellow)) no-repeat;
  background-size:100% 8px;
  background-position:0 calc(100% - .18em);
  font-weight:600;
  color:#000;
  padding:0 .04em;
}

/* eyebrow «В работе» */
.tg-about .tga-eyebrow{
  font-family:'Manrope',Arial,sans-serif;
  font-weight:700;
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--tga-charcoal);
  margin:var(--tga-sp-4) 0 var(--tga-sp-2);
}

/* =============== карточки 04H =============== */
.tg-about .tga-cards-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--tga-sp-3);
  align-items:stretch;
  margin:0;
}
.tg-about .tga-cards-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:var(--tga-sp-3);
  align-items:stretch;
  margin:var(--tga-sp-4) 0 0;
}
.tg-about .tga-card{
  background:#fff;
  padding:60px 28px;
  border-radius:var(--tga-r-lg);
  box-shadow:0 2px 8px rgba(28,31,36,.07);
  display:flex;
  flex-direction:column;
}
.tg-about .tga-card-head{
  display:flex;
  gap:16px;
  align-items:flex-start;
  margin-bottom:14px;
}
.tg-about .tga-bar{
  width:8px;
  background:var(--tga-yellow);
  flex-shrink:0;
  align-self:stretch;
  border-radius:1px;
}
.tg-about .tga-card-title{
  font-family:'Manrope',Arial,sans-serif;
  font-size:26px;
  font-weight:700;
  color:#0A0A0A;
  line-height:1.25;
  margin:0;
}
.tg-about .tga-card-body{
  padding-left:24px;
  font-family:'Inter',Arial,sans-serif;
  font-size:16px;
  font-weight:300;
  color:#363636;
  line-height:1.6;
  margin:0;
}

/* why-cards: тот же каркас 04H, но одна строка — вертикальная
   жёлтая черта во всю высоту + абзац с bold-лейблом (без заголовка) */
.tg-about .tga-why{
  flex-direction:row;
  gap:16px;
  align-items:stretch;
  padding:32px 28px;
}
.tg-about .tga-why .tga-card-body{padding-left:0;}
.tg-about .tga-why .tga-card-body b{
  font-family:'Manrope',Arial,sans-serif;
  font-weight:700;
  color:#000;
}

/* =============== С кем мы работаем =============== */
.tg-about .tga-qlist{
  list-style:none;
  margin:var(--tga-sp-3) 0 0;
  padding:0;
  max-width:780px;
}
.tg-about .tga-qlist li{
  display:flex;
  gap:14px;
  align-items:flex-start;
  font-family:'Inter',Arial,sans-serif;
  font-weight:300;
  font-size:16px;
  line-height:1.6;
  color:var(--tga-charcoal);
  margin-bottom:var(--tga-sp-2);
}
.tg-about .tga-qlist li:last-child{margin-bottom:0;}
.tg-about .tga-qlist li::before{
  content:'';
  width:8px;
  height:8px;
  background:var(--tga-yellow);
  flex-shrink:0;
  margin-top:9px;
}
.tg-about .tga-callout{
  background:var(--tga-cream);
  border-left:3px solid var(--tga-yellow);
  border-radius:0 var(--tga-r-sm) var(--tga-r-sm) 0;
  padding:16px 20px;
  max-width:820px;
  margin-top:var(--tga-sp-3);
  font-family:'Inter',Arial,sans-serif;
  font-size:16px;
  font-weight:300;
  line-height:1.6;
  color:var(--tga-charcoal);
}

/* =============== Слово от директора =============== */
.tg-about .tga-quote{
  background:var(--tga-cream);
  border-radius:var(--tga-r-lg);
  padding:48px 56px;
  display:grid;
  grid-template-columns:160px 1fr;
  gap:40px;
  align-items:start;
}
.tg-about .tga-quote-photo{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.tg-about .tga-avatar{
  width:128px;
  height:128px;
  border-radius:50%;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(28,31,36,.10);
  margin-bottom:16px;
}
.tg-about .tga-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.tg-about .tga-quote-name{
  font-family:'Manrope',Arial,sans-serif;
  font-weight:700;
  font-size:20px;
  color:#000;
  line-height:1.25;
}
.tg-about .tga-quote-role{
  font-family:'Inter',Arial,sans-serif;
  font-weight:300;
  font-size:14px;
  color:var(--tga-charcoal);
  margin-top:2px;
}
.tg-about .tga-quote-mark{
  font-family:'Manrope',Arial,sans-serif;
  font-weight:800;
  font-size:64px;
  color:var(--tga-yellow);
  line-height:1;
  display:block;
  margin:0 0 -8px -4px;
}
.tg-about .tga-quote-text{
  font-family:'Inter',Arial,sans-serif;
  font-weight:300;
  font-size:22px;
  line-height:1.5;
  color:#000;
}
.tg-about .tga-quote-text p{margin:0 0 var(--tga-sp-2);}
.tg-about .tga-quote-text p:last-child{margin-bottom:0;}

/* ===============================================================
   Как с нами связаться — форма обратной связи (перенесена с главной).
   Разметка живёт в page_text внутри .page-content, поэтому все
   селекторы ≥(0,2,0) — бьют глобальные `.page-content a` (0,1,1).
   Классы tgc-* самодостаточны (ai-test-sections.css на внутренних
   страницах не подключается). Логика отправки — 1:1 с формой главной:
   vanilla fetch POST /callback/, handler WriteMe::add.
   =============================================================== */

/* слоган-тезисы над формой */
.tg-about .tgc-claims{
  font-family:'Manrope',Arial,sans-serif;
  font-weight:600;
  font-size:24px;
  line-height:1.3;
  letter-spacing:-.005em;
  color:#000;
  margin:var(--tga-sp-4) 0 var(--tga-sp-3);
  max-width:820px;
}

/* сетка: карточка формы + колонка соцсетей */
.tg-about .tgc-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:var(--tga-sp-4);
  align-items:start;
  margin-top:var(--tga-sp-3);
}

/* белая карточка формы */
.tg-about .tgc-card{
  background:#fff;
  border:1px solid var(--tga-border);
  border-radius:var(--tga-r-lg);
  box-shadow:0 8px 24px rgba(0,0,0,.1);
  padding:var(--tga-sp-4);
}
.tg-about .tgc-form{width:100%;}
.tg-about .tgc-form-line{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  align-items:stretch;
  gap:12px;
}
.tg-about .tgc-field{display:flex;min-width:0;}

/* поля ввода */
.tg-about .tgc-input{
  width:100%;
  height:64px;
  margin:0;
  background:#fff;
  border:1px solid var(--tga-dark);
  border-radius:var(--tga-r-md);
  color:var(--tga-dark);
  font-family:'Inter',Arial,sans-serif;
  font-size:18px;
  font-weight:300;
  padding:0 20px;
  appearance:none;
  -webkit-appearance:none;
}
.tg-about .tgc-input::placeholder{color:#9a9a9a;opacity:1;}
.tg-about .tgc-input:focus{
  outline:none;
  border-color:#000;
  box-shadow:0 0 0 2px rgba(254,213,1,.45);
}

/* кнопка-сабмит — жёлтая CTA 04A5 с «рукой» (как на главной) */
.tg-about .tgc-submit{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  height:64px;
  min-height:64px;
  margin:0;
  padding:0 32px;
  background:var(--tga-yellow);
  border:2px solid #000;
  border-radius:var(--tga-r-md);
  overflow:visible;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  font-family:'Manrope',Arial,sans-serif;
  font-weight:800;
  font-size:16px;
  line-height:1;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#000;
  white-space:nowrap;
  transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s cubic-bezier(.16,1,.3,1);
}
.tg-about .tgc-submit__label{white-space:nowrap;color:#000;}
.tg-about .tgc-submit__hand{
  position:absolute;
  bottom:-18px;
  right:-14px;
  width:48px;
  height:60px;
  pointer-events:none;
  transition:transform .2s ease-out;
}
.tg-about .tgc-submit__hand img{position:absolute;display:block;}
.tg-about .tgc-submit__hand-lines{top:0;left:0;width:28px;height:auto;}
.tg-about .tgc-submit__hand-palm{top:12px;left:6px;width:31px;height:auto;}
.tg-about .tgc-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px -8px rgba(255,206,0,.5);
}
.tg-about .tgc-submit:hover .tgc-submit__hand{transform:translate(-8px,-6px);}
.tg-about .tgc-submit:active{transform:translateY(0);}
.tg-about .tgc-submit:focus-visible{outline:3px solid #000;outline-offset:3px;}
.tg-about .tgc-submit.is-sending{opacity:.7;pointer-events:none;}

/* чекбокс согласия 04M */
.tg-about .tgc-policy-row{margin:var(--tga-sp-2) 0 0;}
.tg-about .tgc-policy{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  cursor:pointer;
  margin:0;
  padding:0;
}
.tg-about .tgc-policy__input{
  position:absolute;
  appearance:none;
  -webkit-appearance:none;
  opacity:0;
  width:22px;height:22px;
  margin:0;
  cursor:pointer;
}
.tg-about .tgc-policy__box{
  flex:0 0 auto;
  width:22px;height:22px;
  border:1.5px solid #292929;
  border-radius:4px;
  background:#fff;
  position:relative;
  transition:background-color .15s ease,border-color .15s ease;
}
.tg-about .tgc-policy__box::after{
  content:"";
  position:absolute;
  left:7px;top:3px;
  width:5px;height:10px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg) scale(0);
  transform-origin:center;
  transition:transform .15s ease;
}
.tg-about .tgc-policy__input:checked + .tgc-policy__box{background:#000;border-color:#000;}
.tg-about .tgc-policy__input:checked + .tgc-policy__box::after{transform:rotate(45deg) scale(1);}
.tg-about .tgc-policy__input:focus-visible + .tgc-policy__box{outline:2px solid var(--tga-yellow);outline-offset:2px;}
.tg-about .tgc-policy:hover .tgc-policy__box{border-color:#000;background:#fafafa;}
.tg-about .tgc-policy:hover .tgc-policy__input:checked + .tgc-policy__box{background:#1c1c1c;border-color:#1c1c1c;}
.tg-about .tgc-policy__text{
  font-family:'Inter',Arial,sans-serif;
  font-size:13px;
  font-weight:300;
  line-height:1.5;
  letter-spacing:.01em;
  color:rgba(0,0,0,.55);
}
.tg-about .tgc-policy__link{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
  border-bottom:0;
  transition:opacity .15s ease;
}
.tg-about .tgc-policy__link:hover{opacity:.65;}

/* колонка «или просто напишите нам» + иконки */
.tg-about .tgc-aside{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:var(--tga-sp-2);
  padding-top:var(--tga-sp-1);
}
.tg-about .tgc-contacts-label{
  font-family:'Inter',Arial,sans-serif;
  font-weight:400;
  font-size:15px;
  line-height:1.4;
  color:var(--tga-charcoal);
  margin:0;
  text-align:center;
}
.tg-about .tgc-contacts{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.tg-about .tgc-contacts__item{position:relative;}
.tg-about .tgc-contacts__btn{
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#292929;
  border-radius:14px;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  color:#fff;
  text-decoration:none;
  border-bottom:0;
  transition:background-color .2s ease-in-out,box-shadow .2s ease-in-out,color .2s ease-in-out,transform .2s ease-in-out;
  -webkit-tap-highlight-color:transparent;
}
.tg-about .tgc-contacts__btn svg{width:24px;height:24px;fill:currentColor;display:block;}
.tg-about .tgc-contacts__btn img{
  width:24px;height:24px;object-fit:contain;display:block;pointer-events:none;
  filter:brightness(0) invert(1);
  transition:filter .2s ease-in-out;
}
.tg-about .tgc-contacts__btn:hover{
  background:var(--tga-yellow);
  color:#1c1c1c;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.tg-about .tgc-contacts__btn:hover img{filter:brightness(0);}
.tg-about .tgc-contacts__btn:active{transform:translateY(1px);}
.tg-about .tgc-contacts__btn:focus-visible{outline:2px solid var(--tga-yellow);outline-offset:3px;}
.tg-about .tgc-contacts__tip{
  position:absolute;
  bottom:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%);
  background:#333;
  color:#fff;
  font-family:'Manrope',sans-serif;
  font-size:13px;
  font-weight:600;
  padding:8px 14px;
  border-radius:8px;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .25s,visibility .25s;
  z-index:10;
}
.tg-about .tgc-contacts__tip::after{
  content:'';
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  border:6px solid transparent;
  border-top-color:#333;
}
.tg-about .tgc-contacts__item:hover .tgc-contacts__tip{opacity:1;visibility:visible;}

/* =============================================================
   ПЛАНШЕТ  (768–1023px)
   ============================================================= */
@media (max-width:1023px){
  .tg-about .tga-sec{margin-top:var(--tga-sp-5);}
  .tg-about .tga-h2{font-size:32px;}
  .tg-about .tga-lead{font-size:22px;}
  .tg-about .tga-lead--sm{font-size:18px;}
  .tg-about .tga-card{padding:36px 24px;}
  .tg-about .tga-card-title{font-size:22px;}
  .tg-about .tga-quote{padding:40px 40px;gap:32px;grid-template-columns:140px 1fr;}

  /* форма: карточка на всю ширину, соцсети под ней */
  .tg-about .tgc-grid{grid-template-columns:1fr;gap:var(--tga-sp-4);}
  .tg-about .tgc-aside{align-items:flex-start;}
  .tg-about .tgc-contacts{justify-content:flex-start;}
}

/* =============================================================
   МОБАЙЛ  (<768px)
   ============================================================= */
@media (max-width:767px){
  .tg-about .tga-sec{margin-top:var(--tga-sp-5);}
  .tg-about .tga-sec:first-child{margin-top:var(--tga-sp-2);}
  .tg-about .tga-h2{font-size:22px;margin-bottom:var(--tga-sp-2);}
  .tg-about .tga-lead{font-size:17px;max-width:100%;}
  .tg-about .tga-lead--sm{font-size:16px;}
  .tg-about .tga-body{font-size:15px;max-width:100%;}
  .tg-about .tga-eyebrow{margin-top:var(--tga-sp-3);}

  .tg-about .tga-cards-3,
  .tg-about .tga-cards-2{grid-template-columns:1fr;gap:var(--tga-sp-2);}
  .tg-about .tga-cards-2{margin-top:var(--tga-sp-3);}
  .tg-about .tga-card{padding:28px 22px;}
  .tg-about .tga-card-title{font-size:19px;}
  .tg-about .tga-card-body{font-size:15px;padding-left:20px;}
  .tg-about .tga-why{padding:24px 20px;}

  .tg-about .tga-qlist li{font-size:15px;}
  .tg-about .tga-callout{font-size:15px;max-width:100%;}

  .tg-about .tga-quote{
    grid-template-columns:1fr;
    padding:28px 22px;
    gap:20px;
    text-align:center;
  }
  .tg-about .tga-avatar{width:96px;height:96px;margin:0 auto 12px;}
  .tg-about .tga-quote-mark{font-size:52px;text-align:left;}
  .tg-about .tga-quote-text{font-size:16px;text-align:left;}

  /* форма: поля и кнопка в колонку, всё full-width */
  .tg-about .tgc-claims{font-size:20px;}
  .tg-about .tgc-card{padding:24px 20px;}
  .tg-about .tgc-form-line{display:flex;flex-direction:column;gap:12px;}
  .tg-about .tgc-field{width:100%;}
  .tg-about .tgc-input{width:100%;height:60px;min-height:60px;}
  .tg-about .tgc-submit{display:flex;width:100%;align-self:stretch;height:60px;min-height:60px;}
  .tg-about .tgc-submit__hand{right:8px;}
  .tg-about .tgc-contacts{gap:10px;}
  .tg-about .tgc-contacts__btn{width:52px;height:52px;border-radius:12px;}
  .tg-about .tgc-contacts__btn svg,
  .tg-about .tgc-contacts__btn img{width:22px;height:22px;}
  .tg-about .tgc-contacts__tip{display:none;}
}
