:root {
    --bg-1: #f6f0ff;
    --bg-2: #e7dcff;
    --bg-3: #cdb4ff;
    --purple-900: #2b1149;
    --purple-800: #44207a;
    --purple-700: #6032b2;
    --purple-600: #7c4de0;
    --purple-500: #9d7af8;
    --purple-300: #d9c7ff;
    --text: #2e1f47;
    --muted: #5f5678;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.14);
    --shadow-soft: 0 25px 60px rgba(77, 46, 123, 0.18);
    --shadow-strong: 0 18px 40px rgba(61, 34, 99, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Be Vietnam Pro", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 34%, var(--bg-3) 100%);
    color: var(--text);
    position: relative;
    overflow-x: clip;
    isolation: isolate;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    font-family: "Patrick Hand", cursive;
    letter-spacing: 0.02em;
}

p {
    line-height: 1.7;
}

.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.blur-one {
    width: 360px;
    height: 360px;
    background: rgba(155, 112, 255, 0.7);
    top: 80px;
    left: 5%;
    animation: floatBlur 10s ease-in-out infinite;
}

.blur-two {
    width: 400px;
    height: 400px;
    background: rgba(101, 80, 186, 0.6);
    right: 8%;
    bottom: 10%;
    animation: floatBlur 12s ease-in-out infinite reverse;
}

@keyframes floatBlur {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.08);
    }
}

.navbar,
.container,
.gallery,
.footer {
    position: relative;
    z-index: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 6vw;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(93, 58, 141, 0.12);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--purple-900);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 30px rgba(115, 78, 178, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 12px 30px rgba(84, 67, 200, 0.4);
}

