/* ===== timer.css ===== */
/* ===== ОБРАТНЫЙ ОТСЧЁТ — «неоновое табло» ===== */
.timer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)) padding-box,
    linear-gradient(120deg, transparent 18%, var(--gold-line) 46%, transparent 74%) border-box;
  border: 1px solid transparent;
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, 120% 0;
  animation: timerCardShine 7s linear infinite;
}

@keyframes timerCardShine {
  0%   { background-position: 0 0, 120% 0; }
  100% { background-position: 0 0, -160% 0; }
}

/* кольцо-прогресс: декоративный индикатор над цифрами */
.timer-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.timer-ring::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 172px;
  height: 172px;
  margin: -86px 0 0 -86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.16), transparent 66%);
  filter: blur(6px);
  animation: timerGlow 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes timerGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.96); }
  50%      { opacity: 1; transform: scale(1.05); }
}

.timer-ring svg {
  position: relative;
  width: 188px;
  height: 188px;
  transform: rotate(-90deg);
}

.ring-track,
.ring-value {
  fill: none;
  stroke-width: 3;
}

.ring-track {
  stroke: var(--line-strong);
}

.ring-value {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.9s var(--ease);
  filter: drop-shadow(0 0 9px rgba(201, 168, 106, 0.6));
}

/* цифровое табло: горизонтальный ряд светящихся плиток */
.timer-cells {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.timer-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 76px;
  padding: 12px 10px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 18px rgba(0, 0, 0, 0.35);
  line-height: 1;
}

.timer-value {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.6vw, 50px);
  font-weight: 800;
  line-height: 1;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: linear-gradient(180deg, #fdf6e3, var(--gold-bright) 45%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(201, 168, 106, 0.6));
}

.timer-label {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* пульсирующие двоеточия между плитками */
.timer-cell:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-62%);
  color: var(--gold-bright);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 14px rgba(230, 201, 138, 0.9);
  animation: timerColon 1s steps(1) infinite;
}

@keyframes timerColon {
  50% { opacity: 0.25; }
}

.timer-status {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* «Перебор» цифр: цифры мелькают перед фиксацией значения */
.timer-value.scrambling {
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(201, 168, 106, 0.65);
  animation: timerFlicker 0.06s steps(2) infinite;
}

@keyframes timerFlicker {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

/* режим «досчитали»: праздничное золото вместо красного */
body.timer-zero .timer-value {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--gold-bright);
  animation: timerZeroGlow 1.6s ease-in-out infinite;
}

body.timer-zero .ring-value {
  stroke: var(--gold-bright);
}

@keyframes timerZeroGlow {
  0%, 100% { opacity: 1; text-shadow: 0 0 16px rgba(230, 201, 138, 0.55); }
  50%      { opacity: 0.75; text-shadow: 0 0 30px rgba(230, 201, 138, 0.95); }
}

/* адаптив */
@media (max-width: 600px) {
  .timer-ring svg { width: 142px; height: 142px; }
  .timer-ring::before { width: 128px; height: 128px; margin: -64px 0 0 -64px; }
  .timer-cell { min-width: 62px; padding: 10px 8px 8px; }
  .timer-value { font-size: clamp(24px, 7.6vw, 34px); }
  .timer-cell:not(:last-child)::after { right: -9px; font-size: 24px; }
}

/* ===== timeline.css ===== */
/* ===== ЭТАПЫ (таймлайн) ===== */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-line), var(--line) 60%);
}

.tl-item {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 0 0 40px 0;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--faint);
  z-index: 1;
}

.tl-item--done .tl-dot {
  color: var(--teal);
  border-color: rgba(111, 168, 176, 0.5);
}

.tl-item--active .tl-dot {
  color: var(--gold-bright);
  border-color: var(--gold-line);
  background: var(--gold-soft);
  animation: tlPulse 2.2s ease-in-out infinite;
}

.tl-body {
  padding-top: 4px;
}

.tl-title {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 6px;
}

.tl-text {
  color: var(--muted);
  font-size: 15px;
}

@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(201, 168, 106, 0); }
}

