* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: white;
    --white: #ffffff;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    color: #333;
    line-height: 1.6;
}
.kontakt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.kontakt-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.kontakt-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

.kontakt-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

section {
    /*background: rgba(255, 255, 255, 0.95);*/
    border-radius: 15px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }

.kontakt-section-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.kontakt-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #764ba2;
    transition: width 0.3s ease;
}

section:hover .kontakt-section-title::after {
    width: 100px;
}

.kontakt-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kontakt-staff-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.kontakt-staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.kontakt-staff-card:hover::before {
    left: 100%;
}

.kontakt-staff-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.kontakt-staff-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 8px;
}

.kontakt-staff-position {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 10px;
}

.kontakt-staff-room {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 5px;
}

.kontakt-teachers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kontakt-teachers-table th {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    position: relative;
}

.kontakt-teachers-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.kontakt-teachers-table th.sortable:hover {
    background: linear-gradient(135deg, #5568d3, #6a3f8f);
}

.kontakt-teachers-table th.sortable .sort-arrow {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.kontakt-teachers-table th.sortable:hover .sort-arrow {
    opacity: 1;
}

.kontakt-teachers-table th.sortable[data-sort="asc"] .sort-arrow {
    opacity: 1;
    transform: rotate(180deg);
}

.kontakt-teachers-table th.sortable[data-sort="asc"] .sort-arrow::before {
    content: '↑';
    font-size: 16px;
}

.kontakt-teachers-table th.sortable[data-sort="desc"] .sort-arrow {
    opacity: 1;
}

.kontakt-teachers-table th.sortable[data-sort="desc"] .sort-arrow::before {
    content: '↓';
    font-size: 16px;
}

.kontakt-teachers-table th.sortable[data-sort="asc"] .sort-arrow,
.kontakt-teachers-table th.sortable[data-sort="desc"] .sort-arrow {
    display: none;
}

.kontakt-teachers-table th.sortable[data-sort="asc"]::after {
    content: ' ↑';
    font-size: 16px;
    margin-left: 5px;
}

.kontakt-teachers-table th.sortable[data-sort="desc"]::after {
    content: ' ↓';
    font-size: 16px;
    margin-left: 5px;
}

.kontakt-teachers-table td {
    color: gray;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    transition: background-color 0.3s ease;
}

.kontakt-teachers-table tr:hover td {
    background-color: #f7fafc;
    transform: scale(1.01);
}

.kontakt-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

.kontakt-modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-height: 85vh;
    /* max-width now controlled by CSS variable in modals.css */
    position: relative;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}




.kontakt-modal-name {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 5px;
    padding-right: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.kontakt-modal-position {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 500;
}

.kontakt-modal-info {
    display: grid;
    gap: 15px;
}

.kontakt-info-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 10px 0;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.kontakt-info-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.kontakt-info-label {
    font-weight: bold;
    margin-right: 10px;
    color: #4a5568;
    min-width: 80px;
}

.kontakt-info-value {
    color: #2d3748;
}

.kontakt-info-value a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kontakt-info-value a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.kontakt-commission-members {
    margin-top: 15px;
    padding: 0;
}

.kontakt-members-title {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 0;
}

.kontakt-members-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.kontakt-members-list li {
    padding: 10px 15px;
    margin: 5px 0;
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid #667eea;
    border-radius: 4px;
    color: #2d3748;
    transition: all 0.3s ease;
}

.kontakt-members-list li:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
    border-left-width: 4px;
}

.kontakt-consultations-section {
    margin-top: 20px;
    background: linear-gradient(135deg, #f5f9ff, #f0f7ff);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #667eea;
}

.kontakt-consultations-title {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.kontakt-subject-consultations {
    margin-bottom: 20px;
}

.kontakt-subject-consultations:last-child {
    margin-bottom: 0;
}

.kontakt-subject-name {
    background: none;
    color: #2d3748;
    padding: 0;
    border-radius: 0;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    margin-top: 8px;
    display: block;
}

.kontakt-consultations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kontakt-consultation-item {
    background: white;
    padding: 12px 15px;
    border-left: 4px solid #48bb78;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kontakt-consultation-day {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    font-size: 14px;
}

.kontakt-consultation-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #4a5568;
}

.kontakt-consultation-time,
.kontakt-consultation-classes,
.kontakt-consultation-room {
    font-size: 13px;
}

.kontakt-ainekomisjonid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.kontakt-ainekomisjoni-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kontakt-ainekomisjoni-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.kontakt-ainekomisjoni-card:hover::before {
    left: 100%;
}

.kontakt-ainekomisjoni-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.kontakt-ainekomisjoni-photo-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kontakt-ainekomisjoni-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kontakt-ainekomisjoni-card:hover .kontakt-ainekomisjoni-photo {
    transform: scale(1.1);
}

.kontakt-ainekomisjoni-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.kontakt-ainekomisjoni-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .kontakt-ainekomisjonid-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .kontakt-ainekomisjoni-photo-wrapper {
        height: 140px;
    }

    .kontakt-ainekomisjoni-info h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .kontakt-ainekomisjonid-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kontakt-ainekomisjoni-photo-wrapper {
        height: 120px;
    }

    .kontakt-ainekomisjoni-info {
        padding: 12px;
    }

    .kontakt-ainekomisjoni-info h3 {
        font-size: 0.9rem;
    }
}

.kontakt-support-description {
    background: linear-gradient(135deg, #f0f4ff, #e6f3ff);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    border-left: 4px solid #667eea;
}

.kontakt-support-tasks {
    margin-top: 15px;
}

.kontakt-support-tasks h4 {
    color: #4a5568;
    margin-bottom: 10px;
}

.kontakt-support-tasks ul {
    list-style: none;
    padding-left: 0;
}

.kontakt-support-tasks li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.kontakt-support-tasks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.kontakt-documents-list {
    margin-top: 15px;
}

.kontakt-documents-list h4 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.kontakt-documents-list a {
    display: block;
    padding: 12px 16px;
    margin: 8px 0;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    font-weight: 500;
    position: relative;
}

.kontakt-documents-list a::after {
    content: '→';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.kontakt-documents-list a:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.kontakt-documents-list a:hover::after {
    opacity: 1;
    right: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kontakt-floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.kontakt-floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.kontakt-floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.kontakt-floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.kontakt-floating-element:nth-child(3) {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}
/* Footer */
.kontakt-footer {
    background: linear-gradient(135deg, var(--text-dark), #374151);
    color: white;
    padding: 3rem 0 1rem;
}

.kontakt-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.kontakt-footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.kontakt-footer-section p, .kontakt-footer-section a {
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.kontakt-footer-section a:hover {
    color: white;
}

.kontakt-footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .kontakt-container {
        padding: 20px;
    }

    .kontakt-header h1 {
        font-size: 2rem;
    }

    section {
        padding: 20px;
    }

    .kontakt-staff-grid {
        grid-template-columns: 1fr;
    }

    .kontakt-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .kontakt-modal-content > h2:first-of-type,
    .kontakt-modal-header {
        padding: 20px 50px 15px 20px;
    }

    .kontakt-modal-content > *:not(h2):not(.close):not(.kontakt-close):not(.kontakt-modal-header) {
        padding-left: 20px;
        padding-right: 20px;
    }

    .kontakt-modal-content > *:last-child {
        padding-bottom: 20px;
    }
    .kontakt-teachers-table th {
        background: var(--primary-gradient);
        color: white;
        padding: 15px;
        font-size: 9pt;
        text-align: left;
        font-weight: 600;
    }

    .kontakt-teachers-table td {
        padding: 12px 15px;
        font-size: 9pt;
        border-bottom: 1px solid #e2e8f0;
        transition: background-color 0.3s ease;
    }
}
#kontakt-searchContainer{
    /*<!-- //position: fixed;
            top: 20px;
            right: 20px;
            z-index: 999;-->*/
            text-align: center;
            width: 300px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 25px;
            padding: 10px 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
}
.kontakt-staff-photo {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}
/*toopakkumised styles///*/
.kontakt-job-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 40px 0;
}

.kontakt-job-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInFromBottom 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.kontakt-job-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.kontakt-job-category:hover::before {
    left: 100%;
}

.kontakt-job-category:nth-child(1) { animation-delay: 0.2s; }
.kontakt-job-category:nth-child(2) { animation-delay: 0.4s; }

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kontakt-job-category:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.kontakt-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.kontakt-category-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 28px;
    background: var(--primary-gradient);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
    }
}

.kontakt-category-header h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.kontakt-category-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
}

