@font-face {
    font-family: 'TD Cyrillic';
    src: url('TDCyrillic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Izvod';
    src: url('Izvod.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

#container {
    width: 100%;
    height: 100%;
    cursor: default;
    overflow: hidden;
}

.edge-blur {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; /* Пропускает клики насквозь */
    z-index: 5; /* Поверх контейнера, но ниже интерфейса */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Размываем только края, оставляя центр кристально чистым */
    mask-image: radial-gradient(circle at center, transparent 40%, black 100%);
    -webkit-mask-image: radial-gradient(circle at center, transparent 40%, black 100%);
}

#parallax-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 50; 
    perspective: 1200px;
}

.p-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    transition: transform 0.1s ease-out;
    pointer-events: auto;
    transform-origin: center;
    cursor: pointer;
}

.p-item::before {
    content: '';
    position: absolute;
    top: 90%; 
    left: 50%;
    width: clamp(190px, 50vmin, 360px); 
    height: clamp(150px, 40vmin, 280px);
    transform: translate(-50%, -50%);
    background: url('5.png') center/contain no-repeat;
    z-index: -2; 
    pointer-events: none;
}

.matrix-bg {
    position: absolute;
    top: 60%; 
    left: 50%;
    width: clamp(100px, 38vmin, 270px);
    height: clamp(100px, 38vmin, 270px);
    transform: translate(-50%, -50%);
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    justify-content: space-around;

    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    opacity: 0.8;
}

.matrix-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes sunRaysRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.parallax-img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease, scale 0.5s ease;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    width: clamp(85px, 14vmin, 155px); 
    height: auto;
    pointer-events: auto;
    scale: 1;
}

#pi1 { margin-top: calc(-8vh - 3vmin); left: 50%; margin-left: clamp(-250px, -18vw, -100px); z-index: 11; }
#pi1 .parallax-img { transform: rotateY(14deg) rotateX(8deg); }

#pi2 { margin-top: calc(17vh + 2vmin); left: 50%; margin-left: clamp(-230px, -16vw, -80px); z-index: 13; }
#pi2 .parallax-img { transform: rotateY(8deg) rotateX(-3deg); }

#pi3 { margin-top: calc(-7vh - 4vmin); left: 50%; margin-left: clamp(100px, 18vw, 250px); z-index: 10; }
#pi3 .parallax-img { transform: rotateY(-14deg) rotateX(8deg); }

#pi4 { margin-top: calc(18vh + 3vmin); left: 50%; margin-left: clamp(80px, 16vw, 230px); z-index: 14; }
#pi4 .parallax-img { transform: rotateY(-10deg) rotateX(-4deg); }

.p-item:hover .parallax-img {
    scale: 1.05;
}

#parallax-container {
    transition: opacity 1s ease, filter 1s ease;
}

#parallax-container.faded {
    opacity: 0;
    filter: blur(10px);
    pointer-events: none;
}

.orthodox-font {
    font-family: 'Piazzolla', serif;
    font-weight: 900;
}

.main-slogan {
    position: fixed;
    top: 18%; 
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    width: clamp(210px, min(50vw, 42vh), 420px); 
    opacity: 0;
    animation: sloganFadeIn 2.4s ease forwards;
    animation-delay: 1.2s;
}

.slogan-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@keyframes sloganFadeIn {
    from { opacity: 0; transform: translate(-50%, -55%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

#item-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: transparent;
    z-index: 300;
    display: block; 
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
}

#item-modal.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.close-item-modal {
    position: absolute;
    top: -20px;
    right: -20px;
    background: rgba(139, 90, 43, 0.95);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.close-item-modal:hover {
    background: #8b5a2b;
    transform: scale(1.1);
}

.close-item-modal.old-style-close {
    position: fixed;
    top: 25px;
    right: 35px;
    background: transparent !important;
    color: #5d3a1a; 
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    width: 60px;
    height: 60px;
    font-size: 44px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center; 
}

.old-style-close:hover {
    color: #8b5a2b;
    transform: scale(1.2); 
}

.item-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--applied-scale, 1));
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center center;
}

#console-ui.console-modal-wrapper {
    top: 70px !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    transform-origin: top center !important;
    width: 90%;
    max-width: 920px;
    height: calc(100vh - 140px); 
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px 40px 20px;
}