/* ===== features.css ===== */
/* ===== «ПОЧЕМУ МЫ» (карточки с 3D-наклоном) ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  transform-style: preserve-3d;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease), opacity 0.8s var(--ease);
  will-change: transform;
}

.feature:hover {
  border-color: var(--gold-line);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 18px;
  transform: translateZ(30px);
}

.feature-title {
  font-size: 21px;
  color: var(--text);
  margin-bottom: 10px;
  transform: translateZ(20px);
}

.feature-text {
  color: var(--muted);
  font-size: 15px;
  transform: translateZ(14px);
}

/* свечение по позиции курсора */
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 168, 106, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.feature:hover::after {
  opacity: 1;
}

/* ===== faq.css ===== */
/* ===== FAQ ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: var(--gold-line);
}

.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q:hover {
  color: var(--gold-bright);
}

.faq-toggle {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold);
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--gold);
  color: #15130e;
  border-color: var(--gold);
}

.faq-a {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ===== join.css ===== */
/* ===== ВСТУПИТЬ (CTA) ===== */
.join-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 32px;
  border-radius: 24px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}

.join-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(201, 168, 106, 0.22), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.join-title {
  font-size: clamp(28px, 5vw, 46px);
  color: var(--text);
  margin: 14px 0 12px;
  position: relative;
}

.join-desc {
  color: var(--muted);
  margin-bottom: 34px;
  position: relative;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  position: relative;
}

.join-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 22px;
  position: relative;
}

.join-divider {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.join-divider-text {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.join-share {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}

.join-clock {
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* ===== weather.css ===== */
/* ===== ПОГОДА ===== */
.block--compact {
  padding: 40px 0 0;
}

.section-head--sm {
  margin-bottom: 28px;
}

.weather-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--panel), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.weather-card:hover {
  border-color: var(--gold-line);
}

.weather-now {
  display: flex;
  align-items: center;
  gap: 16px;
}

.weather-icon {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(201, 168, 106, 0.35));
}

.weather-temp {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.weather-city {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 4px;
}

.weather-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.weather-meta #weatherWind {
  color: var(--faint);
}

/* --- Строка с прогнозом и солнцем --- */
.weather-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.weather-panel {
  padding: 24px;
}

.weather-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.weather-panel-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--faint);
}

.weather-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 34px 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a86a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
}

.weather-select:focus {
  outline: none;
  border-color: var(--gold-line);
}

.weather-select option {
  background: var(--panel-2);
  color: var(--text);
}

