/* ABOUT PAGE — минималистично, в стилистике Home */

:root {
  --amber-cta: #ebca6a;
  --amber-cta-hover: #f7dc88;
  --amber-cta-active: #d9b752;
  --cta-text-dark: #0b2b2d; /* можно заменить на твой темно-морской */
  /* Базовый юнит: на 1600px 1unit = 1px. 
   На меньших экранах всё будет плавно сжиматься. */
  --u: clamp(0.45px, 100vw / 1600, 1px);
}
body.page-about {
  position: relative;
}

body.page-about::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 44x; /* под высоту твоего хедера */
  z-index: 5; /* ниже хедера, выше body-фона */
  pointer-events: none;

  background: rgba(255, 255, 255, 0.99); /* или чуть “стекло” */
  /* backdrop-filter: blur(8px); /* опционально, красиво */
  /*  border-bottom: 1px solid rgba(11, 43, 45, 0.08);*/
}

/* убираем дефолтные отступы браузера */
.about-why .section-label,
.about-why .section-title,
.about-why .section-lead {
  margin: 0;
}

/* задаём ритм вручную */
.about-why .section-label {
  margin-bottom: 10px;
}
.about-why .section-title {
  margin-bottom: 14px;
}
.about-why .section-lead {
  margin-bottom: 26px;
}

/* ABOUT — tighter footer spacing (только для about.html) */
body.about .site-footer {
  margin-top: 24px !important; /* если сверху слишком пусто */
  padding-top: 0 !important;
}

/* если у футера есть внутренняя широкая подложка */
body.about .site-footer .footer-wide,
body.about .site-footer .footer-wide-content {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  min-height: 0 !important; /* на случай если был min-height */
}

/* якорь — контролируемо меньше, без “растягивания” футера */
body.about .site-footer .anchor-img {
  width: 90px; /* подстрой: 90–140 */
  height: auto;
  max-width: 28vw;
}

/* если картинка вдруг раздувает строку */
body.about .site-footer .footer-visual {
  align-self: center;
}

.about-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.about-hero {
  padding: clamp(16px, 4vh, 40px) 0 clamp(18px, 4vh, 36px);
}

.about-hero-inner {
  position: relative;
  overflow: hidden; /* чтобы лого пряталось за края */
  border-radius: 22px;
  padding: clamp(18px, 3vw, 28px);

  /* sea-glass */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(255, 255, 255, 0.68) 100%
  );
  border: 1px solid rgba(27, 92, 89, 0.14);
  backdrop-filter: blur(10px) saturate(1.08);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* 2) Лого-водяной знак */
.about-hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* ВАЖНО: не shorthand с /cover, а явные свойства */
  background-image: url("../images/av_logo-bg.png");
  background-repeat: no-repeat;

  /* размер “логотипа” — тут регулируешь масштаб, НЕ нужно менять файл */
  background-size: 420px auto;

  /* уводим за правый край на +120px */
  background-position: calc(100% + 20px) 10%;

  opacity: 0.3;
}

/* 3) Весь контент поверх watermark */
.about-hero-inner > * {
  position: relative;
  z-index: 1;
}

.about-title {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4.5vw, 46px);
  letter-spacing: 0.02em;
}

.about-lead {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.5;
}

.about-hero-cta {
  display: flex;
  gap: 2px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.about-section {
  padding: clamp(20px, 5vh, 34px) 0;
}

.about-contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(14px, 2.2vw, 26px);
  align-items: start;
}

/* cards (team/contact) */
.about-card,
.contact-card {
  border-radius: 22px;
  padding: clamp(16px, 2.6vw, 22px);

  /* sea-glass */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.84) 0%,
    rgba(255, 255, 255, 0.66) 100%
  );
  border: 1px solid rgba(27, 92, 89, 0.14);
  backdrop-filter: blur(10px) saturate(1.08);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.about-list {
  margin: 14px 0 18px;
  padding-left: 18px;
  color: var(--text);
}