.nav {
    display: flex;
    align-items: center;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: fixed;
    top: 18px;
    right: 26px;
    z-index: 2000;
    background: rgba(84, 53, 146, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 12px 10px;
    box-shadow: 0 14px 30px rgba(28, 12, 48, 0.18);
}

.menu-icon span {
    width: 28px;
    height: 3px;
    background: var(--purple-900);
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-icon:hover span:nth-child(1) {
    transform: translateY(-1px);
}

.menu-icon:hover span:nth-child(3) {
    transform: translateY(1px);
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 270px;
    height: 100vh;
    background: rgba(30, 16, 52, 0.92);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 30px 40px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -12px 0 25px rgba(19, 9, 31, 0.2);
    z-index: 1500;
}

.side-menu.active {
    transform: translateX(0);
}

.menu-btn {
    color: var(--white);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.menu-btn:hover {
    color: #f6ebff;
    background: rgba(153, 121, 255, 0.18);
    transform: translateX(6px);
    box-shadow: 0 0 18px rgba(197, 173, 255, 0.3);
}

.container {
    width: min(1180px, 90%);
    margin: 80px auto 0;
    padding: 28px 0 0;
}

.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    position: relative;
}

.sparkle-field {
    position: absolute;
    inset: -20px 0 0;
    pointer-events: none;
    z-index: -1;
}

.sparkle {
    position: absolute;
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-family: Georgia, serif;
    font-size: 1.5rem;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 26px rgba(160, 115, 255, 0.72);
    animation: sparkleTwinkle 3.8s ease-in-out infinite;
}

.sparkle-one {
    top: 15%;
    left: 47%;
    animation-delay: 0.3s;
}

.sparkle-two {
    top: 30%;
    right: 5%;
    font-size: 2rem;
    animation-delay: 1.1s;
}

.sparkle-three {
    top: 66%;
    left: 4%;
    font-size: 1.1rem;
    animation-delay: 1.8s;
}

.sparkle-four {
    top: 9%;
    right: 34%;
    font-size: 2rem;
    animation-delay: 2.4s;
}

.sparkle-five {
    bottom: 10%;
    right: 13%;
    animation-delay: 0.8s;
}

.sparkle-six {
    bottom: 3%;
    left: 38%;
    font-size: 2.2rem;
    animation-delay: 2.8s;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    opacity: 0.55;
}

.hero::before {
    width: 460px;
    height: 460px;
    right: -100px;
    top: 10px;
    animation: orbitPulse 8s ease-in-out infinite;
}

.hero::after {
    width: 620px;
    height: 620px;
    right: -180px;
    top: -70px;
    border-style: dashed;
    animation: orbitSpin 28s linear infinite;
}

.hero-copy {
    padding-left: 8px;
    animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(123, 77, 202, 0.12);
    color: var(--purple-800);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(123, 77, 202, 0.12);
    animation: badgeFloat 4s ease-in-out 0.8s infinite;
}

.eyebrow.light {
    background: rgba(255, 255, 255, 0.08);
    color: #f7ebff;
    border-color: rgba(255, 255, 255, 0.1);
}

h1 {
    margin-top: 26px;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1;
    color: var(--purple-900);
    text-align: left;
}

.glow {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 20px rgba(156, 119, 255, 0.35);
    animation: titleGlow 4s ease-in-out infinite;
}

.hero-text {
    max-width: 620px;
    margin-top: 22px;
    font-size: 1.08rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.primary-btn,
.secondary-btn,
.tertiary-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 16px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn::after,
.secondary-btn::after,
.tertiary-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 48%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
}

.primary-btn:hover::after,
.secondary-btn:hover::after,
.tertiary-btn:hover::after {
    left: 135%;
}

.primary-btn {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
    color: var(--white);
    box-shadow: 0 18px 30px rgba(92, 54, 170, 0.28);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.5);
    color: var(--purple-900);
    border: 1px solid rgba(74, 45, 118, 0.08);
}

.tertiary-btn {
    background: linear-gradient(135deg, #f08acb, #9b55d6 55%, #6333ad);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 18px 30px rgba(132, 54, 156, 0.28);
}

.primary-btn:hover,
.secondary-btn:hover,
.tertiary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 35px rgba(92, 54, 170, 0.22);
}

.tertiary-btn:hover {
    background: linear-gradient(135deg, #ff9fda, #ae68e8 55%, #7444c2);
    box-shadow: 0 24px 40px rgba(132, 54, 156, 0.36);
}

.stats {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 42px;
}

.stat-item {
    min-width: 130px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(93, 58, 141, 0.08);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    animation: statRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.stat-item:nth-child(2) {
    animation-delay: 0.12s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.24s;
}

.stat-item:hover {
    transform: translateY(-8px) rotate(-2deg);
    background: rgba(255, 255, 255, 0.44);
    box-shadow: 0 22px 42px rgba(77, 46, 123, 0.25);
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    color: var(--purple-900);
}

.stat-item span {
    font-size: 0.82rem;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    animation: heroReveal 1s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.card-main {
    width: min(88%, 470px);
    height: 420px;
    transform: rotate(-4deg);
    animation: floatCard 7s ease-in-out infinite;
    transition: box-shadow 0.35s ease;
    will-change: transform;
}

.card-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.2), transparent 65%);
    transform: translateX(-120%);
    animation: imageSheen 6s ease-in-out 1.2s infinite;
    pointer-events: none;
}

.card-main:hover {
    box-shadow: 0 24px 55px rgba(61, 34, 99, 0.38);
}

.card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.class-switcher {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 16px;
    background: rgba(30, 11, 53, 0.64);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 26px rgba(24, 7, 43, 0.24);
}

.switcher-label {
    margin: 0 4px 0 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.class-option {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.84);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.class-option:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.class-option.is-active {
    background: var(--white);
    color: var(--purple-800);
    box-shadow: 0 6px 14px rgba(16, 3, 32, 0.2);
}

.card-mini {
    right: 8%;
    bottom: 8%;
    width: 220px;
    padding: 20px 18px;
    background: rgba(54, 23, 89, 0.8);
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(10px);
    transform: rotate(8deg);
    animation: floatCard 8s ease-in-out infinite reverse;
}

.mini-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
}

.card-mini strong {
    font-size: 2rem;
    line-height: 1;
}

.card-mini small {
    color: rgba(255, 255, 255, 0.85);
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }
    50% {
        transform: translateY(-16px) rotate(-2deg);
    }
}

.gallery {
    padding: 110px 8% 90px;
    background: linear-gradient(135deg, rgba(134, 101, 215, 0.94), rgba(108, 81, 195, 0.9));
    margin-top: 110px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    background-size: 180% 180%;
    animation: galleryGradient 14s ease infinite;
}

.gallery::before,
.gallery::after {
    content: "+";
    position: absolute;
    color: rgba(255, 255, 255, 0.45);
    font-family: Georgia, serif;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
    animation: sparkleTwinkle 4.5s ease-in-out infinite;
    pointer-events: none;
}

.gallery::before {
    top: 70px;
    left: 9%;
    font-size: 2.2rem;
}

