/* Referanslar v33 — haziryazilimlar uyumlu, inşaat teması */
.tc-ref-v33,
.tc-ref-v33 * { box-sizing: border-box; }

.tc-ref-v33 {
    --ref-dark: #071f44;
    --ref-accent: #ff6600;
    --ref-accent2: #ff8533;
    --ref-muted: #64748b;
    --ref-border: rgba(7, 31, 68, 0.1);
    position: relative;
    overflow: hidden;
    padding: 76px 0 98px;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 48%, #f8fafc 100%);
}
.tc-ref-v33 .container { position: relative; z-index: 2; }
.tc-ref-v33__shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.tc-ref-v33__shape--one {
    left: -170px;
    top: 115px;
    width: 360px;
    height: 360px;
    background: rgba(255, 102, 0, 0.08);
}
.tc-ref-v33__shape--two {
    right: -220px;
    bottom: 70px;
    width: 430px;
    height: 430px;
    background: rgba(7, 31, 68, 0.05);
}

.tc-ref-v33-head {
    max-width: 920px;
    margin: 0 auto 42px;
    text-align: center;
}
.tc-ref-v33-head__tag {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(255, 102, 0, 0.16);
    color: var(--ref-accent);
    box-shadow: 0 16px 42px rgba(7, 31, 68, 0.06);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.tc-ref-v33-head__tag i { font-size: 14px; }
.tc-ref-v33-head h2 {
    max-width: 860px;
    margin: 0 auto 14px;
    color: var(--ref-dark);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}
.tc-ref-v33-head p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ref-muted);
    font-size: 17px;
    line-height: 1.72;
}

.tc-ref-v33-card {
    position: relative;
    width: 100%;
    min-height: 228px;
    border: 1px solid rgba(255, 102, 0, 0.13);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 70px rgba(7, 31, 68, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px 16px 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.tc-ref-v33-card::before {
    content: "";
    position: absolute;
    right: -72px;
    top: -84px;
    width: 176px;
    height: 176px;
    border-radius: 50%;
    background: rgba(255, 102, 0, 0.08);
    transition: transform 0.28s ease;
}
.tc-ref-v33-card::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, var(--ref-accent), var(--ref-accent2));
    transform: scaleX(0.35);
    transform-origin: left center;
    transition: transform 0.28s ease, left 0.28s ease, right 0.28s ease;
}
.tc-ref-v33-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.64) 45%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}
.tc-ref-v33-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 102, 0, 0.28);
    box-shadow: 0 34px 100px rgba(7, 31, 68, 0.13);
}
.tc-ref-v33-card:hover::before { transform: scale(1.14); }
.tc-ref-v33-card:hover::after { left: 0; right: 0; transform: scaleX(1); }
.tc-ref-v33-card:hover .tc-ref-v33-card__shine { transform: translateX(120%); }
.tc-ref-v33-card__icon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff5eb;
    color: var(--ref-accent);
    border: 1px solid rgba(255, 102, 0, 0.14);
    font-size: 16px;
}
.tc-ref-v33-card__logo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 116px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff5eb);
    border: 1px solid rgba(255, 102, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-bottom: 15px;
}
.tc-ref-v33-card__logo img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.28s ease;
}
.tc-ref-v33-card:hover .tc-ref-v33-card__logo img { transform: scale(1.05); }
.tc-ref-v33-card__title {
    position: relative;
    z-index: 2;
    color: var(--ref-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-ref-v33-card__open {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: #fff;
    color: var(--ref-accent);
    display: grid;
    place-items: center;
    box-shadow: 0 16px 42px rgba(7, 31, 68, 0.1);
    opacity: 0;
    transform: translateY(-8px) scale(0.92);
    transition: 0.24s ease;
    font-size: 14px;
}
.tc-ref-v33-card:hover .tc-ref-v33-card__open { opacity: 1; transform: translateY(0) scale(1); }

.tc-ref-v33-empty {
    max-width: 640px;
    margin: 0 auto;
    padding: 46px 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--ref-border);
    text-align: center;
    box-shadow: 0 24px 70px rgba(7, 31, 68, 0.08);
}

.tc-ref-v33-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}
.tc-ref-v33-modal.active { display: flex; }
.tc-ref-v33-modal__overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 31, 68, 0.9);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.tc-ref-v33-modal__inner { position: relative; z-index: 2; width: min(980px, 100%); }
.tc-ref-v33-modal__box {
    background: #fffaf5;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    padding: 18px 18px 24px;
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.42);
}
.tc-ref-v33-modal__stage {
    min-height: 420px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff, #fff5eb);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
}
.tc-ref-v33-modal__img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
}
.tc-ref-v33-modal__title {
    margin: 18px 0 0;
    text-align: center;
    color: var(--ref-dark);
    font-size: 28px;
    font-weight: 800;
}
.tc-ref-v33-modal__close,
.tc-ref-v33-modal__nav {
    position: absolute;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ref-dark);
    display: grid;
    place-items: center;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: 0.2s ease;
}
.tc-ref-v33-modal__close {
    right: 0;
    top: -62px;
    width: 52px;
    height: 52px;
    font-size: 20px;
}
.tc-ref-v33-modal__nav {
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}
.tc-ref-v33-modal__prev { left: -24px; }
.tc-ref-v33-modal__next { right: -24px; }
.tc-ref-v33-modal__close:hover,
.tc-ref-v33-modal__nav:hover {
    background: var(--ref-accent);
    color: #fff;
}

@media (max-width: 767.98px) {
    .tc-ref-v33 { padding: 48px 0 64px; }
    .tc-ref-v33-head { margin-bottom: 28px; text-align: left; }
    .tc-ref-v33-head h2 { font-size: clamp(28px, 8vw, 40px); }
    .tc-ref-v33-card { min-height: 186px; border-radius: 22px; padding: 16px 10px 14px; }
    .tc-ref-v33-card__icon,
    .tc-ref-v33-card__open { display: none; }
    .tc-ref-v33-card__logo { height: 96px; border-radius: 18px; padding: 16px; }
    .tc-ref-v33-modal { padding: 16px; }
    .tc-ref-v33-modal__stage { min-height: 280px; padding: 22px; }
    .tc-ref-v33-modal__close { top: -54px; right: 50%; transform: translateX(50%); width: 44px; height: 44px; }
    .tc-ref-v33-modal__nav { width: 44px; height: 44px; font-size: 24px; }
    .tc-ref-v33-modal__prev { left: 8px; }
    .tc-ref-v33-modal__next { right: 8px; }
}
