@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ea-accent:        #C8A96E;
  --ea-accent-dark:   #8B6914;
  --ea-accent-light:  #E8D5A3;
  --ea-accent-bright: #D4B483;
  --ea-accent-rgb:    200, 169, 110;

  --ea-bg:            #0d0a06;
  --ea-bg2:           #1a1208;
  --ea-bg-rgb:        13, 10, 6;

  --ea-tg:            #0088CC;

  --ea-danger:        rgba(255, 100, 100, 0.9);
  --ea-danger-bg:     rgba(255, 100, 100, 0.12);
  --ea-danger-border: rgba(255, 100, 100, 0.3);
  --ea-success:       #4ade80;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #fff;
}

*:focus-visible {
  outline: 2px solid var(--ea-accent);
  outline-offset: 2px;
}

.t-rec {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ea-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ea-glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ea-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(var(--ea-accent-rgb), 0.15);
  border: 1px solid rgba(var(--ea-accent-rgb), 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ea-accent-light);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ea-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ea-overlay.open { display: flex; }

.ea-modal {
  background: rgba(var(--ea-bg-rgb), 0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.ea-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s;
}
.ea-modal-close:hover { background: rgba(255,255,255,0.13); color: #fff; }

.ea-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
}
.ea-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 1px 0 0;
  accent-color: var(--ea-accent);
  cursor: pointer;
}
.ea-consent-text {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  user-select: none;
}

.ea-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: rgba(var(--ea-accent-rgb), 0.15);
  border: 1px solid rgba(var(--ea-accent-rgb), 0.35);
  color: var(--ea-accent-light) !important;
  text-decoration: none !important;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.ea-btn-glass:hover {
  background: rgba(var(--ea-accent-rgb), 0.25);
  transform: translateY(-2px);
}

.ea-btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--ea-accent), var(--ea-accent-dark));
  color: #fff !important;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(var(--ea-accent-rgb), 0.3);
}
.ea-btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--ea-accent-rgb), 0.45);
}
.ea-btn-gradient:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.tg {
  background: rgba(0,136,204,0.15) !important;
  border: 1px solid rgba(0,136,204,0.3) !important;
  color: #0088CC !important;
}
.tg:hover {
  background: rgba(0,136,204,0.25) !important;
  box-shadow: 0 8px 24px rgba(0,136,204,0.2);
}

.mx {
  background: rgba(0,100,255,0.12) !important;
  border: 1px solid rgba(0,100,255,0.3) !important;
  color: #5b9bff !important;
}
.mx:hover {
  background: rgba(0,100,255,0.22) !important;
  box-shadow: 0 8px 24px rgba(0,100,255,0.2);
}

.ea-gradient-text {
  background: linear-gradient(135deg, var(--ea-accent), var(--ea-accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== BF201N — форма заменена своей модалкой ========== */
.t1045 { display: none !important; }

/* opacity:0 вместо display:none — блок должен быть в DOM до замены скриптом */
.t-store,
.t670 { opacity: 0; pointer-events: none; }

/* t-form-success-popup */
.t-form-success-popup__wrapper {
  background: rgba(var(--ea-bg-rgb),0.97) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.t-form-success-popup__close-icon {
  display: none !important;
}
.t-form-success-popup__content-icon-background {
  fill: var(--ea-accent) !important;
}
/* Tilda добавляет фоновый цвет на текстовые элементы попапа */
.t-form-success-popup__title,
.t-form-success-popup__text,
.t-form-success-popup__title *,
.t-form-success-popup__text * {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
}
.t-form-success-popup__title {
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
}
.t-form-success-popup__text {
  color: rgba(255,255,255,0.5) !important;
  font-family: 'Inter', sans-serif !important;
}
.t-form-success-popup__button.t-btn {
  background: linear-gradient(135deg, var(--ea-accent), var(--ea-accent-dark)) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.t-form-success-popup__button.t-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(var(--ea-accent-rgb),0.35) !important;
  opacity: 1 !important;
  background: linear-gradient(135deg, var(--ea-accent), var(--ea-accent-dark)) !important;
}

@keyframes ea-bg-shift {
  0%   { background-position: 50% 0%; }
  50%  { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

body, .t-body {
  background:
    linear-gradient(180deg,
      var(--ea-bg) 0%,
      var(--ea-bg2) 30%,
      #241800 50%,
      var(--ea-bg2) 70%,
      var(--ea-bg) 100%
    ) !important;
  background-size: 100% 300% !important;
  background-attachment: fixed !important;
  animation: ea-bg-shift 20s ease-in-out infinite !important;
  position: relative;
  overflow-x: hidden;
}

@keyframes ea-orb1 {
  0%   { transform: translate(0px, 0px) scale(1); }
  33%  { transform: translate(60px, -40px) scale(1.15); }
  66%  { transform: translate(-30px, 60px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}
@keyframes ea-orb2 {
  0%   { transform: translate(0px, 0px) scale(1); }
  33%  { transform: translate(-80px, 50px) scale(0.88); }
  66%  { transform: translate(50px, -70px) scale(1.12); }
  100% { transform: translate(0px, 0px) scale(1); }
}
@keyframes ea-orb3 {
  0%   { transform: translate(0px, 0px) scale(1); }
  50%  { transform: translate(40px, 80px) scale(1.1); }
  100% { transform: translate(0px, 0px) scale(1); }
}

.ea-bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ea-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.ea-bg-orb:nth-child(1) {
  width: 600px;
  height: 600px;
  left: 10%;
  top: 30vh;
  background: radial-gradient(circle, rgba(var(--ea-accent-rgb), 0.22) 0%, transparent 70%);
  animation: ea-orb1 18s ease-in-out infinite;
}

.ea-bg-orb:nth-child(2) {
  width: 700px;
  height: 700px;
  right: 10%;
  top: 30vh;
  background: radial-gradient(circle, rgba(var(--ea-accent-rgb), 0.14) 0%, transparent 70%);
  animation: ea-orb2 24s ease-in-out infinite;
}

.ea-bg-orb:nth-child(3) {
  width: 500px;
  height: 500px;
  left: 20%;
  bottom: -100px;
  background: radial-gradient(circle, rgba(var(--ea-accent-rgb), 0.12) 0%, transparent 70%);
  animation: ea-orb3 20s ease-in-out infinite;
}

.t-rec {
  position: relative;
  z-index: 1;
}

.t-rec:first-child {
  z-index: 9999;
}

.t886 {
  z-index: 9000 !important;
}
.t-rec:has(.t886) {
  z-index: 9000 !important;
}

.ea-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.ea-input:focus {
  outline: none;
  border-color: rgba(var(--ea-accent-rgb),0.5);
  background: rgba(var(--ea-accent-rgb),0.06);
}
.ea-input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* скрытая форма калькулятора */
#rec2060895481 {
  display: none !important;
}