.team-mini {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.team-item {
  /* display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;*/

  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.team-avatar {
  /* width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);*/

  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
}

.team-avatar img {
  /*width: 100%;
  height: 100%;
  object-fit: cover;*/
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-name {
  font-weight: 700;
}

.team-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  opacity: 0.72;
}

.team-text {
  font-size: 13px;
  color: var(--text);
  margin-top: 8px;
  line-height: 1.45;
}

/* Contact section bits */
.contact-label {
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 0 14px;
}

.contact-audit {
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: rgba(27, 92, 89, 0.08);
  box-shadow: inset 0 0 0 1px rgba(27, 92, 89, 0.08);
  margin-bottom: 30px;
}

.contact-audit-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-audit-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.contact-audit-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.contact-links {
  margin: 14px 0 12px;
}

.contact-links-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-links-row {
  color: var(--muted);
  font-size: 14px;
}

.about-page {
  position: relative;
  isolation: isolate;
}

.about-page::before {
  content: "";
  position: absolute;
  inset: -40px -60px -60px -60px;
  z-index: -1;
  pointer-events: none;

  /* мягкие морские пятна + диагональ, как стекло/вода */
  background: radial-gradient(
      900px 420px at 18% 12%,
      rgba(27, 92, 89, 0.1),
      transparent 62%
    ),
    radial-gradient(
      700px 360px at 78% 22%,
      rgba(27, 92, 89, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 45% 78%,
      rgba(27, 92, 89, 0.06),
      transparent 62%
    ),
    linear-gradient(135deg, rgba(27, 92, 89, 0.06), transparent 55%);
}

.about-page .section-title {
  position: relative;
  padding-bottom: 26px;
  padding-left: 26px;
}

.about-page .section-title::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 0;
  bottom: 11px;
  height: 1px;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.14),
    rgba(0, 0, 0, 0.05),
    transparent
  );
}

.about-page .services-grid .service-card,
.about-page .process-grid .process-step {
  border-radius: 18px;
  border: 1px solid rgba(27, 92, 89, 0.1);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px) saturate(1.06);

  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);

  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* =========================================================
   ABOUT — “WHY” grid (как Home 2nd screen, но 2 колонки)
   Добавить В КОНЕЦ about.css
========================================================= */

.about-why {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px clamp(16px, 4vw, 28px);
}

.about-us,
.about-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
  margin-top: clamp(18px, 2.6vw, 28px);
}

.about-us {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
  margin-top: clamp(18px, 2.6vw, 28px);
}

.about-why-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  padding: clamp(16px, 2vw, 22px);
}

.about-why-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 10px;
}

.about-why-title {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  margin: 0 0 10px;
}

.about-why-text {
  margin: 0;
  opacity: 0.85;
  line-height: 1.45;
}

/* =========================================================
     ABOUT — Contact block (стеклянная “модалка”)
  ========================================================= */

.about-contact {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 28px);
}

.about-contact-card {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.1);

  /* “морское стекло”, близко к твоим click-zones */
  background: linear-gradient(
    135deg,
    rgba(27, 92, 89, 0.18),
    rgba(27, 92, 89, 0.08)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: clamp(18px, 2.4vw, 28px);
}

.about-contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Инпуты белые (как ты просила), даже если форма уже есть */
.about-contact-card input,
.about-contact-card textarea,
.about-contact-card select {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.about-contact-card textarea {
  min-height: 120px;
  resize: vertical;
}

/* Небольшой hover, чтобы выглядело “живее” */
.about-why-card:hover,
.about-contact-card:hover {
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
}

/* ===== Dividers (About / Sea style) ===== */

/* 1) Между секциями: линия + кружок */
.section-divider {
  position: relative;

  height: 1px;
  margin: 16px;
  /* слева линия “нормальная”, вправо растворяется */
  background: linear-gradient(
    90deg,
    rgba(27, 92, 89, 0.22) 0%,
    rgba(27, 92, 89, 0.22) 55%,
    rgba(27, 92, 89, 0.12) 78%,
    rgba(27, 92, 89, 0) 100%
  );
}

.section-divider::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(137, 170, 168, 0.4);
  /*  border: 1px solid rgba(27, 92, 89, 0.25);
 box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1), 0 0 0 6px rgba(27, 92, 89, 0.06);*/
}

