.contact-page {
    position: relative;
    min-height: 100vh;
    padding-bottom: 90px;
    overflow-x: hidden;
}

.contact-page .container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    width: 100%;
}

.contact-hero {
    position: relative;
    padding: 72px 0 30px;
    overflow: hidden;
}

.contact-hero-glow {
    position: absolute;
    top: -280px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 520px;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--pink-rgb), 0.2),
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}

.contact-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(244, 244, 248, 0.05) 1px,
        transparent 1.6px
    );
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(
        ellipse at 50% 30%,
        black 30%,
        transparent 78%
    );
    pointer-events: none;
    z-index: 0;
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    animation: contactFadeUp 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--pink);
    font-weight: 800;
    font-size: 0.88rem;
    margin: 0;
}
.contact-kicker::before,
.contact-kicker::after {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--pink);
    opacity: 0.85;
}

.contact-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: var(--text);
}

.contact-hero-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
    margin: 0;
    max-width: 68ch;
}

.contact-main {
    padding-top: 24px;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1),
        border-color 0.35s, box-shadow 0.35s;
    animation: contactFadeUp 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 100% 0,
        rgba(var(--pink-rgb), 0.08),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}
.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--pink-rgb), 0.5);
    box-shadow: 0 22px 48px -22px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(var(--pink-rgb), 0.08);
}
.contact-card:hover::before {
    opacity: 1;
}

.contact-card:nth-child(1) {
    animation-delay: 0.02s;
}
.contact-card:nth-child(2) {
    animation-delay: 0.06s;
}
.contact-card:nth-child(3) {
    animation-delay: 0.1s;
}
.contact-card:nth-child(4) {
    animation-delay: 0.14s;
}

.cc-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.35s;
    position: relative;
    z-index: 1;
}
.contact-card:hover .cc-icon {
    transform: scale(1.08) rotate(-6deg);
}
.cc-email {
    background: rgba(76, 201, 240, 0.12);
    color: var(--sky);
}
.cc-phone {
    background: rgba(191, 230, 90, 0.1);
    color: var(--lime);
}
.cc-rubika {
    background: rgba(var(--pink-rgb), 0.12);
    color: var(--pink);
}
.cc-telegram {
    background: rgba(52, 162, 219, 0.14);
    color: #34a2de;
}

.cc-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    z-index: 1;
}
.cc-label {
    color: var(--faint);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}
.cc-value {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-align: end;
    text-overflow: ellipsis;
    transition: color 0.25s;
}
[dir="ltr"] .cc-value {
    text-align: start;
}
.contact-card:hover .cc-value {
    color: var(--pink);
}
.cc-hint {
    color: var(--faint);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
}

.cc-arrow {
    color: var(--faint);
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    transition: transform 0.3s, color 0.3s;
    position: relative;
    z-index: 1;
}
.contact-card:hover .cc-arrow {
    color: var(--pink);
    transform: translateX(-4px);
}
[dir="ltr"] .contact-card:hover .cc-arrow {
    transform: translateX(4px);
}

.contact-info-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
    margin-bottom: 34px;
}

.working-hours-card,
.contact-social-card {
    position: relative;
    background: linear-gradient(135deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px 28px;
    overflow: hidden;
    transition: border-color 0.35s, box-shadow 0.35s;
    animation: contactFadeUp 0.6s 0.18s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.working-hours-card:hover,
.contact-social-card:hover {
    border-color: rgba(var(--pink-rgb), 0.35);
    box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.8);
}

.working-hours-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.wh-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: rgba(var(--pink-rgb), 0.12);
    color: var(--pink);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.35s;
}
.working-hours-card:hover .wh-icon {
    transform: rotate(-8deg) scale(1.06);
}
.wh-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.wh-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
}
.wh-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 0;
    color: var(--text);
    font-family: var(--font-en);
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.wh-slot {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(var(--pink-rgb), 0.08);
    border: 1px solid rgba(var(--pink-rgb), 0.24);
    color: var(--pink);
    border-radius: 999px;
    font-size: 0.92rem;
}
.wh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    opacity: 0.6;
    flex-shrink: 0;
}
.wh-desc {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.8;
}
.wh-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: left 0.9s ease;
    pointer-events: none;
}
.working-hours-card:hover .wh-shine {
    left: 120%;
}

