/* ─────────────────────────────────────────────
   Titov Taplink — Frontend Styles
   ───────────────────────────────────────────── */

:root {
  --tt-bg:          #f7f2ec;
  --tt-card:        #ffffff;
  --tt-text:        #24211f;
  --tt-muted:       #726a64;
  --tt-dark:        #1f2527;
  --tt-accent:      #9d7a5f;
  --tt-accent-soft: #efe3d8;
  --tt-line:        #e4d8cd;
  --tt-sh:          0 8px 32px rgba(67,52,41,.11);
}

/* Wrapper — создайте страницу без боковых панелей */
.tt-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
/* Если используете Page Builder — добавьте класс tt-wrap на row/container */

/* ── ПРОФИЛЬ ── */
.tt-profile {
  text-align: center;
  padding: 30px 22px 24px;
  background: var(--tt-card);
  border-radius: 32px;
  box-shadow: var(--tt-sh);
  border: 1px solid rgba(93,72,58,.09);
  position: relative;
  overflow: hidden;
}
.tt-profile::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,170,146,.4), transparent 65%);
  pointer-events: none;
}
.tt-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tt-dark), var(--tt-accent));
  margin: 0 auto 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
  font-size: 34px; color: #fff;
  box-shadow: 0 8px 28px rgba(157,122,95,.32);
  position: relative; z-index: 1;
  overflow: hidden;
}
.tt-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tt-profile-name {
  font-family: Georgia, serif; font-size: 23px; font-weight: 600;
  color: var(--tt-dark); margin-bottom: 4px; position: relative; z-index: 1;
}
.tt-profile-role {
  font-size: 13px; font-weight: 600; color: var(--tt-accent);
  letter-spacing: .04em; margin-bottom: 10px; position: relative; z-index: 1;
}
.tt-profile-tags {
  display: flex; gap: 7px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 15px; position: relative; z-index: 1;
}
.tt-tag {
  font-size: 12px; font-weight: 700;
  background: var(--tt-accent-soft); color: var(--tt-accent);
  padding: 5px 11px; border-radius: 999px;
}
.tt-profile-stats {
  display: flex; background: var(--tt-bg);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--tt-line); position: relative; z-index: 1;
}
.tt-stat {
  flex: 1; padding: 13px 6px; text-align: center;
  border-right: 1px solid var(--tt-line);
}
.tt-stat:last-child { border-right: none; }
.tt-stat-val { font-size: 19px; font-weight: 900; color: var(--tt-dark); line-height: 1; letter-spacing: -.04em; }
.tt-stat-lab { font-size: 10px; font-weight: 700; color: var(--tt-muted); margin-top: 3px; line-height: 1.3; }

/* ── БЫСТРЫЕ ИКОНКИ ── */
.tt-quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tt-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: var(--tt-card); border: 1px solid rgba(93,72,58,.1); border-radius: 18px;
  padding: 14px 8px 12px; text-decoration: none; color: var(--tt-text);
  box-shadow: var(--tt-sh); transition: all .22s ease;
}
.tt-quick-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(67,52,41,.14); }
.tt-qi {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--tt-accent-soft);
}
.tt-quick-label { font-size: 11px; font-weight: 700; color: var(--tt-muted); text-align: center; line-height: 1.2; }

/* ── МЕТКА РАЗДЕЛА ── */
.tt-section-label {
  font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--tt-muted); padding: 0 4px; margin-top: 5px;
}

/* ── КНОПКА-ССЫЛКА ── */
.tt-link-btn {
  display: flex; align-items: center; gap: 13px;
  background: var(--tt-card); border: 1px solid rgba(93,72,58,.1); border-radius: 20px;
  padding: 15px 17px; text-decoration: none; color: var(--tt-text);
  box-shadow: var(--tt-sh); transition: all .22s ease;
}
.tt-link-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 42px rgba(67,52,41,.14); border-color: rgba(157,122,95,.28); }
.tt-link-btn.tt-primary { background: linear-gradient(135deg, #1f2527, #3b332f); border: none; }
.tt-link-btn.tt-primary .tt-link-title { color: #fff; }
.tt-link-btn.tt-primary .tt-link-sub   { color: rgba(255,255,255,.55); }
.tt-link-btn.tt-primary .tt-link-arrow { color: rgba(255,255,255,.4); }
.tt-link-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; flex-shrink: 0; background: var(--tt-accent-soft);
}
.tt-link-btn.tt-primary .tt-link-icon { background: rgba(255,255,255,.15); }
.tt-link-text { flex: 1; }
.tt-link-title { font-size: 15px; font-weight: 800; color: var(--tt-dark); display: block; }
.tt-link-sub   { font-size: 12px; font-weight: 600; color: var(--tt-muted); margin-top: 2px; display: block; }
.tt-link-arrow { color: var(--tt-muted); font-size: 17px; flex-shrink: 0; }

/* ── СПЕЦИАЛИЗАЦИИ ── */
.tt-services-mini {
  background: var(--tt-card); border: 1px solid rgba(93,72,58,.1); border-radius: 22px;
  padding: 18px; box-shadow: var(--tt-sh);
}
.tt-mini-title {
  font-size: 12px; font-weight: 800; color: var(--tt-accent);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; display: block;
}
.tt-svc-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.tt-svc-pill {
  font-size: 12px; font-weight: 700;
  background: var(--tt-bg); border: 1px solid var(--tt-line);
  color: var(--tt-text); padding: 7px 13px; border-radius: 999px;
}

/* ── КАРУСЕЛЬ (база) ── */
.tt-carousel-wrap {
  background: var(--tt-card); border: 1px solid rgba(93,72,58,.1); border-radius: 22px;
  padding: 18px; box-shadow: var(--tt-sh); overflow: hidden;
}
.tt-carousel-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.tt-car-dots { display: flex; gap: 5px; align-items: center; }
.tt-car-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tt-line); transition: all .25s; cursor: pointer;
}
.tt-car-dot.active { background: var(--tt-accent); width: 18px; border-radius: 3px; }