/* 2) Под заголовками: линия без кружка */
.heading-divider {
  height: 1px;
  margin: 14px 0 22px;
  background: linear-gradient(
    90deg,
    rgba(27, 92, 89, 0),
    rgba(27, 92, 89, 0.18) 14%,
    rgba(27, 92, 89, 0.18) 86%,
    rgba(27, 92, 89, 0)
  );
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.brand-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  border: 1px solid rgba(190, 188, 188, 0.4);
  background: rgba(202, 201, 201, 0.2);
  white-space: nowrap;
}

.logo-ticker {
  margin-top: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 14px 18px; /* общий отступ ленты */
  position: relative;
}

.logo-ticker::before,
.logo-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.logo-ticker::before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.logo-ticker::after {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.logo-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  gap: 40px;
}

/* Тикер: чтобы интервалы были одинаковые */
.logo-set {
  display: flex;
  align-items: center;

  padding: 0;

  gap: 40px;
}

.logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(1);
}

.logo-ticker:hover .logo-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

@media (hover: hover) {
  .about-page .services-grid .service-card:hover,
  .about-page .process-grid .process-step:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 92, 89, 0.18);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  }
}

/* ===== Logo silhouettes (mask-based) ===== */
.logoMark {
  /* размер логотипа */
  width: 92px;
  height: 60px;
  display: inline-block;

  /* ваш морской акцент (замени на существующую переменную, если есть) */
  background: linear-gradient(
    to bottom,
    rgba(27, 92, 89, 0.4),
    rgba(27, 92, 89, 0.2)
  );

  /* “стеклянность” — чуть приглушаем, чтобы не кричало */
  opacity: 0.92;

  /* маска */
  -webkit-mask-image: var(--logo-url);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: var(--ms, contain);

  mask-image: var(--logo-url);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: var(--ms, contain);
}

/* Тёплый янтарный акцент (точечно, 1–2 логотипа) */
.logoMark--gold {
  background: var(--brand-gold, rgba(197, 166, 103, 0.5));
}

/* Чуть меньше логотипы (если какая-то иконка визуально “жирная”) */
.logoMark--sm {
  width: 80px;
}

/* Чуть больше (если слово короткое и выглядит “пусто”) */
.logoMark--lg {
  width: 110px;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.logo-ticker:hover .logo-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

.logoMark {
  box-shadow: 0 0 18px rgba(120, 255, 230, 0.1);
}
.logoMark--gold {
  box-shadow: 0 0 18px rgba(253, 215, 138, 0.1);
}

.about-outcome {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(11, 43, 45, 0.78); /* подстрой под свой якорный */
}

.about-outcome strong {
  color: rgba(11, 43, 45, 0.92);
  font-weight: 600;
}

.section-label {
  color: rgba(24, 73, 77, 0.78);
}

.about-toc {
  display: block; /* важно: не flex */
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 0;

  position: relative;
  padding-bottom: 6px; /* место под линию */

  /* сдвиг вправо, как у контента ниже */
  padding-left: 28px; /* поставь ровно как у твоих секций */
  padding-right: 28px;
}

.about-toc::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 0;
  bottom: 0;
  height: 1px;

  /* слева видно, справа уходит в туман */
  background: linear-gradient(
    to right,
    rgba(11, 43, 45, 0.18) 0%,
    rgba(11, 43, 45, 0.14) 45%,
    rgba(11, 43, 45, 0) 100%
  );
}

.about-why:target,
.about-section:target {
  scroll-margin-top: 90px; /* если хедер липкий */
  outline: 1px solid rgba(11, 43, 45, 0.1);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.about-toc-caption {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 43, 45, 0.55);

  margin: 0 0 10px; /* вот этот отступ вниз решает “прилипание” */
  line-height: 1.1; /* чтобы не было лишней высоты */
}

.about-toc-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0; /* расстояние между блоками (не дорожкой) */
  padding: 0;
  margin: 0;
  align-items: center;
}

/* ссылки — просто текст, без бордеров */
.about-toc-link {
  color: rgba(11, 43, 45, 0.78);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 2px 0; /* маленький “клик-лейн”, но без видимой кнопки */
  position: relative;
}

.about-toc-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: transparent;
  border-radius: 2px;
}

.about-toc-link:hover::after {
  background: rgba(11, 43, 45, 0.16);
}

.about-toc-link:hover {
  color: rgba(11, 43, 45, 0.92);
  /* text-decoration: underline;*/
  text-underline-offset: 4px;
}