.forecast {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.forecast-day:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.forecast-dname {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.forecast-icon {
  font-size: 22px;
}

.forecast-temp {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.forecast-temp small {
  color: var(--faint);
  font-weight: 600;
}

.weather-sun {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.sun-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sun-info-icon {
  font-size: 26px;
  width: 34px;
  text-align: center;
}

.sun-info-value {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.sun-info-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
}

.sun-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (max-width: 900px) {
  .weather-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .weather-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 22px;
  }
  .weather-meta {
    align-items: flex-start;
    text-align: left;
  }
  .forecast {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== clocks.css ===== */
/* ===== МИРОВЫЕ ЧАСЫ ===== */
.clocks-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.clocks-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.clock-face {
  width: 240px;
  height: 240px;
}

.clock-face svg {
  width: 100%;
  height: 100%;
}

.clock-ring {
  fill: rgba(255, 255, 255, 0.02);
  stroke: var(--gold-line);
  stroke-width: 2;
}

.clock-tick {
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-linecap: round;
}

.clock-tick--major {
  stroke: var(--gold);
  stroke-width: 3;
}

.clock-hand {
  stroke-linecap: round;
}

.clock-hand--hour {
  stroke: var(--text);
  stroke-width: 5;
}

.clock-hand--min {
  stroke: var(--text);
  stroke-width: 3.5;
}

.clock-hand--sec {
  stroke: var(--gold-bright);
  stroke-width: 2;
}

.clock-cap {
  fill: var(--gold);
  stroke: var(--bg);
  stroke-width: 2;
}

.clock-digital {
  text-align: center;
}

.clock-time {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(201, 168, 106, 0.25);
  line-height: 1;
}

.clock-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.clock-offset {
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 60px;
  background: var(--gold-soft);
}

.clocks-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clock-my {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line);
  background: linear-gradient(120deg, var(--gold-soft), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.clock-my.is-detected {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(201, 168, 106, 0.2);
}

.clock-my-pin {
  font-size: 18px;
}

.clock-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 8px;
}

.clock-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a86a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.clock-select:hover,
.clock-select:focus {
  border-color: var(--gold-line);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.12);
}

.clock-select option {
  background: var(--panel-2);
  color: var(--text);
}

.clock-select optgroup {
  background: var(--panel-2);
  color: var(--gold-bright);
  font-weight: 800;
}

.clock-select optgroup option {
  font-weight: 400;
}

.clock-actions {
  display: flex;
  margin-top: 6px;
}

.clock-note {
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.55;
}

.clock-event {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.clock-my--status {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.clock-select-row {
  display: flex;
  gap: 10px;
}

.clock-star {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 16px;
}

.clock-star.is-on {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.clock-favs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clock-fav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.clock-fav-name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.clock-fav-time {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.clock-fav-rm {
  border: none;
  background: none;
  color: var(--faint);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.2s;
}

.clock-fav-rm:hover {
  color: var(--danger);
}


@media (max-width: 900px) {
  .clocks-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .clock-face {
    width: 200px;
    height: 200px;
  }
}

/* ===== clocks-converter.css ===== */
/* ===== МИРОВЫЕ ЧАСЫ — конвертер времени ===== */
/* --- Конвертер --- */
.clock-extras {
  margin-top: 20px;
}

.converter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.converter-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--faint);
}

.converter-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.converter-arrow {
  color: var(--gold);
  font-size: 18px;
}

.converter-result {
  color: var(--muted);
  font-size: 15px;
  min-height: 22px;
}

.converter-result b {
  color: var(--gold-bright);
  font-weight: 800;
}

@media (max-width: 600px) {
  .converter-row {
    grid-template-columns: 1fr;
  }
  .converter-arrow {
    transform: rotate(90deg);
    text-align: center;
  }
}

/* ===== directions.css ===== */
/* ===== НАПРАВЛЕНИЯ (3D-флип карточки) ===== */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flip {
  perspective: 900px;
  height: 240px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}

.flip:hover .flip-inner,
.flip:focus-within .flip-inner,
.flip.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.flip-front {
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
}

.flip-front:hover {
  border-color: var(--gold-line);
  box-shadow: var(--shadow);
}

.flip-back {
  transform: rotateY(180deg);
  border-color: var(--gold-line);
  background: linear-gradient(150deg, rgba(201, 168, 106, 0.1), var(--panel));
  box-shadow: var(--shadow);
}

.flip-title {
  font-size: 24px;
  color: var(--text);
}

.flip-back p {
  color: var(--muted);
  font-size: 15px;
  max-width: 260px;
}

/* поддержка тача: клик переключает флип */
@media (pointer: coarse) {
  .flip-inner {
    transition-duration: 0.4s;
  }
}

@media (max-width: 900px) {
  .flip-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
  .flip {
    height: 200px;
  }
}

/* ===== community.css ===== */
/* ===== СООБЩЕСТВО ===== */
.community {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.community-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  overflow: hidden;
  position: relative;
}

.community-cta::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  pointer-events: none;
}

.community-cta-title {
  font-size: 26px;
  color: var(--text);
}

.community-cta-text {
  color: var(--muted);
  max-width: 480px;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  position: relative;
}

.community-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  flex: 1;
}

.community-quote .feature-icon {
  font-size: 30px;
}

.community-quote-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  min-height: 44px;
}

.community-note {
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.btn--pulse {
  animation: pulseGlow 2.6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 34px rgba(201, 168, 106, 0.28); }
  50% { box-shadow: 0 10px 40px rgba(201, 168, 106, 0.55); }
}

@media (max-width: 900px) {
  .community {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .community-cta {
    padding: 28px 22px;
  }
}
