/* =============================================
   ELDORIA — CONTACT PAGE
   Dark · Gold + Pink accent · Syne + DM Sans
   ============================================= */

:root {
    --clr-bg:       #08090d;
    --clr-s1:       #0e1117;
    --clr-s2:       #13161f;
    --clr-s3:       #1a1f2b;
    --clr-border:   rgba(255,255,255,.07);
    --clr-border2:  rgba(255,255,255,.12);
    --clr-text:     #e2e8f0;
    --clr-muted:    #5a6478;
    --clr-muted2:   #8492a6;

    --clr-gold:        #e9b84a;
    --clr-gold-dim:    rgba(233,184,74,.1);
    --clr-gold-border: rgba(233,184,74,.28);
    --clr-pink:        #f43f6b;
    --clr-pink-dim:    rgba(244,63,107,.1);
    --clr-purple:      #a855f7;
    --clr-purple-dim:  rgba(168,85,247,.1);
    --clr-green:       #34d399;
    --clr-red:         #f87171;

    --font-d: 'Syne', sans-serif;
    --font-b: 'DM Sans', sans-serif;
    --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--clr-bg); color: var(--clr-text); font-family: var(--font-b); overflow-x: hidden; }

.ct-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Shared ──────────────────────────────────── */
.ct-tag {
    display: inline-block;
    font-family: var(--font-d); font-size: 0.68rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--clr-gold); background: var(--clr-gold-dim);
    border: 1px solid var(--clr-gold-border);
    padding: 5px 16px; border-radius: 100px; margin-bottom: 16px;
}

.ct-section-head { text-align: center; margin-bottom: 52px; }

.ct-section-title {
    font-family: var(--font-d); font-size: clamp(1.8rem,3.5vw,2.6rem);
    font-weight: 800; color: #fff; line-height: 1.14; margin-bottom: 12px;
}

.ct-section-sub { font-size: 0.95rem; color: var(--clr-muted); max-width: 480px; margin: 0 auto; }

.ct-link {
    color: var(--clr-gold); text-decoration: none;
    border-bottom: 1px solid rgba(233,184,74,.3);
    transition: border-color .18s, color .18s;
}
.ct-link:hover { color: #fff; border-color: var(--clr-gold); }

/* ── Buttons ─────────────────────────────────── */
.ct-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 28px; border-radius: 100px;
    font-family: var(--font-d); font-size: 0.86rem; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform .22s, box-shadow .22s; position: relative; overflow: hidden;
    white-space: nowrap;
}
.ct-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg,rgba(255,255,255,.12),transparent);
    opacity:0; transition: opacity .2s;
}
.ct-btn:hover { transform: translateY(-3px); }
.ct-btn:hover::after { opacity:1; }

.ct-btn--primary {
    background: linear-gradient(135deg, var(--clr-gold), #d4920f);
    color: #0e0900; font-weight: 800;
    box-shadow: 0 8px 24px rgba(233,184,74,.3);
}
.ct-btn--primary:hover { box-shadow: 0 14px 36px rgba(233,184,74,.45); }

.ct-btn--ghost {
    background: transparent; border: 1.5px solid var(--clr-border2); color: var(--clr-text);
}
.ct-btn--ghost:hover { background: rgba(255,255,255,.05); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.ct-hero {
    position: relative; min-height: 88vh;
    display: flex; align-items: center;
    padding: 100px 0 80px; overflow: hidden; isolation: isolate;
    background: var(--clr-s1); border-bottom: 1px solid var(--clr-border);
}

.ct-hero__bg { position: absolute; inset: 0; z-index: -1; }

.ct-hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.ct-hero__orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.ct-hero__orb--a { width: 480px; height: 480px; background: rgba(233,184,74,.1);  top: -20%; left: -6%; }
.ct-hero__orb--b { width: 360px; height: 360px; background: rgba(244,63,107,.08); top: 10%;  right: -4%; }
.ct-hero__orb--c { width: 280px; height: 280px; background: rgba(168,85,247,.07); bottom: 0; left: 35%; }

.ct-hero__inner { text-align: center; position: relative; }

.ct-hero__title {
    font-family: var(--font-d);
    font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800;
    color: #fff; line-height: 1.1; margin-bottom: 20px;
}
.ct-hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--clr-gold), var(--clr-pink));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.ct-hero__sub {
    font-size: 1.05rem; color: var(--clr-muted2); line-height: 1.72;
    max-width: 520px; margin: 0 auto 36px;
}

