/* =========================================================
   tyutorlar.css — KIU Tyutorlar sahifasi
   Подключается через functions.php: wp_enqueue_style()
   ========================================================= */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
    --tut-green:       #1D9E75;
    --tut-green-dark:  #0F6E56;
    --tut-green-bg:    #E1F5EE;
    --tut-dark:        #0F2C2C;
    --tut-text:        #2C2C2A;
    --tut-muted:       #5F5E5A;
    --tut-border:      #E8E6DE;
    --tut-bg:          #F7F6F2;
    --tut-tg:          #229ED9;
    --tut-tg-bg:       #E6F1FB;
    --tut-tg-text:     #0C447C;
    --tut-wa:          #25D366;
    --tut-wa-bg:       #E1F5EE;
    --tut-wa-text:     #085041;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.tut-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.tut-section {
    padding: 64px 0;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.tut-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tut-green);
    margin-bottom: 8px;
}

.tut-section-title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--tut-text);
    line-height: 1.3;
    margin: 0 0 6px;
}

/* ─── BANNER ─────────────────────────────────────────────── */
.tut-banner {
    position: relative;
    background-color: var(--tut-dark);
    background-image: var(--tut-banner-bg);
    background-size: cover;
    background-position: center;
    padding: 80px 24px;
    text-align: center;
}

.tut-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 35, 30, 0.65);
}

.tut-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.tut-banner__title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.tut-banner__sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    margin: 0;
}

/* ─── GRID SECTION ───────────────────────────────────────── */
.tut-grid-section {
    background: var(--tut-bg);
}

.tut-section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.tut-count {
    font-size: 13px;
    color: var(--tut-muted);
    margin-top: 2px;
}

/* ─── GRID ───────────────────────────────────────────────── */
.tut-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ─── CARD ───────────────────────────────────────────────── */
.tut-card {
    background: #fff;
    border: 1px solid var(--tut-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tut-card:hover {
    border-color: var(--tut-green);
    box-shadow: 0 4px 20px rgba(29, 158, 117, 0.08);
}

/* Photo / initials header */
.tut-card__head {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.tut-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.tut-card__initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    backdrop-filter: blur(4px);
}

/* Card body */
.tut-card__body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Badge */
.tut-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 5px;
    letter-spacing: 0.02em;
    width: fit-content;
    line-height: 1.4;
}

/* Name */
.tut-card__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.tut-card__name a {
    color: var(--tut-text);
    text-decoration: none;
    transition: color 0.18s;
}

.tut-card__name a:hover {
    color: var(--tut-green);
}

/* Excerpt */
.tut-card__excerpt {
    font-size: 13px;
    color: var(--tut-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contacts */
.tut-card__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
}

/* Pills */
.tut-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: opacity 0.18s;
    white-space: nowrap;
}

.tut-pill:hover { opacity: 0.8; }

.tut-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.tut-pill--tg {
    background: var(--tut-tg-bg);
    color: var(--tut-tg-text);
    border-color: rgba(34, 158, 217, 0.25);
}

.tut-pill--wa {
    background: var(--tut-wa-bg);
    color: var(--tut-wa-text);
    border-color: rgba(37, 211, 102, 0.25);
}

.tut-pill--ph {
    background: var(--tut-bg);
    color: var(--tut-muted);
    border-color: var(--tut-border);
}

/* Card footer */
.tut-card__footer {
    padding: 10px 16px;
    border-top: 1px solid var(--tut-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.tut-card__bot-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tut-green);
    text-decoration: none;
    transition: gap 0.18s, color 0.18s;
}

.tut-card__bot-link:hover {
    color: var(--tut-green-dark);
    gap: 7px;
}

.tut-card__bot-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* QR toggle button */
.tut-qr-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tut-muted);
    background: var(--tut-bg);
    border: 1px solid var(--tut-border);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
}

.tut-qr-toggle:hover {
    border-color: var(--tut-green);
    color: var(--tut-green);
}

.tut-qr-toggle svg {
    width: 15px;
    height: 15px;
}

/* QR panel */
.tut-qr-panel {
    width: 100%;
    padding: 10px 16px;
    border-top: 1px solid var(--tut-border);
    display: flex;
    justify-content: center;
}

.tut-qr-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    display: block;
}

/* ─── PAGINATION ─────────────────────────────────────────── */
.tut-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tut-pagination a,
.tut-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 4px;
    border: 1px solid var(--tut-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--tut-muted);
    text-decoration: none;
    transition: all 0.18s;
}

.tut-pagination a:hover {
    border-color: var(--tut-green);
    color: var(--tut-green);
    background: var(--tut-green-bg);
}

.tut-pagination .current {
    background: var(--tut-green);
    color: #fff;
    border-color: var(--tut-green);
    font-weight: 600;
}

.tut-pagination .dots {
    border-color: transparent;
    pointer-events: none;
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.tut-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--tut-muted);
}

.tut-empty svg {
    width: 48px;
    height: 48px;
    opacity: 0.35;
    margin-bottom: 14px;
    display: block;
    margin-inline: auto;
}

.tut-empty p { font-size: 15px; }

/* ─── ROLES SECTION ──────────────────────────────────────── */
.tut-roles {
    background: #fff;
}

.tut-roles__lead {
    max-width: 560px;
    margin-bottom: 40px;
}

.tut-roles__desc {
    font-size: 15px;
    color: var(--tut-muted);
    line-height: 1.75;
    margin: 0;
}

.tut-roles__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Role card */
.tut-role-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tut-role-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tut-role-card__icon svg {
    width: 22px;
    height: 22px;
}

.tut-role-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tut-text);
    line-height: 1.35;
    margin: 0;
}

.tut-role-card__desc {
    font-size: 13px;
    color: var(--tut-muted);
    line-height: 1.6;
    margin: 0;
}

/* ─── THE_CONTENT AREA ───────────────────────────────────── */
.tut-content {
    padding-top: 40px;
    padding-bottom: 60px;
}

.tut-content > * + * {
    margin-top: 1rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

/* 1024px — roles 3 col */
@media (max-width: 1024px) {
    .tut-roles__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* 900px — grid 2 col */
@media (max-width: 900px) {
    .tut-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 640px — stack everything */
@media (max-width: 640px) {
    .tut-section {
        padding: 48px 0;
    }

    .tut-banner {
        padding: 60px 20px;
    }

    .tut-container {
        padding: 0 16px;
    }

    .tut-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tut-card__head {
        height: 120px;
    }

    .tut-roles__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* 400px — roles 1 col */
@media (max-width: 400px) {
    .tut-roles__grid {
        grid-template-columns: 1fr;
    }

    .tut-pill {
        font-size: 11px;
        padding: 4px 8px;
    }
}