.kontakt-job-positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.kontakt-job-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.kontakt-job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.kontakt-job-card:hover::before {
    transform: scaleX(1);
}

.kontakt-job-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.kontakt-job-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.kontakt-job-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.kontakt-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: center;
}

.kontakt-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.kontakt-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.kontakt-btn:hover::before {
    width: 300px;
    height: 300px;
}

.kontakt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.kontakt-btn:active {
    transform: translateY(0);
}

.kontakt-btn-secondary {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.kontakt-btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
}

/* Modal Styles */
.kontakt-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

.kontakt-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    margin: 3% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    /* max-width now controlled by CSS variable in modals.css */
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    animation: modalSlideIn 0.4s ease;
    backdrop-filter: blur(25px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.kontakt-modal-content > h2 {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #333;
    margin: 0;
    padding: 30px 60px 20px 30px;
    font-size: 2.5rem;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 20px 20px 0 0;
    z-index: 5;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kontakt-modal-content > h2:first-of-type {
    background: linear-gradient(45deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kontakt-modal-content > *:not(h2):not(.close):not(.kontakt-close):not(.kontakt-modal-header) {
    padding-left: 30px;
    padding-right: 30px;
}

.kontakt-modal-content > *:last-child {
    padding-bottom: 30px;
}

.kontakt-modal-content > h2:first-of-type + * {
    padding-top: 20px;
}

/* Smooth scrolling for modal content */
.kontakt-modal-content {
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
.kontakt-modal-content::-webkit-scrollbar {
    width: 8px;
}

.kontakt-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 20px 20px 0;
}

.kontakt-modal-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.kontakt-modal-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.kontakt-modal h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
}

.kontakt-modal h3 {
    color: #667eea;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.kontakt-modal p, .kontakt-modal li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.kontakt-modal ol, .kontakt-modal ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.kontakt-process-steps {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.kontakt-process-step {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

.kontakt-process-step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.kontakt-process-step h4 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.kontakt-application-form {
    background: var(--primary-gradient);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-top: 30px;
    text-align: center;
}

.kontakt-application-form h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.kontakt-application-form p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.kontakt-download-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kontakt-download-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.kontakt-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 100%;
    box-sizing: border-box;
}

.kontakt-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

 .kontakt-stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.kontakt-stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: white;
    display: block;
    margin-bottom: 8px;
}

.kontakt-stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .kontakt-header h1 {
        font-size: 2rem;
    }

    .kontakt-job-sections {
        gap: 30px;
        margin: 30px 0;
    }

    .kontakt-job-category {
        padding: 24px;
        border-radius: 16px;
    }

    .kontakt-category-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }

    .kontakt-category-icon {
        margin-right: 0;
        margin-bottom: 16px;
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .kontakt-category-header h2 {
        font-size: 1.5rem;
    }

    .kontakt-category-header p {
        font-size: 0.95rem;
    }

    .kontakt-job-positions {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kontakt-job-card {
        padding: 20px;
    }

    .kontakt-job-card h3 {
        font-size: 1.1rem;
    }

    .kontakt-job-card p {
        font-size: 0.9rem;
    }

    .kontakt-stats-container {
        gap: 16px;
    }

    .kontakt-stat-card {
        padding: 24px 20px;
    }

    .kontakt-stat-number {
        font-size: 2.2rem;
    }

    .kontakt-modal-content {
        margin: 5% auto;
        width: 95%;
        border-radius: 16px;
    }

    .kontakt-modal-content > h2:first-of-type,
    .kontakt-modal-header {
        padding: 20px 50px 15px 20px;
        font-size: 1.8rem;
    }

    .kontakt-modal-content > *:not(h2):not(.close):not(.kontakt-close):not(.kontakt-modal-header) {
        padding-left: 20px;
        padding-right: 20px;
    }

    .kontakt-modal-content > *:last-child {
        padding-bottom: 20px;
    }

    .kontakt-modal h2 {
        font-size: 1.8rem;
    }

    .kontakt-modal h3 {
        font-size: 1.3rem;
    }

    .kontakt-modal p, .kontakt-modal li {
        font-size: 1rem;
    }

    .kontakt-cta-buttons {
        align-items: stretch;
        gap: 12px;
    }

    .kontakt-btn {
        width: 75%;
        padding: 14px 24px;
    }

    .kontakt-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kontakt-card {
        padding: 24px 20px;
    }

    .kontakt-card h3 {
        font-size: 1.3rem;
    }

    .kontakt-vacancy-item,
    .kontakt-benefit-item {
        padding: 14px;
        font-size: 0.95rem;
    }

    .kontakt-benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 12px;
    }

    .kontakt-cta-section {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .kontakt-cta-section h2 {
        font-size: 1.6rem;
    }

    .kontakt-cta-section p {
        font-size: 1rem;
    }

    .kontakt-process-step {
        padding: 20px;
    }

    .kontakt-process-step h4 {
        font-size: 1.2rem;
    }

    .kontakt-application-form {
        padding: 28px 20px;
    }

    .kontakt-application-form h3 {
        font-size: 1.5rem;
    }

    .kontakt-hero h1 {
        font-size: 2rem;
    }

    .kontakt-hero p {
        font-size: 1rem;
    }

    .kontakt-requirement-list {
        padding: 20px;
    }

    .kontakt-contact-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .kontakt-job-category {
        padding: 20px;
    }

    .kontakt-category-header h2 {
        font-size: 1.3rem;
    }

    .kontakt-category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .kontakt-job-card {
        padding: 18px;
    }

    .kontakt-stat-number {
        font-size: 2rem;
    }

    .kontakt-card {
        padding: 20px 16px;
    }

    .kontakt-cta-section h2 {
        font-size: 1.4rem;
    }

    .kontakt-modal h2 {
        font-size: 1.5rem;
    }
}

.kontakt-scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.kontakt-scroll-progress {
    height: 100%;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    width: 0%;
    transition: width 0.3s ease;
}
.kontakt-hero {
    text-align: center;
    padding: 60px 0;
    color: white;
    margin-bottom: 40px;
}

.kontakt-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.kontakt-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stats .kontakt-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats .kontakt-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.kontakt-stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    color: #FFD700;
}

.kontakt-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.kontakt-card {
    background: #f2be00;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kontakt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.kontakt-card h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

.kontakt-vacancies {
    background: var(--primary-gradient);
    color: white;
}

.kontakt-vacancies h3 {
    color: white;
}

.kontakt-vacancy-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    margin: 12px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kontakt-vacancy-item:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

.kontakt-benefits {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
}

.kontakt-benefits h3 {
    color: white;
}

.kontakt-benefit-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    margin: 12px 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.kontakt-benefit-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.4);
}