/* ── КАРУСЕЛЬ ДО/ПОСЛЕ ── */
.tt-ba-track-outer { overflow: hidden; }
.tt-ba-track { display: flex; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.tt-ba-slide { min-width: 100%; padding: 0 2px; }
.tt-ba-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  border-radius: 14px; overflow: hidden; height: 220px;
}
.tt-ba-before,
.tt-ba-after {
  display: flex; align-items: flex-end; padding: 10px;
  position: relative;
}
.tt-ba-before { background: linear-gradient(135deg, #b3a49a, #8a7a70); }
.tt-ba-after  { background: linear-gradient(135deg, #c9aa92, #9d7a5f); }
.tt-ba-label {
  font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.3); padding: 4px 9px; border-radius: 999px;
}
.tt-ba-info { background: var(--tt-bg); padding: 11px 13px; margin-top: 3px; border-radius: 12px; }
.tt-ba-op   { font-size: 13px; font-weight: 800; color: var(--tt-dark); }
.tt-ba-note { font-size: 11px; color: var(--tt-muted); margin-top: 3px; }
.tt-ba-nav, .tt-rv-nav {
  display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
}
.tt-ba-nav-btn, .tt-rv-nav-btn {
  background: none; border: 1px solid var(--tt-line); border-radius: 999px;
  width: 34px; height: 34px; cursor: pointer; font-size: 16px; color: var(--tt-muted);
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.tt-ba-nav-btn:hover, .tt-rv-nav-btn:hover {
  background: var(--tt-accent-soft); border-color: var(--tt-accent); color: var(--tt-accent);
}
.tt-ba-ig-link, .tt-rv-source-link {
  font-size: 12px; font-weight: 700; color: var(--tt-accent); text-decoration: none;
}
.tt-ba-ig-link:hover, .tt-rv-source-link:hover { text-decoration: underline; }

/* ── КАРУСЕЛЬ ОТЗЫВОВ ── */
.tt-rv-track-outer { overflow: hidden; }
.tt-rv-track { display: flex; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.tt-rv-slide { min-width: 100%; padding: 0 2px; }
.tt-rv-card {
  background: var(--tt-bg); border-radius: 16px; padding: 16px;
}
.tt-rv-stars { color: #b99166; font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; }
.tt-rv-text  { font-size: 13px; font-style: italic; color: var(--tt-text); line-height: 1.62; margin-bottom: 11px; }
.tt-rv-author { font-size: 11px; font-weight: 800; color: var(--tt-muted); }

/* ── АДРЕС ── */
.tt-address-card {
  background: var(--tt-card); border: 1px solid rgba(93,72,58,.1); border-radius: 22px;
  padding: 18px; box-shadow: var(--tt-sh);
  display: flex; gap: 13px; align-items: center;
  text-decoration: none; color: var(--tt-text); transition: .22s;
}
.tt-address-card:hover { transform: translateY(-2px); }
.tt-map-icon {
  width: 44px; height: 44px; border-radius: 13px; background: #f0f4e8;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.tt-addr-t strong { display: block; font-size: 14px; font-weight: 800; color: var(--tt-dark); }
.tt-addr-t span   { font-size: 12px; color: var(--tt-muted); }

/* ── СОЦСЕТИ ── */
.tt-social-links,
.tt-review-links { display: flex; flex-direction: column; gap: 10px; }

/* Platform icon backgrounds */
.tt-si-vk        { background: #e8eeff; }
.tt-si-instagram  { background: #fde8f2; }
.tt-si-telegram   { background: #e5f3fb; }
.tt-si-max        { background: #f0e8fd; }
.tt-si-whatsapp   { background: #e7f7ee; }
.tt-si-youtube    { background: #fde8e8; }
.tt-si-tiktok     { background: #f0f0f0; }
.tt-si-custom     { background: var(--tt-accent-soft); }

/* ── КАРТА ── */
.tt-map-block {
  background: var(--tt-card);
  border: 1px solid rgba(93,72,58,.1);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--tt-sh);
  overflow: hidden;
}
.tt-map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tt-map-header-left { flex: 1; }
.tt-map-header-left .tt-mini-title { margin-bottom: 4px; }
.tt-map-address {
  font-size: 13px;
  font-weight: 600;
  color: var(--tt-dark);
}
.tt-map-route-btn,
.tt-map-route-btn-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--tt-accent);
  background: var(--tt-accent-soft);
  border: 1px solid rgba(157,122,95,.25);
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: .2s;
  flex-shrink: 0;
}
.tt-map-route-btn:hover {
  background: var(--tt-accent);
  color: #fff;
  border-color: var(--tt-accent);
}
.tt-map-frame-wrap {
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
}
.tt-map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 14px;
}
.tt-map-placeholder {
  width: 100%; height: 100%;
  background: var(--tt-bg);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--tt-muted);
  font-weight: 600;
}
.tt-map-note {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tt-muted);
  background: var(--tt-bg);
  border-radius: 10px;
  padding: 9px 13px;
  line-height: 1.5;
}
