/* Общие стили */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #343a40;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Шапка */
header {
    background-color: #343a40;
    color: #fff;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

nav a:hover {
    color: #adb5bd;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #007bff, #66a3ff);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.hero {
    background-color: #e9ecef;
    padding: 5rem 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #6c757d;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skills {
    padding: 4rem 0;
}

.skills h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin: 0;
}

.projects {
    background-color: #e9ecef;
    padding: 4rem 0;
}

.projects h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    font-size: 1.5rem;
    margin: 1rem;
}

.project-card p {
    font-size: 1rem;
    margin: 1rem;
    color: #6c757d;
}

.contact {
    padding: 4rem 0;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-family: 'Nunito', sans-serif;
}

.form-group textarea {
    min-height: 150px;
}

footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* Кнопки */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

nav a.active {
    font-weight: bold;
    color: #007bff;
}

nav a.active::after {
    background: none;
}

.skill-progress {
    margin-top: 1rem;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #007bff, #66a3ff);
    border-radius: 5px;
    transition: width 1s ease;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h3 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 3px solid #007bff;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -10px;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tag {
    background-color: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #495057;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.project-accordion {
    max-width: 900px;
    margin: 2rem auto;
}

.project-item {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white;
}

.project-checkbox {
    display: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.project-header:hover {
    background-color: #f8f9fa;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.project-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.project-icon {
    transition: transform 0.3s;
}

.project-checkbox:checked + .project-header .project-icon {
    transform: rotate(180deg);
}

.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.project-checkbox:checked ~ .project-content {
    max-height: 2000px;
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 1.5rem 1.5rem;
}

.project-description, .project-tech {
    padding: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.screenshots-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 1rem;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    nav {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    nav a {
        margin: 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .menu-toggle {
        display: none;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .left::after, .right::after {
        left: 21px;
    }
    
    .right {
        left: 0;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
    
    .project-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .project-title h2 {
        font-size: 1.2rem;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .button {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

.hobbies-section {
    padding: 4rem 0;
}

.hobbies-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #343a40;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hobby-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hobby-image {
    height: 200px;
    overflow: hidden;
}

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

.hobby-card:hover .hobby-image img {
    transform: scale(1.05);
}

.hobby-content {
    padding: 1.5rem;
}

.hobby-content h2 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.8rem;
}

.hobby-highlight {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 1rem 0;
    color: #343a40;
}

.hobby-stats {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.hobby-content .button {
    display: inline-block;
    margin-top: 0.5rem;
    background-color: #343a40;
}

.hobby-content .button:hover {
    background-color: #495057;
}

.hobby-detail {
    padding: 3rem 0;
}

.hobby-header {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.hobby-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.hobby-header h1 {
    font-size: 3rem;
    color: #007bff;
    margin: 0;
}

.hobby-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.hobby-main h2 {
    color: #343a40;
    margin-top: 0;
}

.hobby-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.stat-card h3 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
}

.favorite-list {
    list-style-type: none;
    padding: 0;
}

.favorite-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.favorite-list li:last-child {
    border-bottom: none;
}

.equipment-list li:before {
    content: "🧪";
    margin-right: 0.5rem;
}

.tech-list li:before {
    content: "🔐";
    margin-right: 0.5rem;
}

.game-banner {
    object-position: center;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.game-stats-section,
.favorite-games-section,
.current-games-section {
    margin-bottom: 3rem;
}

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

.stat-card {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    color: white;
}

.accent-blue { background: linear-gradient(135deg, #007bff, #00b4ff); }
.accent-green { background: linear-gradient(135deg, #28a745, #00d084); }
.accent-purple { background: linear-gradient(135deg, #6f42c1, #a370f7); }

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game-cards {
    display: grid;
    gap: 1.5rem;
}

.game-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.game-card img {
    width: 150px;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
    flex: 1;
}

.game-meta {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.platform-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.hours {
    color: #6c757d;
}

.game-rating {
    color: #ffc107;
    margin-top: 0.5rem;
}

.currently-playing {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.current-game {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.current-game img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #007bff, #00b4ff);
    border-radius: 4px;
}

.sidebar-block {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.genre-list {
    list-style-type: none;
    padding: 0;
}

.genre-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.genre-list li:last-child {
    border-bottom: none;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.screenshots {
    display: grid;
    gap: 0.5rem;
}

.screenshots img {
    width: 100%;
    border-radius: 4px;
    transition: transform 0.3s;
}

.screenshots img:hover {
    transform: scale(1.03);
}

.hobby-detail {
    padding: 2rem 0;
}

.hobby-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hobby-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-style: italic;
}

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

.stat-card {
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-card h3 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.game-cards {
    display: grid;
    gap: 1.5rem;
}

.game-card {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.game-card img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-info {
    padding: 1.5rem;
    flex: 1;
}

.game-info h3 {
    margin-top: 0;
    color: #343a40;
}

.game-meta {
    display: flex;
    gap: 1rem;
    margin: 0.8rem 0;
    align-items: center;
}

.platform-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #343a40;
    color: white;
    display: inline-flex;
    align-items: center;
}

.platform-tag i {
    margin-right: 0.3rem;
}

.hours {
    color: #6c757d;
    font-size: 0.9rem;
}

.game-rating {
    color: #ffc107;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.current-games-section {
    margin-top: 3rem;
}

.currently-playing {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.current-game {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.current-game img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-top: 0.8rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00b4ff);
    border-radius: 4px;
}

.sidebar-block {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.sidebar-block h3 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.genre-list {
    list-style-type: none;
    padding: 0;
    margin-top: 1rem;
}

.genre-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.genre-list li:before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    margin-right: 0.7rem;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.screenshots {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.screenshots img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.screenshots img:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

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

.game-stats-section,
.favorite-games-section,
.current-games-section,
.sidebar-block {
    animation: fadeIn 0.6s ease-out forwards;
}

.favorite-games-section { animation-delay: 0.2s; }
.current-games-section { animation-delay: 0.4s; }
.sidebar-block { animation-delay: 0.6s; }

.banner-container {
    position: relative;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
    border-radius: 0 0 10px 10px;
}

.banner-overlay h1 {
    color: white !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.banner-overlay .subtitle {
    color: #ddd !important;
}

.achievements-list {
    list-style-type: none;
    padding: 0;
}

.achievements-list li {
    padding: 0.7rem 0;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-left: 1.5rem;
}

.achievements-list li:before {
    content: "🏆";
    position: absolute;
    left: 0;
}

.game-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.sidebar-block {
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}
.genre-list li {
    padding: 0.5rem 0;
}

.genre-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    transition: transform 0.2s;
}
.genre-list a:hover {
    transform: translateX(5px);
}

.progress {
    transition: width 0.6s ease;
}

.game-rating i {
    margin-right: 0.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.platform-tag, .stat-card {
    transition: all 0.3s ease;
}

.cases {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

.case-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.case-description {
    padding: 2rem;
}

.case-description h3 {
    font-size: 1.5rem;
    margin-top: 0;
    color: #343a40;
}

.case-description p {
    color: #6c757d;
    line-height: 1.6;
}

.case-demo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.case-demo p {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 1rem;
}

.case-stats {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.case-stats li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    color: #495057;
    line-height: 1.5;
}

.case-stats li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: #007bff;
    border-radius: 50%;
}

.case-stats strong {
    color: #343a40;
    font-weight: 600;
}

.game-container {
    padding: 4rem 0;
    background-color: #343a40;
    color: white;
    position: relative;
}

.game-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, #007bff, #00b4ff);
}

.game-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.game-container h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: white;
}

.game-container p {
    text-align: center;
    margin-bottom: 2rem;
    color: #adb5bd;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.game-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.game-button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.game-button.start {
    background-color: #28a745;
    color: white;
}

.game-button.start:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.game-button.reset {
    background-color: #dc3545;
    color: white;
}

.game-button.reset:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

#game-canvas {
    width: 100%;
    border: 2px solid #495057;
    border-radius: 8px;
    background-color: #212529;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

.game-container .instructions {
    text-align: center;
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .case-card {
        grid-template-columns: 1fr;
    }
    
    .case-demo {
        order: -1;
        min-height: 300px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-button {
        width: 100%;
        justify-content: center;
    }
    
    #game-canvas {
        height: auto;
        max-height: 400px;
    }
}

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

.case-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.case-card:nth-child(2) {
    animation-delay: 0.2s;
}

.case-card:nth-child(3) {
    animation-delay: 0.4s;
}

.game-container {
    animation: fadeIn 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

.cases {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    position: relative;
}

.cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #343a40;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.cases h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #007bff, #00b4ff);
    border-radius: 3px;
}


.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.case-description {
    padding: 2rem;
}

.case-description h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #007bff;
    position: relative;
    padding-bottom: 0.5rem;
}

.case-description h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #007bff;
}

.case-description p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-stats {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.case-stats li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.case-stats li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
    font-size: 1.2rem;
    line-height: 1;
}

.case-stats strong {
    color: #343a40;
}

@media (max-width: 768px) {
    .cases h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .case-card {
        grid-template-columns: 1fr;
    }
    
    .case-demo {
        order: -1;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .cases h2 {
        font-size: 1.8rem;
    }
    
    .case-description h3 {
        font-size: 1.5rem;
    }
}

.case-card:nth-child(2) {
    border: 2px solid #4CAF50;
    position: relative;
    overflow: visible;
}

.case-card:nth-child(2)::before {
    content: "Важное достижение";
    position: absolute;
    top: -15px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.case-card:nth-child(2) .case-description h3 {
    color: #4CAF50;
}

.case-card:nth-child(2) .case-description h3::after {
    background-color: #4CAF50;
}

.case-card:nth-child(2) .case-stats li::before {
    color: #4CAF50;
}

.rewrite-info {
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.rewrite-info h4 {
    margin-top: 0;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rewrite-info h4 i {
    font-size: 1.5rem;
}

.rewrite-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.rewrite-stat {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rewrite-stat i {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.rewrite-stat .number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #343a40;
    display: block;
}

.rewrite-stat .label {
    font-size: 0.9rem;
    color: #6c757d;
}

.case-demo {
    position: relative;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

.case-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.case-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #2a2a2a;
    padding: 10px;
}

.case-image:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.case-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.case-nav-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.case-nav-button:hover {
    background: rgba(255,255,255,0.4);
}

.case-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.case-pagination {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.case-pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-pagination-dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .case-demo {
        min-height: 300px;
    }
    
    .case-nav-button {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

.case-card:nth-child(2) .case-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.case-card:nth-child(2) .case-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.case-card:nth-child(2) .case-image:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.case-card:nth-child(2) .case-images[data-count="2"] {
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .case-images-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .case-image {
        max-height: 200px;
    }
}

.case-card:first-child .case-demo {
    height: 400px;
    overflow: hidden;
}

.case-card:first-child .case-images {
    height: 100%;
}

.case-card:first-child .case-image {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    padding: 20px;
}

.case-description {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 500px;
}

@media (max-width: 768px) {
    .case-card {
        grid-template-columns: 1fr;
    }
    
    .case-demo {
        order: -1;
        height: 300px;
    }
    
    .case-description {
        max-height: none;
    }
}

.case-card:nth-child(2) {
    border: 2px solid #4CAF50;
    position: relative;
    overflow: visible;
}

.case-card:nth-child(2)::before {
    content: "Важное достижение";
    position: absolute;
    top: -15px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.case-card:nth-child(2) .case-description h3 {
    color: #4CAF50;
}

.case-card:nth-child(2) .case-description h3::after {
    background-color: #4CAF50;
}

.case-card:nth-child(2) .case-stats li::before {
    color: #4CAF50;
}

.rewrite-info {
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.rewrite-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.rewrite-stat {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rewrite-stat i {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .case-card:nth-child(2) .case-image {
        min-width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .case-card:nth-child(2) .case-demo {
        display: block;
        position: relative;
        overflow: hidden;
    }

    .case-card:nth-child(2) .case-images-grid {
        display: flex;
        width: 200%;
        transition: transform 0.3s ease;
    }

    .case-card:nth-child(2) .case-image {
        min-width: 50%;
        height: auto;
        max-height: 300px;
    }

    .case-card:nth-child(2) .case-nav {
        display: flex;
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        justify-content: center;
        gap: 10px;
    }

    .case-card:nth-child(2) .case-pagination {
        display: flex;
        position: absolute;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
    }    

}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.about-text {
    flex: 1;
}
.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
.accent {
    color: #007bff;
    font-weight: 700;
}

.mini-stats {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.mini-stats li {
    font-size: 1.1rem;
}
.mini-stats .number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #007bff;
}

.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.button.secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}
.button.secondary:hover {
    background: #007bff;
    color: #fff;
}

.code-window {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transition: transform .3s ease;
}
.code-window:hover {
    transform: translateY(-5px);
}
@keyframes countUp {
    to { transform: translateY(0); opacity: 1; }
}
.number {
    display: inline-block;
    transform: translateY(20px);
    opacity: 0;
    animation: countUp .6s ease forwards;
}
.number:nth-child(1) { animation-delay: .1s; }
.number:nth-child(2) { animation-delay: .2s; }
.number:nth-child(3) { animation-delay: .3s; }

/* Overlay */
.cv-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    z-index: 1000;
}
.cv-modal.hidden {
    display: none;
}

.cv-modal__box {
    position: relative;
    max-width: 380px;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    text-align: center;
}
.cv-modal__text {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}
.cv-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
}

.skill-icon svg {
    width: 40px;
    height: 40px;
}
.skill-card {
    position: relative;
    cursor: default;
}
.skill-card::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%) scale(.9);
    padding: .5rem .75rem;
    background: #000c;
    color: #fff;
    font-size: .8rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
}
.skill-card:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.feature-cards + .about-actions {
    margin-top: 1.5rem;
}

.hero-sub {
    margin-bottom: 1.75rem;
    line-height: 1.6;
    color: #4b5563;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.boxed {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: box-shadow 0.25s ease;
}

.boxed:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.boxed p {
    margin-bottom: 0.75rem;
    line-height: 1.55;
    color: #374151;
}

.mini-stats {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.mini-stats li {
    font-size: 1rem;
    color: #4b5563;
}

.mini-stats .number {
    font-weight: 700;
    color: #007bff;
}

.feature-cards {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-cards li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #4b5563;
    transition: background 0.2s;
    }

.feature-cards li:hover {
    background: #e0f2fe;
}

.feature-cards i {
    color: #007bff;
    font-size: 1.1rem;
}

.latest-project {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    align-items: center;
}

.project-demo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.project-metric {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-metric li {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    color: #007bff;
}

.project-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .latest-project {
        grid-template-columns: 1fr;
    }
}

.projects-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
}

.project-view-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff, #00b4ff);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,.3);
}

.project-view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,123,255,.4);
    }

.case-card::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}
.projects-prelude {
    padding: 4rem 0;
    background: #f8f9fa;
    text-align: center;
}

.projects-prelude h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: #343a40;
}

.prelude-lead {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #495057;
}

.prelude-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.prelude-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prelude-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.prelude-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.prelude-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.prelude-card p {
    font-size: 0.95rem;
    color: #6c757d;
}

.prelude-note {
    font-size: 0.95rem;
    color: #495057;
}
.projects-prelude {
    padding: 4rem 0;
    background: #f8f9fa;
    text-align: center;
}

.projects-prelude h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: #343a40;
}

.prelude-lead {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #495057;
}

.prelude-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.prelude-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prelude-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.prelude-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.prelude-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.prelude-card p {
    font-size: 0.95rem;
    color: #6c757d;
}

.prelude-note {
    font-size: 0.95rem;
    color: #495057;
}

/* ---------- APP POOL ---------- */
.app-pool {
    padding: 4rem 0;
    background: #eef2f7;
    text-align: center;
}

.app-pool h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #343a40;
}

.pool-lead {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #495057;
    font-size: 1.1rem;
}

.pool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pool-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.pool-card:hover {
    transform: translateY(-6px);
}

.pool-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.pool-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.pool-card p {
    font-size: 0.95rem;
    color: #6c757d;
}

.intro { padding: 3rem 0 1rem; }
.intro h1 { margin-bottom: 1.5rem; }

.intro-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
    font-size: 1.1rem;
    line-height: 1.7;
    color: #343a40;
    text-align: center;
}

@media (max-width: 600px) {
  .intro-box { padding: 1.5rem 1rem; font-size: 1rem; }
}
.hobbies-title { margin: 0 0 1rem; }
.intro-text    { max-width: 700px; margin: 0 auto 2rem; line-height: 1.6; }
.intro-wide {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    font-size: 1.1rem;
    line-height: 1.65;
    text-align: left;
}
@media (max-width: 600px) {
    .hobbies-section { padding-top: 1rem; }
}