/*!
 * Куки-баннер Titan Remont
 * Дизайн — по прототипу cookie-banner-demo.html.
 * Классы префиксованы tr-cc- во избежание конфликтов с CSS сайта.
 */

.tr-cc-layer {
  --tr-cc-ink: #262626;
  --tr-cc-surface: #ffffff;
  --tr-cc-soft: #f4f1ee;
  --tr-cc-line: #ded8d2;
  --tr-cc-orange: #ee9253;
  --tr-cc-orange-dark: #c96e34;
  --tr-cc-focus: #0b2349;

  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: flex-end;
  padding: clamp(10px, 2vw, 28px);
  background: rgba(8, 8, 8, .42);
  color: var(--tr-cc-ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tr-cc-layer.is-open { display: flex; }

.tr-cc-layer *,
.tr-cc-layer *::before,
.tr-cc-layer *::after { box-sizing: border-box; }

.tr-cc-panel {
  width: min(1180px, 100%);
  max-height: calc(100vh - 20px);
  margin: 0 auto;
  overflow: auto;
  background: var(--tr-cc-surface);
  border-radius: 16px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
  animation: tr-cc-panel-in .42s cubic-bezier(.22, 1, .36, 1) both;
}

.tr-cc-panel:focus { outline: none; }

@keyframes tr-cc-panel-in {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}

.tr-cc-screen { padding: clamp(22px, 3vw, 40px); }
.tr-cc-screen[hidden] { display: none; }

.tr-cc-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
  color: var(--tr-cc-ink);
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-transform: none;
}

.tr-cc-title::before,
.tr-cc-title::after { content: none; }

.tr-cc-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  margin: 0;
  vertical-align: middle;
}

.tr-cc-intro {
  max-width: 980px;
  margin: 0;
  color: #4b4845;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.6;
}

.tr-cc-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 22px 0 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tr-cc-line);
}

.tr-cc-legal a,
.tr-cc-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--tr-cc-orange-dark);
  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.tr-cc-legal a:hover,
.tr-cc-more:hover {
  color: var(--tr-cc-orange-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tr-cc-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tr-cc-choice {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  color: var(--tr-cc-ink);
  background: #fff;
  border: 1px solid var(--tr-cc-line);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  text-transform: none;
  font-family: inherit;
  font-size: 16px;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.tr-cc-choice:hover {
  transform: translateY(-2px);
  border-color: var(--tr-cc-orange);
  background: #fffaf6;
}

.tr-cc-choice--primary {
  color: #1f1813;
  background: var(--tr-cc-orange);
  border-color: var(--tr-cc-orange);
}

.tr-cc-choice--primary:hover { background: #f2a16a; }

.tr-cc-choice-copy { display: grid; gap: 2px; }
.tr-cc-choice-copy strong { color: inherit; font-size: 16px; font-weight: 700; line-height: 1.25; }
.tr-cc-choice-copy small { color: inherit; font-size: 12px; font-weight: 400; line-height: 1.3; opacity: .76; }

.tr-cc-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #69645f;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.tr-cc-settings { display: grid; gap: 14px; margin-top: 24px; }

.tr-cc-setting {
  padding: 22px 24px;
  background: var(--tr-cc-soft);
  border: 0;
  border-radius: 14px;
}

.tr-cc-setting-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.tr-cc-setting h3 {
  margin: 0 0 7px;
  padding: 0;
  color: var(--tr-cc-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.tr-cc-setting h3::before,
.tr-cc-setting h3::after { content: none; }

.tr-cc-setting p {
  max-width: 960px;
  margin: 0;
  color: #57524d;
  font-size: 14px;
  line-height: 1.55;
}

.tr-cc-setting .tr-cc-more { margin-top: 14px; }

.tr-cc-switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.tr-cc-switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.tr-cc-switch-track {
  position: absolute;
  inset: 0;
  background: #b6aea7;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease;
}

.tr-cc-switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
  transition: transform .18s ease;
}

.tr-cc-switch input:checked + .tr-cc-switch-track { background: var(--tr-cc-orange); }
.tr-cc-switch input:checked + .tr-cc-switch-track::after { transform: translateX(22px); }

.tr-cc-settings-footer {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  margin-top: 26px;
  border-top: 1px solid var(--tr-cc-line);
}

.tr-cc-settings-heading { display: flex; align-items: center; }

.tr-cc-apply {
  min-width: 230px;
  min-height: 52px;
  margin: 0;
  padding: 12px 24px;
  color: #201810;
  background: var(--tr-cc-orange);
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  transition: background .18s ease, transform .18s ease;
}

.tr-cc-apply:hover { background: #f2a16a; transform: translateY(-1px); }

.tr-cc-layer button:focus-visible,
.tr-cc-layer a:focus-visible,
.tr-cc-switch input:focus-visible + .tr-cc-switch-track {
  outline: 3px solid var(--tr-cc-focus);
  outline-offset: 3px;
}

/* Блокировка прокрутки страницы под баннером */
html.tr-cc-locked,
html.tr-cc-locked body { overflow: hidden !important; }

/* Ссылка «Настройки куки» в футере */
.tr-cc-footer-link {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.tr-cc-footer-link:hover { text-decoration: none; }

@media (max-width: 800px) {
  .tr-cc-layer { padding: 8px; }
  .tr-cc-panel { border-radius: 14px; max-height: calc(100vh - 16px); }
  .tr-cc-screen { padding: 22px 18px; }
  .tr-cc-actions { grid-template-columns: 1fr; }
  .tr-cc-choice { min-height: 64px; }
  .tr-cc-legal { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-cc-layer *,
  .tr-cc-layer *::before,
  .tr-cc-layer *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