.contact-social-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}
.cs-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cs-kicker {
    color: var(--pink);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.cs-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.5;
}
.cs-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cs-btn {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s, transform 0.25s,
        background 0.25s;
}
.cs-btn:hover {
    transform: translateY(-3px);
    color: var(--pink);
    border-color: var(--pink);
    background: rgba(var(--pink-rgb), 0.06);
}

.ticket-section {
    margin-top: 8px;
}

.ticket-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    padding: 56px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    background: linear-gradient(135deg, var(--panel), var(--panel-2));
    animation: contactFadeUp 0.6s 0.22s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.ticket-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            ellipse at 0% 0%,
            rgba(var(--pink-rgb), 0.16) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 100% 100%,
            rgba(76, 201, 240, 0.08) 0%,
            transparent 55%
        );
    pointer-events: none;
}

.tp-tick {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 0 solid var(--pink);
    pointer-events: none;
}
.tp-tick-1 {
    top: 16px;
    right: 16px;
    border-top-width: 2px;
    border-right-width: 2px;
}
.tp-tick-2 {
    top: 16px;
    left: 16px;
    border-top-width: 2px;
    border-left-width: 2px;
}
.tp-tick-3 {
    bottom: 16px;
    right: 16px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}
.tp-tick-4 {
    bottom: 16px;
    left: 16px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.tp-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    min-width: 0;
}
.tp-icon {
    width: 62px;
    height: 62px;
    border-radius: var(--radius);
    background: rgba(var(--pink-rgb), 0.12);
    color: var(--pink);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.4s;
    border: 1px solid rgba(var(--pink-rgb), 0.25);
}
.ticket-panel:hover .tp-icon {
    transform: scale(1.06) rotate(-6deg);
}
.tp-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.tp-title {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
}
.tp-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.9;
    max-width: 64ch;
}

.tp-action {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--pink);
    color: var(--ink);
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.tp-btn:hover {
    background: var(--pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(var(--pink-rgb), 0.6);
}
.tp-btn svg {
    transition: transform 0.3s;
}
.tp-btn:hover svg {
    transform: translateX(-4px);
}
[dir="ltr"] .tp-btn:hover svg {
    transform: translateX(4px);
}

.tp-login-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(var(--pink-rgb), 0.06);
    border: 1px solid rgba(var(--pink-rgb), 0.28);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}