.about-toc-link:focus-visible {
  outline: 2px solid rgba(235, 202, 106, 0.55);
  outline-offset: 4px;
  border-radius: 6px;
}

/* дорога: рисуем separator ПОСЛЕ каждого li, кроме последнего */
.about-toc-list li {
  display: flex;
  align-items: center;
}

.about-toc-list li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 26px; /* длина дорожки */
  height: 12px;
  margin: 0 4px; /* отступы от слов */

  /* линия + точка-город */
  /* ВАЖНО: точка — НЕпрозрачная, линия — тонкая и светлее */
  background: radial-gradient(circle, #b9c8c7 0 3px, transparent 4px)
      center/12px 12px no-repeat,
    linear-gradient(
        to right,
        transparent 0,
        rgba(11, 43, 45, 0.18) 18%,
        rgba(11, 43, 45, 0.18) 82%,
        transparent 100%
      )
      center/100% 1px no-repeat;

  opacity: 0.9;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-row .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px; /* чтобы по высоте было похоже на кнопку */
  color: rgba(11, 43, 45, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 43, 45, 0.18);
}

.cta-row .cta-link:hover {
  color: rgba(11, 43, 45, 0.95);
  border-bottom-color: rgba(11, 43, 45, 0.35);
}

/* === кнопка Отправить сообщение ======= */

/* кнопка отправки в форме */
.btn-send {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 43, 45, 0.16);
  color: rgba(11, 43, 45, 0.92);

  backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);

  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.btn-send:hover {
  border-color: rgba(11, 43, 45, 0.22);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.btn-send:active {
  transform: translateY(0);
}

/* ===== кнопки СТА ======= */

/* Контейнер теперь статический, под слайдером */
.bottom {
  width: 100%;
  margin: 0 auto;
  display: flex; /* Меняем grid на flex для центровки */
  justify-content: center;
  padding: calc(80 * var(--u)) 0 calc(80 * var(--u));
  position: relative;
  z-index: 50;
}

.cta-pill {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: transparent;
  --cut: 20px;
  --sea: rgba(27, 92, 89, 0.2); /* Твой морской цвет */

  position: relative;
  overflow: hidden; /* обрезает вылезший шов */
  border-radius: 999px; /* чтобы обрезка совпала с капсулой */
  isolation: isolate; /* фиксит странности z-index/blur */
}

.cta-pill button {
  border: 0;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(13px, calc(15 * var(--u)), 17px);
  padding: clamp(10px, calc(12 * var(--u)), 16px)
    clamp(15px, calc(29 * var(--u)), 40px);
  min-width: calc(235 * var(--u));
  transition: all 0.3s ease;
  position: relative;
}

/* ЛЕВАЯ КНОПКА: Морская штриховка + красный контур */
.cta-pill button[data-cta="website"] {
  /* Морская штриховка и градиент вместо красного */
  background: linear-gradient(to right, transparent 99%, var(--sea) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(27, 92, 89, 0.08),
      rgba(27, 92, 89, 0.08) 1px,
      transparent 1px,
      transparent 6px
    ),
    rgba(255, 255, 255, 0.5); /* Фон кальки */

  color: var(--accent); /* Текст красный, как на навигации */

  /* Наши "чертежные" границы */
  border-left: 1.5px solid var(--accent);
  border-top: 1.5px dashed var(--accent);
  border-bottom: 1.5px solid var(--accent);
  border-right: none; /* Источник блика в покое */
  z-index: 3;
  margin-right: calc(-1 * var(--cut) + 1px);
  border-radius: 999px 0 0 999px;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);

  /* Блик теперь более мягкий и морской */
  box-shadow: 15px 0 30px -5px rgba(27, 92, 89, 0.2);
}

/* ПРАВАЯ КНОПКА: Чистое морское стекло */
.cta-pill button[data-cta="qa"] {
  /* Твой стиль морского стекла из навигации */
  background: linear-gradient(
    to left,
    rgba(27, 92, 89, 0.15),
    rgba(27, 92, 89, 0.05)
  );
  backdrop-filter: blur(15px) saturate(120%);
  -webkit-backdrop-filter: blur(15px) saturate(120%);

  color: var(--text);
  border: 1px solid rgba(27, 92, 89, 0.2);
  border-radius: 0 999px 999px 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%);

  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(27, 92, 89, 0.1);
}

