* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #eef2f7;
    color: #1f2937;
    font-size: 14px;
}

/*.page {*/
/*    height: 100vh;*/
/*    display: grid;*/
/*    grid-template-columns: 50% 50%;*/
/*}*/

/*.page {*/
/*    height: 100vh;*/
/*    display: grid;*/
/*    grid-template-columns: 50% 50%;*/
/*    background: repeating-linear-gradient(*/
/*            45deg,*/
/*            #ffffff,*/
/*            #ffffff 15px,*/
/*            #e6f0ff 15px,*/
/*            #dde8fa 30px*/
/*    );*/
/*}*/

.page {
    display: grid;
    grid-template-columns: 50% 50%;

    background-image: url("https://rpek.tech/back6.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*.left {*/
/*    padding: 28px;*/
/*    background: linear-gradient(#f8fafc, #eef2f7);*/
/*    border-right: 1px solid #d1d9e6;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

.left,
.right {
    padding: 28px;
    background: transparent; /* ← ВАЖНО */
    border-right: 1px solid #d1d9e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.identity {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #d1d9e6;
    padding: 18px 18px 20px;
}

.identity h1 {
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 600;
    text-align: center;
}

.role {
    font-weight: 600;
    margin-bottom: 12px;
    color: #2563eb;
    text-align: center;
}

.about {
    line-height: 1.55;
    color: #4b5563;
    margin-top: 12px;
}

/*.right {*/
/*    padding: 28px;*/
/*    background: linear-gradient(#f8fafc, #eef2f7);*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

.experience {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid #d1d9e6;
    padding: 12px;
}

h2 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.experience-item {
    border: 1px solid #d1d9e6;
    margin-bottom: 10px;
    background: #fafbfd;
}

.experience-title {
    background: linear-gradient(#fafbfd, #f1f5f9);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}

.experience-title:hover {
    background: #eef2f7;
}

.experience-title .title-text {
    flex: 1;
    min-width: 0;
}

.experience-period {
    font-weight: normal;
    font-size: 12px;
    color: #4b5563;
    white-space: nowrap;
}

.experience-content {
    padding: 16px 18px;
    border-top: 1px solid #d1d9e6;
    background: #ffffff;
}

.block {
    margin-bottom: 12px;
}

.block-title {
    font-weight: 600;
    margin-bottom: 3px;
    color: #111827;
}

.block-text {
    color: #4b5563;
    line-height: 1.55;
    padding-right: 6px;
}

.block-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.block-text a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .page {
        grid-template-columns: 1fr;
        height: auto;
    }

    .left,
    .right {
        padding: 16px;

    }

    .header-inner,
    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .header-nav a {
        margin: 0 8px;
    }

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

}

/*.experience-content {*/
/*    overflow: hidden;*/
/*    max-height: 0;*/
/*    opacity: 0;*/
/*    transform: translateY(-4px);*/
/*    transition:*/
/*            max-height 0.35s ease,*/
/*            opacity 0.25s ease,*/
/*            transform 0.25s ease;*/
/*}*/

/*.experience-content.open {*/
/*    opacity: 1;*/
/*    transform: translateY(0);*/
/*}*/

/*.experience-content-inner {*/
/*    padding: 12px 0 20px;*/
/*}*/


/*body {*/
/*    height: 100vh; !* Full viewport height *!*/
/*    margin: 0; !* Remove default margin *!*/
/*    background: repeating-linear-gradient(*/
/*            45deg, !* Angle of stripes *!*/
/*            rgb(255, 255, 255), !* Color of first stripe *!*/
/*            rgb(255, 255, 255) 15px, !* Length of first stripe *!*/
/*            rgb(188, 222, 255) 10px, !* Color of second stripe *!*/
/*            rgb(195, 225, 255) 20px !* Length of second stripe *!*/
/*    );*/
/*}*/
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid black;
    padding: 10px;
    margin-bottom: 10px;
    background-color: white;
}
.logo-container {
    display: flex;
    align-items: center;
}
.logo-container img {
    width: 120px;
    height: auto;
    margin-right: 10px;
}
.header-text h1 {
    font-size: 1.5rem;
}
.bs3{
    box-shadow: 1px 1px 0px #000,
    2px 2px 0px #000,
    3px 3px 0px #000,
    4px 4px 0px #000;
}

.header-text p {
    font-size: 0.9rem;
}
/* Tile styling */
.tile {
    font-size: 1.25rem;
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    border: 6px solid white;
    transition: border-color 0.3s ease-in-out;
    margin-bottom: 20px;
    height: 350px;
    border-radius: 10px;
}
.tile:hover {
    border-color: rgb(193, 224, 255);
}
.tile h4,
.tile p {
    background-color: rgb(255, 255, 255);
    padding: 5px;
    margin: 0;
    border-radius: 5px;
}
/* Map styling */
#map {
    width: 100%;
    height: 400px;
    border: 2px solid #ccc;
    border-radius: 10px;
}
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%; /* Aspect ratio of 16:9 */
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    border: 2px solid black;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.btn {
    font-size: 1.25rem;
}
.th {
    font-size: 1.5rem;
}


/* ===== Layout ===== */

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */

.header {
    background: #ffffff;
    border-bottom: 1px solid #d1d9e6;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-weight: 600;
    font-size: 16px;
    color: #111827;
}

.header-nav a {
    margin-left: 16px;
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
    font-size: 14px;
}

.header-nav a:hover {
    text-decoration: underline;
}

/* ===== Page ===== */

/*.page {*/
/*    flex: 1;*/
/*    display: grid;*/
/*    grid-template-columns: 50% 50%;*/
/*    background: repeating-linear-gradient(*/
/*            45deg,*/
/*            #ffffff,*/
/*            #ffffff 15px,*/
/*            #bcdeff 15px,*/
/*            #c3e1ff 30px*/
/*    );*/
/*}*/

/* ===== Footer ===== */

.footer {
    background: #ffffff;
    border-top: 1px solid #d1d9e6;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #4b5563;
}
