@font-face {
    font-family: 'DisneyLogo';
    src: url('photo/WaltographRegular.otf') format('opentype');
}

/* ===== BACKGROUND ===== */
.background {
    background: url("photo/Mickey Ears Disney Castle GIF by ABC Network (1).gif") center/cover no-repeat;
    position: fixed;
    inset: 0;
    z-index: -3;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: -2;
}

/* ===== HEADER ===== */
.header {
    width: 85%;
    margin: 20px auto 0 auto;
    background: rgba(255, 250, 240, 1);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 245, 230, 0.55);
    padding: 10px 26px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 22px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== LOGO ===== */
.logo {
    font-family: 'DisneyLogo', sans-serif;
    font-size: 32px;
    color: #000;
}

/* ===== NAVIGATION ===== */
.nav-center {
    display: flex;
    align-items: center;
    gap: 110px;
}

.nav-item {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    position: relative;
    padding: 2px 10px;
    transition: 0.3s ease;
}

/* ===== HOVER LIGHT ===== */
.hover-light {
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 60px;
    height: 16px;
    background: rgba(160, 120, 255, 0.7);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: 0.35s ease;
    filter: blur(6px);
    pointer-events: none;
}

.nav-item:hover .hover-light {
    transform: translateX(-50%) scale(1);
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,250,240,0.95);
    border-radius: 12px;
    padding: 10px 0;
    border: 1px solid rgba(0,0,0,0.1);
    width: 240px;
    text-align: center;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #000;
    text-decoration: none;
    font-size: 18px;
}

.dropdown-menu a:hover {
    background: rgba(160, 120, 255, 0.25);
}

.dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

/* ===== MICKEY PANEL (главная) ===== */
.mickey-panel {
    margin: 180px auto 0 auto;
    width: 75%;
    max-width: 950px;
    background: rgba(160, 120, 255, 0.18);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 35px 25px;
    box-shadow: 0 0 25px rgba(160,120,255,0.35);
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px #000;
}

/* ===== GRID ===== */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-items: center;
}

.task {
    width: 130px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.mickey-icon {
    width: 100px;
    transition: 0.3s ease;
}

.task:hover .mickey-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px #fff6a9);
}

.task p {
    margin-top: 6px;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 10px #000;
    font-weight: 600;
}

.subtitle {
    margin-top: 4px;
    font-size: 15px;
    color: #ffe9ff;
    text-shadow: 0 0 8px #000;
    font-weight: 500;
}

/* ===== PROJECT CARD (страницы заданий) ===== */
.project-card {
    margin: 180px auto 0 auto;
    width: 85%;
    max-width: 1100px;
    background: rgba(160, 120, 255, 0.18);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 50px;
    box-shadow: 0 0 30px rgba(160,120,255,0.4);
    display: flex;
    justify-content: space-between;
    gap: 40px;
    color: #fff;
    text-shadow: 0 0 10px #000;
}

/* Левая часть — описание задания */
.project-info {
    width: 40%;
}

.project-info h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.project-info h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.project-info p {
    font-size: 20px;
    line-height: 1.5;
}

/* Правая часть — код */
.project-code {
    width: 55%;
}

.project-code h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.project-code pre {
    background: rgba(30, 30, 30, 0.9);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
    overflow-x: auto;
    box-shadow: 0 0 15px rgba(160,120,255,0.3);
}

/* ===== FOOTER ===== */
footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: #fff;
    text-shadow: 0 0 10px #000;
    font-weight: 500;
}
/* ===== CONTACT CARD ===== */
.contact-card {
    margin: 180px auto 0 auto;
    width: 70%;
    max-width: 800px;
    background: rgba(160, 120, 255, 0.18);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 40px 30px;
    box-shadow: 0 0 25px rgba(160,120,255,0.35);
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px #000;
}

.contact-photo {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.contact-card h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-line {
    font-size: 18px;
    margin: 8px 0;
}

.contact-line span {
    color: #ffe9ff;
    font-weight: 600;
}

.back-btn {
    display: inline-block;
    margin-top: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(160,120,255,0.4);
    transition: 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.4);
    color: #000;
}
/* ===== PDF CONTAINER ===== */
.pdf-container {
    margin: 180px auto 0 auto;
    width: 80%;
    max-width: 900px;
    background: rgba(160, 120, 255, 0.18);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 0 25px rgba(160,120,255,0.35);
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px #000;
}

.pdf-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pdf-subtitle {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
}

.pdf-frame {
    display: block;
    margin: 0 auto 25px auto; /* центрирование */
    width: 90%;               /* растянуто, но с отступами */
    max-width: 1200px;        /* ограничение, чтобы не вылезало за экран */
    height: 750px;            /* увеличенная высота для красивого вида */
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(160,120,255,0.4);

}

/* ===== DOWNLOAD BUTTON ===== */
.pdf-download {
    display: inline-block;
    background: rgba(160,120,255,0.4);
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.pdf-download:hover {
    background: rgba(255,255,255,0.4);
    color: #000;
}