.ct-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Плавающие элементы */
.ct-hero__floats { position: absolute; inset: 0; pointer-events: none; }
.ct-float {
    position: absolute; left: var(--x); top: var(--y);
    font-size: 1.8rem; opacity: .6;
    filter: drop-shadow(0 0 12px rgba(255,255,255,.12));
    animation: ctFloat var(--dur) ease-in-out infinite var(--del);
}
@keyframes ctFloat {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(6deg); }
}

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.ct-section { padding: 120px 0; background: var(--clr-bg); position: relative; }
.ct-section::before {
    content: ''; position: absolute; top:0;left:0;right:0;height:1px;
    background: linear-gradient(90deg,transparent,var(--clr-border2),transparent);
}
.ct-section--alt { background: var(--clr-s1); }

/* ── Карточки контактов ──────────────────────── */
.ct-cards {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
    margin-bottom: 32px;
}

.ct-card {
    background: var(--clr-s2); border: 1px solid var(--clr-border);
    border-radius: var(--r-xl); padding: 32px 28px;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}

.ct-card::after {
    content: ''; position: absolute; top:0;left:0;right:0;height:3px;
    background: linear-gradient(90deg, var(--clr-gold), var(--clr-pink));
    transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.ct-card:hover { transform: translateY(-5px); border-color: var(--clr-gold-border); }
.ct-card:hover::after { transform: scaleX(1); }

.ct-card__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 20px;
}
.ct-card__icon--gold   { background: var(--clr-gold-dim);   border: 1px solid var(--clr-gold-border);          color: var(--clr-gold); }
.ct-card__icon--pink   { background: var(--clr-pink-dim);   border: 1px solid rgba(244,63,107,.25);             color: var(--clr-pink); }
.ct-card__icon--purple { background: var(--clr-purple-dim); border: 1px solid rgba(168,85,247,.25);             color: var(--clr-purple); }

.ct-card h3 {
    font-family: var(--font-d); font-size: 1rem; font-weight: 800;
    color: #fff; margin-bottom: 10px;
}
.ct-card p { font-size: 0.84rem; color: var(--clr-muted2); line-height: 1.6; margin-bottom: 20px; }

/* Список инфо */
.ct-info-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.ct-info-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,.03); border: 1px solid var(--clr-border);
    border-radius: var(--r-md); font-size: 0.82rem; transition: background .18s;
}
.ct-info-list li:hover { background: rgba(255,255,255,.06); }

.ct-info-list li > i { color: var(--clr-gold); font-size: 0.82rem; margin-top: 2px; flex-shrink: 0; }

.ct-info-list__title { display: block; font-family: var(--font-d); font-size: 0.74rem; font-weight: 700; color: var(--clr-text); margin-bottom: 2px; }
.ct-info-list__sub   { display: block; font-size: 0.76rem; color: var(--clr-muted); }

/* Экстренный блок */
.ct-emergency {
    display: flex; align-items: center; gap: 16px;
    background: rgba(248,113,113,.07); border: 1px solid rgba(248,113,113,.2);
    border-radius: var(--r-lg); padding: 18px 22px;
}

.ct-emergency__icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--clr-red); font-size: 1rem;
}

.ct-emergency__title {
    font-family: var(--font-d); font-size: 0.82rem; font-weight: 800;
    color: var(--clr-red); margin-bottom: 4px;
}
.ct-emergency__sub  { font-size: 0.8rem; color: var(--clr-muted2); line-height: 1.5; }
.ct-emergency__hint { font-size: 0.74rem; color: var(--clr-muted); margin-left: 4px; }

/* ── Форма ───────────────────────────────────── */
.ct-form-card {
    background: var(--clr-s2); border: 1px solid var(--clr-border);
    border-radius: var(--r-xl); padding: 40px 44px;
    max-width: 760px; margin: 0 auto;
    position: relative; overflow: hidden;
}
.ct-form-card::before {
    content: ''; position: absolute; top:0;left:0;right:0;height:3px;
    background: linear-gradient(90deg, var(--clr-gold), var(--clr-pink));
}

.ct-form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 0;
}

.ct-form-group { margin-bottom: 20px; }

.ct-form-label {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-d); font-size: 0.78rem; font-weight: 700;
    color: var(--clr-text); margin-bottom: 9px; letter-spacing: .04em;
}
.ct-form-label i { color: var(--clr-gold); font-size: 0.72rem; }
.ct-req { color: var(--clr-pink); }

