/* ПО ПУТИ · Дизайн-система v1.5 (макет для согласования) · 01.11.2026
   Единый стиль публичных CTA, фото-карточек и фирменных бейджей.
   НЕ затрагивает календарь, оплату, брони, админку и структуру страниц. */
:root {
  --pp-deep: #075b56;
  --pp-deeper: #064944;
  --pp-hover: #0a736a;
  --pp-milk: #f6fbf7;
  --pp-line: #a9cfc4;
  --pp-focus: #81d8c8;
  --pp-btn-radius: 10px;
  --pp-btn-shadow: 0 5px 13px rgba(3,54,48,.14);
}
/* Все основные действия оформлены единообразно, без псевдо-бликов. */
a.button,
a.gt-feature-action,
a.gt-primary {
  display: inline-flex;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 17px;
  border: 1px solid rgba(231,255,246,.52);
  border-radius: var(--pp-btn-radius);
  background: linear-gradient(145deg,#0b7168,#075b56 75%,#06514c);
  box-shadow: var(--pp-btn-shadow);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: .005em;
  text-shadow: none;
  text-decoration: none;
  transition: background-color .2s ease, transform .18s ease,box-shadow .2s ease;
}
a.button:hover,
a.gt-feature-action:hover,
a.gt-primary:hover {
  background: linear-gradient(145deg,#0c8477,#0a665f 76%,#06564f);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 9px 19px rgba(3,54,48,.18);
}
a.button:active,
a.gt-feature-action:active,
a.gt-primary:active {transform: translateY(1px);box-shadow:0 2px 6px rgba(3,54,48,.15)}
a.button:focus-visible,
a.gt-feature-action:focus-visible,
a.gt-primary:focus-visible,
a.header-contact:focus-visible,
a.contact-secondary:focus-visible {outline: 3px solid var(--pp-focus);outline-offset:3px;}
/* Стрелки из предыдущих решений не показываем, не меняя текст ссылок и JS. */
a.button > [aria-hidden="true"],
a.booking-cta > [aria-hidden="true"],
a.gt-feature-action > [aria-hidden="true"],
a.gt-primary > [aria-hidden="true"],
a.header-contact > [aria-hidden="true"] {display:none!important;}
/* Внутренние страницы: кнопки в боковой карточке не гигантские. */
.booking-box a.button {width:100%;min-height:44px;padding:11px 14px;font-size:13px;}
.booking-box a.button:not(.booking-now) {background:var(--pp-milk);border-color:var(--pp-line);color:var(--pp-deep);box-shadow:none;}
.booking-box a.button:not(.booking-now):hover {background:#e8f6ee;color:var(--pp-deeper);}
/* Верхний пункт CTA теперь такой же secondary, а не плашка-капсула. */
a.header-contact {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:0;
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--pp-line);
  border-radius:var(--pp-btn-radius);
  background:var(--pp-milk);
  color:var(--pp-deep);
  font-size:12px;
  line-height:1.4;
  font-weight:600;
  box-shadow:0 2px 8px rgba(8,77,67,.04);
  transition:background-color .2s ease, transform .18s ease,box-shadow .2s ease;
}
a.header-contact:hover {transform:translateY(-2px);background:#e9f5ee;box-shadow:0 5px 13px rgba(8,77,67,.09);color:var(--pp-deep);}
a.header-contact:active{transform:translateY(1px)}
/* Вторичное действие в подвале. */
a.contact-secondary {border-radius:var(--pp-btn-radius);}
/* Фото карточки — единая геометрия, без сильного затемнения всего кадра. */
.tour-card .tour-photo {position:relative;isolation:isolate;border-radius:10px;overflow:hidden;}
.tour-card .tour-photo .tour-image {display:block;border-radius:inherit;}
.tour-card .tour-photo::after {height:40%;background:linear-gradient(to bottom,transparent,rgba(4,33,30,.23));z-index:1;pointer-events:none;}
/* Главный CTA — ВЕРХНИЙ ПРАВЫЙ угол. Не изменяем data-book-tour и href. */
body .tour-card .tour-photo a.booking-cta {
  position:absolute;
  top:14px;
  right:14px;
  bottom:auto;
  left:auto;
  transform:none;
  z-index:4;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  box-sizing:border-box;
  width:max-content;
  max-width:calc(100% - 28px);
  min-height:40px;
  margin:0;
  padding:9px 14px;
  border-radius:var(--pp-btn-radius);
  border:1px solid rgba(238,255,249,.55);
  background:linear-gradient(145deg,#0b7168,#075b56 75%,#06514c);
  box-shadow:0 5px 15px rgba(0,38,34,.27);
  color:white;
  font-size:12.5px;
  font-weight:600;
  line-height:1.25;
  letter-spacing:0;
  text-shadow:none;
  white-space:normal;
  overflow:visible;
  isolation:auto;
  transition:background .2s ease,transform .18s ease,box-shadow .2s ease;
}
body .tour-card .tour-photo a.booking-cta::before,
body .tour-card .tour-photo a.booking-cta::after {content:none!important;display:none!important;}
body .tour-card .tour-photo a.booking-cta:hover {
  transform:translateY(-2px);
  background:linear-gradient(145deg,#0d8477,#096b63 76%,#065b53);
  box-shadow:0 9px 19px rgba(0,38,34,.30);
  color:white;
}
body .tour-card .tour-photo a.booking-cta:active {transform:translateY(1px);box-shadow:0 3px 7px rgba(0,38,34,.24);}
body .tour-card .tour-photo a.booking-cta:focus-visible {outline:3px solid white;outline-offset:3px;}
/* Сменяющаяся надпись — НИЖНИЙ ЛЕВЫЙ угол, компактная не круглая. */
body .tour-card .tour-photo .image-label.photo-glass-label,
body .tour-grid--three .tour-card .tour-photo .image-label.photo-glass-label {
  position:absolute;
  left:14px;
  bottom:14px;
  right:auto;
  top:auto;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:8px;
  box-sizing:border-box;
  width:max-content;
  max-width:calc(100% - 28px);
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.82);
  border-radius:var(--pp-btn-radius);
  background:rgba(245,252,247,.90);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:0 4px 11px rgba(0,40,34,.14);
  color:#155b54;
  font-size:11px;
  font-weight:550;
  line-height:1.3;
  text-align:left;
  pointer-events:none;
}
.tour-card .photo-label-pin {color:#197b70;width:14px;height:14px;flex-basis:14px;}
/* Медовые: тот же primary, но компактный, без огромной капсулы. */
body a.gt-feature-action,
body a.gt-primary {
  border-radius:var(--pp-btn-radius);
  box-shadow:var(--pp-btn-shadow);
  padding:11px 18px;
  min-height:44px;
  width:fit-content;
  max-width:100%;
  gap:0;
  font-size:13px;
  line-height:1.3;
}
body a.gt-feature-action:hover,body a.gt-primary:hover{box-shadow:0 9px 19px rgba(3,54,48,.18)}
/* Метки сборной не должны выглядеть кнопками с огромным округлением. */
.gt-feature-tags span,.gt-pills span,.gt-feature-glass {border-radius:10px;}
.gt-feature-bottom {align-items:center;}
/* На внутренних страницах даём тексту более свободное поле слева,
   при этом не меняем сетку и фиксированную ширину контейнеров. */
.route-main {padding-left:clamp(12px,1.4vw,22px);padding-right:clamp(12px,1.4vw,22px);}
.gt-route-page {padding-left:clamp(12px,1.4vw,22px);padding-right:clamp(12px,1.4vw,22px);}
/* При увеличении изображения ничего не должно заслонять CTA. */
@media(max-width:650px) {
  body .tour-card .tour-photo a.booking-cta {top:12px;right:12px;bottom:auto;left:auto;width:max-content;max-width:calc(100% - 24px);min-height:39px;padding:9px 12px;font-size:12px;}
  body .tour-card .tour-photo .image-label.photo-glass-label,
  body .tour-grid--three .tour-card .tour-photo .image-label.photo-glass-label {top:auto;bottom:12px;left:12px;max-width:calc(100% - 24px);padding:8px 10px;font-size:10.5px;}
  body a.gt-feature-action,body a.gt-primary {width:fit-content;max-width:100%;min-height:43px;}
  body a.button{min-height:43px;}
  .gt-feature-bottom {align-items:flex-start;}
}
@media(max-width:360px){
  body .tour-card .tour-photo a.booking-cta {max-width:calc(100% - 24px);font-size:11.5px;padding:8px 10px;}
  body .tour-card .tour-photo .image-label.photo-glass-label {font-size:10px;}
}
@media(prefers-reduced-motion:reduce){
  a.button,a.gt-feature-action,a.gt-primary,a.header-contact,a.booking-cta{transition:none!important;}
  a.button:hover,a.gt-feature-action:hover,a.gt-primary:hover,a.header-contact:hover,body .tour-card .tour-photo a.booking-cta:hover {transform:none;}
}