/* Ховеры */
.cta-pill button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  /*  z-index: 10; hover-кнопка всегда поверх стыка */
}

.cta-pill button[data-cta="website"]:hover {
  background: linear-gradient(to right, transparent 40%, var(--sea) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(27, 92, 89, 0.12) 0 1px,
      transparent 1px 4px
    ),
    rgba(255, 255, 255, 0.7);
}

.about-hero-cta {
  padding-top: 2px; /* или 3px, если нужно */
}

.cta-book {
  align-self: center;

  padding-left: 20px;
  margin-top: 10px;
  display: block;
  justify-content: center;
  align-items: center;
}

/* Compact variant for team card / about block */
.cta-pill.cta-pill--compact {
  width: fit-content;
  margin: 14px auto 0; /* центрируем как блок */
}

/* чуть меньше размеры именно в compact */
.cta-pill.cta-pill--compact button {
  /* ВАЖНО: вместо фиксированного min-width */
  min-width: clamp(170px, 22vw, 220px);

  /* более “стройная” посадка */
  padding: clamp(10px, 1.1vw, 14px) clamp(16px, 2.2vw, 28px);

  /* чтобы текст не ломал композицию */
  white-space: nowrap;
}

/* ABOUT hero CTA: не сжимаем слишком рано */
.page-about .about-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;

  /* ВАЖНО: локально делаем u «крупнее», чтобы пилюля не ужималась на 551px */
  --u: clamp(0.65px, 100vw / 1200, 1px);
}

/* На очень широких — можно 4, как на Home */
@media (min-width: 1200px) {
  .about-why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .about-us {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive */
@media (max-width: 900px) {
  .about-page {
    padding: 18px 14px 44px;
  }

  .about-contact {
    grid-template-columns: 1fr;
  }
  .cta-pill.cta-pill--compact button {
    min-width: 160px;
    padding: 10px 6px;
  }
}

@media (max-width: 800px) {
  .contact-block {
    grid-template-columns: 1fr;
  }
}

/* На ~480 перестраиваем: ссылку вниз и по центру */
@media (max-width: 768px) {
  .page-about .about-hero-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-about .about-hero-actions .cta-book {
    flex: 0 0 100%;
    text-align: center;
    margin-top: 10px;
  }

  /* ============================
   ABOUT HERO: CTA sizing fix
   (don’t shrink too early)
   ============================ */

  /* hero container already wraps, keep it */
  .page-about .about-hero-cta {
    gap: 2px; /* чуть больше воздуха, чем 2px */
  }

  .cta-pill.cta-pill--compact button {
    min-width: 130px;
    padding: 10px 6px;
  }

  /* ghost link: no forced top offset when it sits in the same row */
  .page-about .about-hero-cta .cta-book {
    margin-top: 0;
    padding-left: 16px;
  }
}

/* 4) На узких экранах делаем ещё прозрачнее (как ты и хотела) */
/* Узкие экраны: больше уводим вправо и делаем прозрачнее */
@media (max-width: 700px) {
  .about-hero-inner::after {
    opacity: 0.2;
    background-size: clamp(320px, 160vw, 360px) auto;

    /* ещё сильнее “прячем” вправо */
    background-position: calc(100% + 0px) 2%;
  }
}

/* На телефонах — 1 колонка */
@media (max-width: 640px) {
  .about-page {
    padding: 22px 10px 24px;
  }

  .about-why-grid {
    grid-template-columns: 1fr;
  }
  .about-us {
    grid-template-columns: 1fr;
  }

  .cta-pill.cta-pill--compact button {
    min-width: 170px;
    padding: 10px 6px;
  }
}

/* С ~520 можно начинать ужимать */
@media (max-width: 520px) {
  .page-about .about-hero-actions {
    --u: clamp(0.45px, 100vw / 1600, 1px);
  }
}

/* only when реально узко — складываем вниз и центрируем */
@media (max-width: 480px) {
  .page-about .about-hero-cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-about .about-hero-cta .cta-book {
    padding: 10px 0;
    margin-top: 0px;
  }
}