.scroll-bg {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

.angel-overlay {
    position: absolute;
    bottom: -10%; 
    right: -10%; 
    height: 32%; 
    z-index: 50; 
    pointer-events: none; 
    filter: drop-shadow(-8px 10px 20px rgba(0,0,0,0.4));
    animation: floatAngel 4s ease-in-out infinite alternate;
}

@keyframes floatAngel {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

.floating-code {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    color: #5d3a1a; 
    font-weight: bold;
    font-size: 32px; 
    z-index: 5; 
    pointer-events: none;
    white-space: nowrap;
    border-right: 3px solid rgba(93, 58, 26, 0.7); 
    padding-right: 3px;
    animation: cursorBlink 0.8s step-end infinite;
}

.console-modal-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.main-content-console {
    width: 100%;
    flex: 1; 
    min-height: 200px;
}

.bottom-typing-console {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.divine-console {
    background: rgba(255, 250, 242, 0.85); 
    border: 1px solid rgba(139, 90, 43, 0.15);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(93, 58, 26, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(15px);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px; 
    text-shadow: 0 0 1px rgba(93, 58, 26, 0.2); 
    transition: all 0.5s ease;
}

.console-header {
    height: 40px;
    background: rgba(93, 58, 26, 0.08);
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(139, 90, 43, 0.1);
    justify-content: space-between;
}

.header-controls {
    display: flex;
    gap: 8px;
}

.console-header .dot {
    width: 12px; height: 12px; border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.1s ease; 
    position: relative; 
}

.dot.close-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;   
    height: 24px;
    background: transparent;
    border-radius: 50%;
}

.dot.close-dot {
    cursor: pointer;
}

.dot.close-dot:hover {
    filter: brightness(1.2);
    transform: scale(1.3);
}
.dot.red { background: #d9b89b; }    
.dot.yellow { background: #c6a27a; } 
.dot.green { background: #8b5a2b; }  

.console-title {
    color: rgba(93, 58, 26, 0.6);
    font-size: 14px;
    margin-left: 15px;
    font-weight: bold;
}

.console-body {
    flex: 1;
    overflow-y: auto;
    color: #5d3a1a; 
    font-size: 14px; 
    line-height: 1.4;
}

.main-content-console .console-body {
    padding: clamp(15px, 3vw, 30px);
}

.bottom-typing-console .console-body {
    padding: 15px clamp(15px, 3vw, 30px) 15px;
}

.console-body::-webkit-scrollbar { width: 8px; }
.console-body::-webkit-scrollbar-track { background: rgba(93, 58, 26, 0.05); }
.console-body::-webkit-scrollbar-thumb { background: rgba(93, 58, 26, 0.2); border-radius: 4px; }

.modal-text {
    max-width: 800px;
    margin: 0 auto;
}

.modal-text h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #8b5a2b;
    font-family: 'TD Cyrillic', serif;
    font-size: 28px; 
    letter-spacing: 0.02em;
}

.games-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.game-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(139, 90, 43, 0.1);
    transition: transform 0.3s ease;
}

.game-card:hover { transform: translateY(-5px); }
.game-card img { width: 100%; display: block; }

.console-line {
    margin: 0 0 5px 0;
    word-wrap: break-word;
    font-size: 14px;
}

.console-socials {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    padding: 0 clamp(15px, 3vw, 30px);
    margin-top: 0;
}

.console-socials > * {
    flex: 1 1 0;
    min-width: 0;
}

.console-output-socials .console-socials {
    margin-top: 0;
}

.console-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 0;
    padding: 10px 8px 8px;
    border: 1px solid rgba(139, 90, 43, 0.18);
    border-radius: 8px;
    background: rgba(93, 58, 26, 0.05);
    color: #5d3a1a;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.console-social-icon {
    width: clamp(70px, 10vw, 90px);
    object-fit: contain;
    flex-shrink: 0;
}

.console-social-label {
    margin-top: 6px;
    font-size: clamp(10px, 1.5vw, 13px);
    line-height: 1.1;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

.console-social-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
    background: rgba(93, 58, 26, 0.1);
    border-color: rgba(139, 90, 43, 0.28);
}

.console-cursor {
    display: inline-block;
    width: 10px;
    height: 16px;
    background: #8b5a2b;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 4px;
}

@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 780px) {

    .console-socials {
        flex-wrap: nowrap;
    }
}

#item-modal-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 30px;
    height: 88%; 
    overflow: hidden; 
    padding: 0px 0px 0px 65px;
    font-family: 'Alegreya', serif;
    color: #5d3a1a;
    text-shadow: 0.3px 0.3px 0.5px rgba(93, 58, 26, 0.4);
    display: flex;
    flex-direction: column;
}

#item-modal-body h2,
#item-modal-body .modal-text {
    mix-blend-mode: multiply;
    opacity: 0.95;
}

@keyframes modalIn {
    from { 
        transform: translate(-50%, -40%) scale(calc(var(--applied-scale, 1) * 0.9)); 
        opacity: 0; 
    }
    to { 
        transform: translate(-50%, -50%) scale(var(--applied-scale, 1)); 
        opacity: 1; 
    }
}

#close-item-modal {
    position: absolute;
    top: 35px;
    right: 40px;
    background: none;
    border: none;
    font-size: 36px;
    color: #5d3a1a;
    cursor: pointer;
    transition: scale 0.3s ease, filter 0.3s ease;
    z-index: 2;
}