.kontakt-benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 24px;
    flex-shrink: 0;
}

.kontakt-cta-section {
    text-align: center;
    padding: 48px 32px;
    background: rgba(11, 245, 61, 0.49);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kontakt-cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.kontakt-cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.kontakt-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    text-decoration: none;
    display: inline-block;
}

.kontakt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.kontakt-btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Модальные окна */
.kontakt-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.kontakt-modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    /* max-width now controlled by CSS variable in modals.css */
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}


.kontakt-modal-content > h2:not(:first-of-type) {
    margin-top: 20px;
    margin-bottom: 20px;
}

.kontakt-modal h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.35rem;
}

.kontakt-modal h3 {
    color: #f5576c;
    margin: 20px 0 10px;
}

.kontakt-requirement-list {
    background: #ffcf6d;
    padding: 24px;
    color: #ffffff;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.kontakt-requirement-list li {
    margin: 12px 0;
    padding-left: 24px;
    position: relative;
    color: #ffffff;
    line-height: 1.6;
}


.kontakt-highlight {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.kontakt-contact-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border-left: 4px solid #667eea;
}

.kontakt-contact-info h3 {
    color: #667eea;
    margin-bottom: 16px;
}

.kontakt-contact-detail {
    color: #2d3748;
    margin: 10px 0;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-info {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
}

.contact-info h3 {
    color: #8B4513;
    margin-bottom: 15px;
}

.contact-detail {
    margin: 10px 0;
    font-weight: 500;
}

.highlight {
    background: linear-gradient(120deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Modal and staff display styles */
.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.modal-name {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.modal-position {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 500;
}

.modal-info {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.info-label {
    font-weight: bold;
    margin-right: 10px;
    color: #4a5568;
    min-width: 80px;
}

.info-value {
    color: #2d3748;
}

.info-value a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Ripple effect animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Fade-in animation for staff cards */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Support staff card styles (dynamically created) */
.staff-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.staff-card:hover::before {
    left: 100%;
}

.staff-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.staff-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 8px;
}

.staff-position {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 10px;
}

.staff-room {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 5px;
}

/* Job listings and benefits styling */
.kontakt-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.kontakt-card {
    background: #fec437;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kontakt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.kontakt-card h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.kontakt-vacancies {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.kontakt-vacancies h3 {
    color: white;
}

.kontakt-vacancy-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.kontakt-vacancy-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.kontakt-benefits {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.kontakt-benefits h3 {
    color: white;
}

.kontakt-benefit-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.kontakt-benefit-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.kontakt-benefit-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.kontakt-cta-section {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #99f892  0%, #f55959  100%);
    border-radius: 20px;
    margin: 40px 0;
}

.kontakt-requirement-list {
    background: #ffcf6d;
    padding: 27.5px;
    border-radius: 10px;
    margin: 15px 0;
}

.kontakt-requirement-list li {
    margin: 10px 0;
    padding-left: 10px;
    position: relative;
}


.kontakt-contact-info {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
}

.kontakt-contact-info h3 {
    color: #8B4513;
    margin-bottom: 15px;
}

.kontakt-contact-detail {
    margin: 10px 0;
    font-weight: 500;
}

.kontakt-highlight {
    background: linear-gradient(120deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.kontakt-btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.kontakt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* Modal content - unprefixed classes for dynamically generated content */
.consultations-section {
    margin-top: 20px;
    background: linear-gradient(135deg, #f5f9ff, #f0f7ff);
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #667eea;
}

.consultations-title {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.subject-consultations {
    margin-bottom: 20px;
}

.subject-consultations:last-child {
    margin-bottom: 0;
}

.subject-name {
    background: none;
    color: #2d3748;
    padding: 0;
    border-radius: 0;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    margin-top: 8px;
    display: block;
}

.consultations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consultation-item {
    background: white;
    padding: 12px 15px;
    border-left: 4px solid #48bb78;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.consultation-day {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    font-size: 14px;
}

.consultation-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #4a5568;
}

.consultation-time,
.consultation-classes,
.consultation-room {
    font-size: 13px;
}

.support-description {
    background: linear-gradient(135deg, #f0f4ff, #e6f3ff);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    border-left: 4px solid #667eea;
}

.support-tasks {
    margin-top: 15px;
}

.support-tasks h4 {
    color: #4a5568;
    margin-bottom: 10px;
}

.support-tasks ul {
    list-style: none;
    padding-left: 0;
}

.support-tasks li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.support-tasks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.documents-list {
    margin-top: 15px;
}

.documents-list h4 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.documents-list a {
    display: block;
    padding: 12px 16px;
    margin: 8px 0;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    font-weight: 500;
    position: relative;
}

.documents-list a::after {
    content: '→';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.documents-list a:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.documents-list a:hover::after {
    opacity: 1;
    right: 12px;
}

@media (max-width: 768px) {
    .kontakt-hero h1 {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .kontakt-modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 95%;
    }

    /* Modal Header - Mobile */
    .kontakt-modal-header,
    .kontakt-modal-content > h2:first-of-type {
        padding: 20px 50px 15px 20px;
    }

    .kontakt-modal-content > *:not(h2):not(.close):not(.kontakt-close):not(.kontakt-modal-header) {
        padding-left: 20px;
        padding-right: 20px;
    }

    .kontakt-modal-content > *:last-child {
        padding-bottom: 20px;
    }

    .kontakt-modal-name {
        font-size: 1.3rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding-right: 5px;
    }

    .kontakt-modal-position {
        font-size: 1rem;
    }

    /* Modal Info Items - Mobile */
    .kontakt-modal-info {
        gap: 10px;
    }

    .kontakt-info-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        text-align: left;
    }

    .kontakt-info-label {
        min-width: unset;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 13px;
    }

    .kontakt-info-value {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }

    /* Long emails and links - Mobile */
    .kontakt-info-value a {
        font-size: 13px;
        word-break: break-all;
        display: inline-block;
        max-width: 100%;
    }

    /* Commission Members - Mobile */
    .kontakt-commission-members {
        margin-top: 10px;
    }

    .kontakt-members-title {
        font-size: 14px;
        text-align: center;
        margin-bottom: 10px;
    }

    .kontakt-members-list li {
        padding: 8px 12px;
        font-size: 13px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Consultations Section - Mobile */
    .kontakt-consultations-section {
        padding: 15px;
        margin-top: 15px;
    }

    .kontakt-consultations-title {
        font-size: 15px;
        text-align: center;
        margin-bottom: 12px;
    }

    .kontakt-subject-name {
        font-size: 14px;
        text-align: center;
        margin-top: 10px;
    }

    .kontakt-consultation-item {
        padding: 10px;
        flex-direction: column;
        gap: 8px;
    }

    .kontakt-consultation-day {
        font-size: 13px;
        text-align: center;
    }

    .kontakt-consultation-details {
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
    }

    .kontakt-consultation-time,
    .kontakt-consultation-classes,
    .kontakt-consultation-room {
        font-size: 12px;
    }

    /* Documents List - Mobile */
    .kontakt-documents-list h4 {
        font-size: 14px;
        text-align: center;
        margin-bottom: 10px;
    }

    .kontakt-documents-list a {
        padding: 10px 12px;
        font-size: 13px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Support Description - Mobile */
    .kontakt-support-description {
        padding: 12px;
    }

    .kontakt-support-description h4 {
        font-size: 14px;
        text-align: center;
    }

    .kontakt-support-description p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Support Tasks - Mobile */
    .kontakt-support-tasks {
        padding: 12px;
    }

    .kontakt-support-tasks h4 {
        font-size: 14px;
        text-align: center;
        margin-bottom: 10px;
    }

    .kontakt-support-tasks li {
        font-size: 12px;
        padding: 5px 0 5px 20px;
    }

    /* Close Button - Mobile */
    .kontakt-close {
        font-size: 32px;
        padding: 5px 15px;
        top: 10px;
        right: 10px;
    }
}

/* Extra small devices (phones < 480px) */
@media (max-width: 480px) {
    .kontakt-modal-content {
        margin: 2% auto;
        width: 98%;
    }

    .kontakt-modal-header,
    .kontakt-modal-content > h2:first-of-type {
        padding: 15px 45px 12px 15px;
    }

    .kontakt-modal-content > *:not(h2):not(.close):not(.kontakt-close):not(.kontakt-modal-header) {
        padding-left: 15px;
        padding-right: 15px;
    }

    .kontakt-modal-content > *:last-child {
        padding-bottom: 15px;
    }

    .kontakt-modal-name {
        font-size: 1.1rem;
        padding-right: 5px;
    }

    .kontakt-info-item {
        padding: 10px;
    }

    .kontakt-info-label {
        font-size: 12px;
    }

    .kontakt-info-value {
        font-size: 13px;
    }

    .kontakt-info-value a {
        font-size: 12px;
    }

    .kontakt-members-list li {
        font-size: 12px;
        padding: 6px 10px;
    }

    .kontakt-consultation-details {
        font-size: 11px;
    }

    .kontakt-documents-list a {
        font-size: 12px;
        padding: 8px 10px;
    }

    /* Extra responsive fixes for very small screens */
    .kontakt-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

     /* Extra responsive fixes for very small screens */
    .kontakt-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra Small Mobile (<375px) */
@media (max-width: 374px) {
    .kontakt-container {
        padding: 10px;
    }

    .kontakt-header h1 {
        font-size: 1.75rem;
    }

    .kontakt-staff-grid,
    .kontakt-content-grid,
    .kontakt-ainekomisjonid-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kontakt-stats-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kontakt-staff-card,
    .kontakt-card {
        padding: 15px;
    }

    /* Improve touch targets */
    .kontakt-btn,
    .kontakt-close,
    button {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.25rem;
    }
}

/* Modal Vacancy Notice */
.kontakt-modal-vacancy-notice {
    background: linear-gradient(135deg, #FFF3CD, #FFECB5);
    border: 2px solid #FFC107;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.25);
    animation: pulseModalNotice 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.kontakt-modal-vacancy-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmerModal 3s infinite;
}

@keyframes pulseModalNotice {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(255, 193, 7, 0.25);
        border-color: #FFC107;
    }
    50% {
        box-shadow: 0 12px 30px rgba(255, 193, 7, 0.4);
        border-color: #FFB300;
    }
}

@keyframes shimmerModal {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.kontakt-modal-notice-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: bounceModal 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes bounceModal {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

.kontakt-modal-notice-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.kontakt-modal-notice-text strong {
    color: #856404;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.kontakt-modal-notice-text p {
    color: #664d03;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.kontakt-modal-notice-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px dotted #667eea;
}

.kontakt-modal-notice-text a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
    border-bottom-style: solid;
}

@media (max-width: 768px) {
    .kontakt-modal-vacancy-notice {
        flex-direction: column;
        padding: 18px;
        gap: 12px;
        text-align: center;
        margin-top: 25px;
    }

    .kontakt-modal-notice-icon {
        font-size: 2rem;
    }

    .kontakt-modal-notice-text strong {
        font-size: 1rem;
    }

    .kontakt-modal-notice-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .kontakt-modal-vacancy-notice {
        padding: 15px;
        border-width: 2px;
        margin-top: 20px;
    }

    .kontakt-modal-notice-icon {
        font-size: 1.8rem;
    }

    .kontakt-modal-notice-text strong {
        font-size: 0.95rem;
    }

    .kontakt-modal-notice-text p {
        font-size: 0.85rem;
    }

    .kontakt-modal-notice-text a {
        word-break: break-all;
    }
}

/* Generic Modal Styles (for job vacancy modals using .modal class) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    position: relative;
    animation: slideIn 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    margin-bottom: 20px;
    padding: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.modal-header h2 {
    margin: 0;
    color: #667eea;
    font-size: 1.8rem;
}

.modal-body {
    padding: 0 30px 30px 30px;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
    scroll-behavior: smooth;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3, #6a3f8f);
}

.modal-body h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    padding-bottom: 10px;
}

.modal-body p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.modal-body ul {
    margin: 20px 0;
    padding-left: 25px;
}

.modal-body li {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 1.05rem;
    position: relative;
}

.modal-body li::marker {
    color: #667eea;
    font-weight: bold;
}

.modal-body strong {
    color: #2d3748;
    font-weight: 600;
}

.modal-body em {
    color: #667eea;
    font-style: italic;
}

/* Close button for modal */
.modal .close {
    color: var(--primary-color);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    line-height: 1;
    z-index: 10;
}

.modal .close:hover,
.modal .close:focus {
    color: #000;
    text-decoration: none;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: center;
    }

    .modal-content {
        width: 95%;
        margin: auto;
        max-height: 90vh;
    }

    .modal-header {
        padding: 25px 20px 15px 20px;
    }

    .modal-header h2 {
        font-size: 1.6rem;
    }

    .modal-body {
        padding: 0 20px 20px 20px;
        max-height: calc(90vh - 100px);
    }

    .modal-body h3 {
        font-size: 1.3rem;
        margin-top: 20px;
    }

    .modal-body p,
    .modal-body li {
        font-size: 0.95rem;
    }

    .modal .close {
        top: 15px;
        right: 15px;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 5px;
    }

    .modal-content {
        width: 98%;
        margin: auto;
        border-radius: 16px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px 16px 12px 16px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 0 16px 16px 16px;
        max-height: calc(95vh - 90px);
    }

    .modal-body h3 {
        font-size: 1.2rem;
    }

    .modal-body p,
    .modal-body li {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .modal .close {
        top: 12px;
        right: 12px;
        font-size: 28px;
    }
}