.gallery::after {
    right: 11%;
    bottom: 75px;
    font-size: 1.4rem;
    animation-delay: 1.6s;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery h2 {
    margin-top: 16px;
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.gallery-grid.is-changing {
    opacity: 0.35;
    transform: translateY(8px);
}

.photo-card {
    width: 100%;
    height: 320px;
    perspective: 1200px;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.photo-card.show {
    opacity: 1;
    transform: translateY(0);
}

.photo-card:hover {
    z-index: 2;
}

.photo-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.photo-card:hover .photo-inner {
    transform: translateY(-4px) rotateX(2deg);
}

.photo-card.flip .photo-inner {
    transform: rotateY(180deg);
}

.photo-front,
.photo-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(30, 11, 58, 0.22);
}

.photo-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.placeholder-art {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(145deg, #c7b2ff 0%, #7756c7 48%, #32175e 100%);
    color: var(--white);
    text-align: center;
}

.placeholder-art span {
    font-family: "Patrick Hand", cursive;
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.9;
    text-shadow: 0 8px 20px rgba(26, 8, 57, 0.3);
}

.placeholder-art small {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.photo-card:hover .photo-front img {
    transform: scale(1.04);
}

.photo-back {
    background: linear-gradient(135deg, rgba(75, 35, 128, 0.98), rgba(118, 88, 197, 0.96));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.photo-back h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 12px;
}

.photo-back p {
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.photo-back a {
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--purple-800);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.photo-back a:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(18, 4, 37, 0.22);
}

.stars {
    position: fixed;
    inset: 0;
    background: transparent;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.stars::after {
    content: "";
    position: absolute;
    inset: -20% 0 0 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1.5px, transparent 1.5px);
    background-size: 90px 90px;
    animation: moveStars 55s linear infinite;
    opacity: 0.65;
}

@keyframes moveStars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-500px);
    }
}

.footer {
    background: linear-gradient(135deg, #14001f 0%, #1d0637 40%, #260a46 100%);
    color: var(--white);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: -250px;
    border: 1px solid rgba(217, 182, 255, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(217, 182, 255, 0.035), 0 0 0 60px rgba(217, 182, 255, 0.025);
    animation: orbitSpin 24s linear infinite reverse;
    pointer-events: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding: 0 80px 50px;
    flex-wrap: wrap;
}

.footer-column {
    width: min(32%, 360px);
}

.footer-column h3 {
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #d9b6ff;
    position: relative;
}

.footer-column h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #d9b6ff, #9b6ff1);
    margin-top: 8px;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(191, 144, 255, 0.7);
}

.footer-column p {
    margin-bottom: 12px;
    color: #d8c8f6;
    transition: transform 0.25s ease, color 0.25s ease;
}

.footer-column p:hover {
    color: var(--white);
    transform: translateX(6px);
    text-shadow: 0 0 10px rgba(210, 179, 255, 0.6);
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding: 20px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(5px);
    color: #bca7ea;
}

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

@keyframes statRise {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes imageSheen {
    0%, 35% { transform: translateX(-120%); }
    65%, 100% { transform: translateX(140%); }
}

@keyframes orbitPulse {
    0%, 100% { transform: scale(0.96); opacity: 0.32; }
    50% { transform: scale(1.04); opacity: 0.7; }
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

@keyframes galleryGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes sparkleTwinkle {
    0%, 100% {
        opacity: 0.28;
        transform: scale(0.72) rotate(0deg);
    }
    45% {
        opacity: 1;
        transform: scale(1.15) rotate(14deg);
    }
    70% {
        opacity: 0.58;
        transform: scale(0.9) rotate(-8deg);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 20px rgba(156, 119, 255, 0.35);
    }
    50% {
        text-shadow: 0 0 38px rgba(255, 255, 255, 0.7), 0 0 28px rgba(156, 119, 255, 0.62);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        padding-left: 0;
    }

    h1 {
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 18px;
    }

    .brand span {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 20px;
    }

    .hero-visual {
        min-height: 430px;
        width: 100%;
        margin-top: 24px;
    }

    .card-main {
        position: relative;
        top: 18px;
        left: auto;
        width: 100%;
        height: min(76vw, 360px);
        min-height: 290px;
        transform: none;
        animation: none;
    }

    .class-switcher {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-content: center;
    }

    .card-mini {
        top: 0;
        right: 4%;
        bottom: auto;
        width: 170px;
        padding: 14px;
        transform: rotate(3deg);
        animation: none;
        z-index: 3;
    }

    .card-mini strong {
        font-size: 1.6rem;
    }

    .gallery {
        padding-top: 86px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .photo-card {
        height: min(78vw, 320px);
        min-height: 260px;
    }

    .photo-back h3 {
        font-size: 1.45rem;
    }

    .footer-container {
        flex-direction: column;
        padding: 0 30px 40px;
    }

    .footer-column {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 28px);
        margin-top: 48px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .card-main {
        height: 285px;
        min-height: 0;
    }

    .switcher-label {
        display: none;
    }

    .class-option {
        min-width: 92px;
        padding: 9px 12px;
    }

    .card-mini {
        width: 148px;
        padding: 12px;
    }

    .card-mini small {
        font-size: 0.72rem;
    }

    .gallery {
        padding: 76px 14px 62px;
        margin-top: 70px;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .gallery h2 {
        font-size: 2rem;
    }
}