#close-item-modal:hover { color: #333; }

#item-modal h2 {
    font-size: 34px;
    font-family: 'Piazzolla', serif;
    font-weight: 800;
    margin-bottom: 0;

    padding: 0px 25px 10px 0;
    text-align: center;
    color: #5d3a1a;
    letter-spacing: -0.02em;
    flex-shrink: 0; 
}

.modal-text {
    font-size: 18px;
    margin-top: 30px; 
    padding-right: 20px;
    padding-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0.5px 0.5px 1px rgba(93, 58, 26, 0.25); 
    flex: 1; 
    overflow-y: auto; 
    overflow-x: hidden;
}

.modal-text p { margin-bottom: 20px; }

.modal-text ul { list-style: none; padding-left: 0; }

.modal-text li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    list-style: none;
}

.modal-text li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #8b5a2b;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
}

.console-manual {
    font-family: 'JetBrains Mono', monospace;
}

.manual-header {
    background: rgba(93, 58, 26, 0.1);
    padding: 5px 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
    color: #8b5a2b;
    text-transform: uppercase;
    font-size: 14px; 
    letter-spacing: 0.1em;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.curriculum-card {
    display: flex;
    gap: 15px;
    background: rgba(93, 58, 26, 0.05);
    border: 1px solid rgba(139, 90, 43, 0.1);
    padding: 12px;
    border-radius: 8px;
    height: 100%;
    box-sizing: border-box;
}

.module-img-box {
    flex-shrink: 0;
    width: 65px;
    overflow: hidden;
}

.advantages-grid .module-img-box {
    width: 100px; 
}

.advantages-grid .module-img-box img {
    margin-bottom: -12px; 
    clip-path: inset(0 0 12px 0);
}

.module-img-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: -17px; 
    clip-path: inset(0 0 17px 0); 
}

.curriculum-ribbon {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 10px 0;
}

.curriculum-ribbon img {
    height: auto;
    width: auto;
    filter: sepia(0.2) contrast(1.1);
}

.ribbon-7 img {
    max-height: 400px;
    max-width: calc((100% - 60px) / 7);
}

.ribbon-4 img {
    max-height: 366px;
    max-width: calc((100% - 30px) / 4);
}

.ribbon-2 img {
    max-height: 366px;
    max-width: calc((100% - 10px) / 2);
}

.module-text {
    flex: 1;
}

.module-text .cmd {
    color: #8b5a2b;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    opacity: 0.8;
}

.module-text p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 780px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
}

.full-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.service-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-layout-training {
    gap: 10px;
}

.service-hero,
.service-benefit-card,
.service-social-card {
    background: rgba(93, 58, 26, 0.05);
    border: 1px solid rgba(139, 90, 43, 0.1);
    border-radius: 8px;
}

.service-hero {
    overflow: hidden;
}

.service-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.service-copy {
    padding: 18px;
}

.service-copy .cmd,
.service-benefit-card .cmd {
    color: #8b5a2b;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    opacity: 0.8;
}

.service-copy p,
.service-benefit-card p {
    margin: 0;
    line-height: 1.6;
}

.service-benefits,
.service-socials {
    display: grid;
    gap: 18px;
}