.ct-form-input,
.ct-form-select {
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,.04); border: 1px solid var(--clr-border2);
    border-radius: var(--r-md); color: var(--clr-text);
    font-family: var(--font-b); font-size: 0.88rem;
    transition: border-color .2s, background .2s, box-shadow .2s;
    outline: none;
}
.ct-form-input::placeholder { color: var(--clr-muted); }
.ct-form-input:focus,
.ct-form-select:focus {
    border-color: rgba(233,184,74,.5);
    background: rgba(233,184,74,.04);
    box-shadow: 0 0 0 3px rgba(233,184,74,.07);
}
.ct-form-input.error { border-color: rgba(248,113,113,.5); box-shadow: 0 0 0 3px rgba(248,113,113,.07); }

.ct-form-select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6478'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.ct-form-select option { background: var(--clr-s2); color: var(--clr-text); }

.ct-form-textarea { min-height: 160px; resize: vertical; }

.ct-form-hint {
    margin-top: 7px; font-size: 0.74rem; color: var(--clr-muted);
    display: flex; align-items: center; gap: 5px;
}
.ct-form-hint i { font-size: 0.68rem; }
.ct-form-hint.error { color: var(--clr-red); }

/* Кнопка отправки */
.ct-form-submit {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, var(--clr-gold), #d4920f);
    color: #0e0900; border: none; border-radius: 100px;
    font-family: var(--font-d); font-size: 0.92rem; font-weight: 800;
    cursor: pointer; transition: box-shadow .22s, transform .22s; overflow: hidden;
    position: relative;
}
.ct-form-submit::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg,rgba(255,255,255,.15),transparent);
    opacity: 0; transition: opacity .2s;
}
.ct-form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(233,184,74,.4); }
.ct-form-submit:hover::after { opacity: 1; }
.ct-form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Сообщение формы */
.ct-form-msg {
    display: none; padding: 14px 18px; border-radius: var(--r-md);
    margin-bottom: 20px; font-size: 0.86rem; font-weight: 600;
    text-align: center; border: 1px solid;
}
.ct-form-msg.success {
    background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.25); color: var(--clr-green);
}
.ct-form-msg.error {
    background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.25); color: var(--clr-red);
}

/* ── FAQ ─────────────────────────────────────── */
.ct-faq-grid {
    display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 16px;
}

.ct-faq-item {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--clr-s2); border: 1px solid var(--clr-border);
    border-radius: var(--r-lg); padding: 22px 24px;
    transition: border-color .22s, transform .22s;
}
.ct-faq-item:hover { border-color: var(--clr-gold-border); transform: translateY(-3px); }

.ct-faq-item__icon {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    background: var(--clr-gold-dim); border: 1px solid var(--clr-gold-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--clr-gold); font-size: 0.9rem;
}

.ct-faq-item__body h4 {
    font-family: var(--font-d); font-size: 0.88rem; font-weight: 800;
    color: var(--clr-text); margin-bottom: 6px;
}
.ct-faq-item__body p { font-size: 0.82rem; color: var(--clr-muted); line-height: 1.6; }

/* ── CTA ─────────────────────────────────────── */
.ct-cta {
    padding: 110px 0; text-align: center;
    background: var(--clr-bg); position: relative;
    overflow: hidden; isolation: isolate;
}
.ct-cta::before {
    content:'';position:absolute;top:0;left:0;right:0;height:1px;
    background:linear-gradient(90deg,transparent,var(--clr-border2),transparent);
}

.ct-cta__orb { position:absolute;border-radius:50%;filter:blur(100px);z-index:-1; }
.ct-cta__orb--a { width:420px;height:420px;background:rgba(233,184,74,.06);top:-30%;left:-8%; }
.ct-cta__orb--b { width:320px;height:320px;background:rgba(244,63,107,.06);bottom:-20%;right:-5%; }

.ct-cta__inner { max-width: 600px; margin: 0 auto; }

.ct-cta__title {
    font-family: var(--font-d); font-size: clamp(1.9rem,4vw,3rem);
    font-weight: 800; color: #fff; line-height: 1.12; margin-bottom: 14px;
}

.ct-cta__sub { font-size: 0.95rem; color: var(--clr-muted); margin-bottom: 36px; line-height: 1.7; }

.ct-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    .ct-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ct-hero { padding: 80px 0 60px; min-height: auto; }
    .ct-hero__title { font-size: 2.2rem; }
    .ct-hero__actions { flex-direction: column; align-items: center; }
    .ct-form-row { grid-template-columns: 1fr; }
    .ct-form-card { padding: 28px 22px; }
    .ct-section, .ct-cta { padding: 80px 0; }
    .ct-cta__actions { flex-direction: column; align-items: center; }
    .ct-emergency { flex-direction: column; gap: 10px; }
}