.tp-login-notice > svg {
    color: var(--pink);
    flex-shrink: 0;
}
.tp-login-text {
    flex: 1;
    min-width: 0;
}
.tp-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: var(--pink);
    color: var(--ink);
    border-radius: 11px;
    font-weight: 800;
    font-size: 0.84rem;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.tp-login-btn:hover {
    background: var(--pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(var(--pink-rgb), 0.6);
}

@keyframes contactFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1024px) {
    .contact-page .container {
        padding-inline: 20px;
    }
    .contact-hero {
        padding: 60px 0 24px;
    }
    .contact-hero-glow {
        width: 720px;
        height: 420px;
    }
    .contact-hero-desc {
        font-size: 0.95rem;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .contact-info-row {
        gap: 14px;
    }

    .ticket-panel {
        padding: 30px 32px;
        gap: 24px;
    }
    .tp-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
}
@media (max-width: 768px) {
    .contact-page {
        padding-bottom: 70px;
    }
    .contact-page .container {
        padding-inline: 18px;
    }
    .contact-hero {
        padding: 46px 0 20px;
    }
    .contact-hero-glow {
        width: 540px;
        height: 320px;
        top: -190px;
    }
    .contact-hero-title {
        font-size: 1.65rem;
    }
    .contact-hero-desc {
        font-size: 0.9rem;
        line-height: 1.85;
    }
    .contact-kicker {
        font-size: 0.82rem;
    }
    .contact-kicker::before,
    .contact-kicker::after {
        width: 20px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 20px;
    }
    .contact-card {
        padding: 16px 16px;
        gap: 12px;
        border-radius: 16px;
    }
    .cc-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    .cc-icon svg {
        width: 20px;
        height: 20px;
    }
    .cc-value {
        font-size: 0.85rem;
    }
    .cc-hint {
        display: none;
    }

    .working-hours-card,
    .contact-social-card {
        padding: 22px 22px;
        border-radius: var(--radius);
    }
    .working-hours-card {
        flex-direction: column;
        gap: 16px;
    }
    .wh-icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }
    .wh-time {
        font-size: 0.95rem;
    }
    .wh-slot {
        font-size: 0.85rem;
        padding: 3px 10px;
    }

    .ticket-panel {
        grid-template-columns: 1fr;
        padding: 26px 24px;
        gap: 22px;
        border-radius: 20px;
    }
    .tp-content {
        gap: 16px;
    }
    .tp-icon {
        width: 52px;
        height: 52px;
        border-radius: var(--radius);
    }
    .tp-title {
        font-size: 1.15rem;
    }
    .tp-desc {
        font-size: 0.86rem;
        line-height: 1.8;
    }
    .tp-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 22px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    .tp-login-notice {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
        padding: 14px 16px;
    }
    .tp-login-notice > svg {
        align-self: center;
    }
    .tp-login-btn {
        justify-content: center;
        width: 100%;
        padding: 11px 18px;
    }
}
@media (max-width: 480px) {
    .contact-page .container {
        padding-inline: 14px;
    }
    .contact-hero {
        padding: 34px 0 22px;
    }
    .contact-hero-glow {
        width: 380px;
        height: 240px;
        top: -140px;
    }
    .contact-hero-inner {
        gap: 10px;
    }
    .contact-hero-title {
        font-size: 1.36rem;
        line-height: 1.3;
    }
    .contact-hero-desc {
        font-size: 0.83rem;
        line-height: 1.8;
    }
    .contact-kicker {
        font-size: 0.75rem;
        gap: 0.45rem;
    }
    .contact-kicker::before,
    .contact-kicker::after {
        width: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .contact-card {
        padding: 14px 16px;
        gap: 14px;
    }
    .cc-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .cc-label {
        font-size: 0.7rem;
    }
    .cc-value {
        font-size: 0.86rem;
    }

    .contact-info-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .working-hours-card,
    .contact-social-card {
        padding: 18px 18px;
        border-radius: 16px;
    }
    .wh-title {
        font-size: 0.94rem;
    }
    .wh-time {
        font-size: 0.88rem;
        gap: 8px;
    }
    .wh-slot {
        font-size: 0.8rem;
        padding: 3px 9px;
    }
    .wh-desc {
        font-size: 0.78rem;
    }
    .cs-title {
        font-size: 0.92rem;
    }
    .cs-btn {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .ticket-panel {
        padding: 22px 18px;
        gap: 18px;
        border-radius: var(--radius);
    }
    .tp-tick {
        width: 20px;
        height: 20px;
    }
    .tp-tick-1 {
        top: 12px;
        right: 12px;
    }
    .tp-tick-2 {
        top: 12px;
        left: 12px;
    }
    .tp-tick-3 {
        bottom: 12px;
        right: 12px;
    }
    .tp-tick-4 {
        bottom: 12px;
        left: 12px;
    }

    .tp-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .tp-icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }
    .tp-icon svg {
        width: 22px;
        height: 22px;
    }
    .tp-title {
        font-size: 1.02rem;
    }
    .tp-desc {
        font-size: 0.82rem;
        line-height: 1.75;
    }
    .tp-btn {
        padding: 12px 20px;
        font-size: 0.86rem;
        border-radius: 11px;
    }
    .tp-login-notice {
        font-size: 0.8rem;
        padding: 12px 14px;
        border-radius: 12px;
    }
    .tp-login-btn {
        font-size: 0.8rem;
        padding: 10px 16px;
        border-radius: 10px;
    }
}