.service-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-benefit-card {
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.service-benefit-copy {
    flex: 1;
}

.service-benefit-icon {
    width: clamp(80px, 12vw, 140px);
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0;
    flex-shrink: 0;
}

.service-socials {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-social-card {
    padding: 18px 12px;
    text-align: center;
    font-weight: bold;
    color: #5d3a1a;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.full-card {
    display: flex;
    flex-direction: column;
    background: rgba(93, 58, 26, 0.05);
    border: 1px solid rgba(139, 90, 43, 0.1);
    padding: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}

.full-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.full-text {
    margin-top: 12px;
}

.full-text .cmd {
    color: #8b5a2b;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    opacity: 0.8;
}

.full-text p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .full-grid {
        grid-template-columns: 1fr;
    }

    .service-benefits,
    .service-socials {
        grid-template-columns: 1fr;
    }
}

.label {
    color: #8b5a2b;
    font-weight: bold;
    margin-right: 8px;
}

.advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-list li {
    margin-bottom: 12px;
    padding-left: 0 !important;
}

.advantage-list li::before {
    display: none !important; 
}

.instructor-card {
    display: flex;
    gap: 20px;
    background: rgba(93, 58, 26, 0.05);
    border: 1px solid rgba(139, 90, 43, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.instructor-photo-box {
    flex-shrink: 0;
    width: 140px;
    height: 180px;
    border: 2px solid #8b5a2b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(93, 58, 26, 0.15);
}

.instructor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1); 
}

.instructor-info {
    flex-grow: 1;
}

.instructor-name {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #5d3a1a;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    letter-spacing: -0.02em;
}

.instructor-edu {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.instructor-bio p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .instructor-card {
        flex-direction: column;
        align-items: left;
        text-align: left;
    }
    .instructor-photo-box {
        width: 160px;
        height: 200px;
        margin-bottom: 15px;
    }
}

.gallery-title {
    font-family: 'Piazzolla', serif;
    font-weight: 800;
    font-size: 22px;
    color: #5d3a1a;
    text-align: center;
    margin: 30px 0 15px;
    letter-spacing: 0.02em;
}

.main-footer {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    z-index: 999;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.footer-about-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
    font-size: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-about-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
    .main-footer {
        bottom: 25px;
        text-align: center;
        white-space: normal;
    }
}

.about-socials {
    display: flex;
    flex-direction: column;
  
    margin-top: 20px;
}

.about-social-icons {
    display: flex;
    justify-content: center;
}

.about-social-icons > * {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.about-social-icons > *:first-child {
    margin-left: 30px;
}

.about-social-icons > *:nth-child(2) {
    margin-left: 50px;
}

.about-social-icons > *:nth-child(3) {
    margin-left: 15px;
}
.about-social-icons > *:nth-child(4) {
    margin-left: 35px;
}

.about-social-names {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.about-social-names > * {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.about-social-names > *:first-child {
    margin-left: 0px;
}

.about-social-names > *:nth-child(2) {
    margin-left: 0px;
}

.about-social-names > *:nth-child(3) {
    margin-left: 0px;
}
.about-social-names > *:nth-child(4) {
    margin-left: 0px;
}

.about-social-link {
    display: block;
    line-height: 0;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.about-social-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.about-social-icon {
  
    height: 50px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(93, 58, 26, 0.15));
    transition: filter 0.25s ease;
}

.about-social-link:hover .about-social-icon {
    filter: drop-shadow(0 6px 14px rgba(93, 58, 26, 0.4));
}

.viber-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(93, 58, 26, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 2500;
}

.viber-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.viber-popup {
    position: relative;
    width: min(360px, calc(100vw - 40px));
    padding: 28px 26px 22px;
    border: 1px solid rgba(139, 90, 43, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(250, 242, 230, 0.98) 100%);
    box-shadow: 0 24px 60px rgba(93, 58, 26, 0.18);
    color: #5d3a1a;
    text-align: center;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.viber-popup-overlay.is-visible .viber-popup {
    transform: translateY(0) scale(1);
}

.viber-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(93, 58, 26, 0.08);
    color: #8b5a2b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.viber-popup-close:hover {
    transform: scale(1.08);
    background: rgba(93, 58, 26, 0.14);
    color: #5d3a1a;
}

.viber-popup-title {
    margin: 0 0 10px;
    color: #8b5a2b;
    font-family: 'Piazzolla', serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.viber-popup-text {
    margin: 0 0 14px;
    color: rgba(93, 58, 26, 0.82);
    font-size: 16px;
    line-height: 1.5;
}

.viber-popup-phone {
    display: inline-block;
    color: #5d3a1a;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 90, 43, 0.24);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.viber-popup-phone:hover {
    color: #8b5a2b;
    border-color: rgba(139, 90, 43, 0.55);
}

@media (max-width: 600px) {
    .viber-popup {
        width: min(340px, calc(100vw - 30px));
        padding: 24px 20px 18px;
        border-radius: 16px;
    }

    .viber-popup-title {
        font-size: 24px;
    }

    .viber-popup-text {
        font-size: 15px;
    }

    .viber-popup-phone {
        font-size: 19px;
    }
}

.about-social-name {
    font-size: 14px;
    line-height: 1.2;
    color: #5d3a1a;
    font-weight: bold;
    letter-spacing: 0.04em;
}

.games-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
    margin-top: 10px;
}

.game-card {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(93, 58, 26, 0.15);
    display: flex;
    flex-direction: column;
    background: rgba(93, 58, 26, 0.05); 
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 58, 26, 0.15);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center; 
    display: block;
    border-bottom: 1px solid rgba(93, 58, 26, 0.1);
    flex-grow: 1;
}

.game-title {
    padding: 10px 12px; 
    text-align: left; 
    color: #5d3a1a;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .games-gallery {
        grid-template-columns: 1fr; 
    }
}

.modal-text::-webkit-scrollbar {
    width: 6px;
}

.modal-text::-webkit-scrollbar-track {
    background: transparent;
}

.modal-text::-webkit-scrollbar-thumb {
    background: #8b5a2b !important;
    border-radius: 3px;
}

.modal-text::-webkit-scrollbar-thumb:hover {
    background: #6a4a20 !important;
}

.modal-text {
    scrollbar-width: thin;
    scrollbar-color: #8b5a2b transparent;
}

