/* ===== СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    /* Цвета */
    --dark-gray: #2c2c2c;
    --medium-gray: #3a3a3a;
    --light-gray: #4a4a4a;
    --text-light: #f0f0f0;
    --text-muted: #b0b0b0;
    --accent-color: #5d8aa8;
    --accent-light: #7ba6c4;
    --active-color: #3a6d8c;
    --gitverse-color: #6cc24a;
    --success-color: #4caf50;
    --warning-color: #ff9800;

    /* Скорости */
    --transition-speed: 0.3s;

    /* Мобильные отступы */
    --container-padding: 30px;
    --mobile-padding: 16px;

    /* Размеры меню */
    --menu-width: 80px;
    --menu-mobile-height: 56px;
}

/* ===== БАЗА ===== */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-gray);
    color: var(--text-light);
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: clip;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Тач-оптимизация */
.btn,
button,
a,
.order-type,
.filter-btn,
.skills-filter button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--dark-gray); }
::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

/* ===== КОНТЕЙНЕР ===== */
.container {
    display: flex;
    position: relative;
}

/* ===== АККОРДЕОН-МЕНЮ ===== */
.menu-accordion {
    width: var(--menu-width);               /* 80px в свёрнутом */
    background-color: var(--medium-gray);
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 300;
    transition: width var(--transition-speed) ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.menu-accordion.expanded {
    width: 320px;                            /* 320px в раскрытом */
}

/* ===== Шапка меню ===== */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px;
    cursor: pointer;
    background-color: var(--light-gray);
    transition: background-color var(--transition-speed);
    min-height: var(--menu-mobile-height);
    color: var(--text-light);
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.menu-toggle:hover {
    background-color: var(--accent-color);
}

.menu-toggle i {
    font-size: 24px;
    color: var(--text-light);
    flex-shrink: 0;
    pointer-events: none;      /* клик по иконке идёт в родителя */
}

.menu-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-speed);
    pointer-events: none;      /* клик по тексту идёт в родителя */
}

.menu-accordion.expanded .menu-title {
    opacity: 1;
}

/* ===== Список ссылок ===== */
.nav-links {
    list-style: none;
    padding-top: 20px;
}

.nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: background-color var(--transition-speed);
    white-space: nowrap;
    position: relative;
    min-height: 46px;
}

.nav-links a:hover {
    background-color: var(--light-gray);
}

.nav-links a.active {
    background-color: var(--active-color);
}

.nav-links a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--accent-light);
}

/* Иконки пунктов — видны ВСЕГДА */
.nav-links i {
    font-size: 20px;
    margin-right: 15px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-light);
}

/* Надписи пунктов — видны только в раскрытом */
.nav-links span {
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.menu-accordion.expanded .nav-links span {
    opacity: 1;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    margin-left: var(--menu-width);
    flex: 1;
    padding: var(--container-padding);
    min-height: 100vh;
    min-height: 100dvh;
    transition: margin var(--transition-speed);
}

/* Раскрытое меню контент НЕ сдвигает — оно overlay поверх */
.menu-accordion.expanded ~ .main-content {
    /* специально пусто */
}

.section {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ОБЩИЕ ЭЛЕМЕНТЫ ===== */
.hero {
    text-align: center;
    padding: 40px 0 60px;
}

.hero h1,
.hero-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
}

.hero p,
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-text {
    line-height: 1.7;
    color: #c9d1d9;
}

.highlight {
    color: var(--accent-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 46px;
    font-family: inherit;
}

.btn:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-gitverse {
    background-color: var(--gitverse-color);
}
.btn-gitverse:hover {
    background-color: #5aac3a;
}

.btn-order {
    background-color: var(--success-color);
}
.btn-order:hover {
    background-color: #3d8b40;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.3rem;
    margin: 30px 0 20px;
    color: var(--accent-light);
    text-align: center;
}

/* ===== ПРОЕКТЫ ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.project-card {
    background-color: var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-img {
    height: 180px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    position: relative;
}

.project-img .gitverse-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--gitverse-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background-color: var(--dark-gray);
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.gitverse-link {
    display: inline-flex;
    align-items: center;
    color: var(--gitverse-color);
    text-decoration: none;
    margin-top: 10px;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.gitverse-link:hover {
    color: #5aac3a;
    text-decoration: underline;
}

.gitverse-link i {
    margin-right: 8px;
}

.project-title .project-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.project-title .project-link:hover {
    opacity: 0.8;
}

.project-title .project-link:visited {
    color: inherit;
}

.project-note {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: var(--dark-gray);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
}

.project-note p {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-note pre {
    background-color: #1e1e1e;
    color: #dcdcdc;
    padding: 10px 12px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.project-note code {
    font-family: inherit;
}

.project-note a {
    color: var(--accent-light);
    text-decoration: none;
}

.project-note a:hover {
    text-decoration: underline;
}

/* ===== ФОРМА ЗАКАЗА ===== */
.order-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--medium-gray);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.order-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.order-type {
    background-color: var(--dark-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.order-type:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.order-type.selected {
    border-color: var(--success-color);
    background-color: rgba(76, 175, 80, 0.1);
}

.order-type i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-light);
}

.order-type h3 {
    margin-bottom: 10px;
    color: var(--text-light);
}

.order-type p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--dark-gray);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent-light);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* ===== СОЦСЕТИ ===== */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--medium-gray);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.3rem;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* ===== GITVERSE ===== */
.gitverse-platform {
    margin: 40px 0;
    padding: 25px;
    background-color: var(--medium-gray);
    border-radius: 8px;
    border-left: 4px solid var(--gitverse-color);
}

.gitverse-platform h3 {
    color: var(--gitverse-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.gitverse-platform p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.gitverse-stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: var(--dark-gray);
    border-radius: 6px;
    min-width: 120px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gitverse-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===== ФИЛЬТР ПОРТФОЛИО ===== */
.portfolio-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--medium-gray);
    color: var(--text-light);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: inherit;
    font-size: 0.9rem;
    min-height: 40px;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--accent-color);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--medium-gray);
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--text-light);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-speed);
    min-width: 40px;
    min-height: 40px;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    text-align: right;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-message h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== СЕКЦИЯ "ОБО МНЕ" ===== */
.about-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

.about-photo {
    position: sticky;
    top: 30px;
}

.about-photo-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-color), #3a6d8c);
    padding: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-speed);
}

.about-photo-frame:hover {
    transform: translateY(-5px) rotate(-1deg);
}

.about-photo-frame img {
    width: 100%;
    display: block;
    border-radius: 12px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.about-photo-placeholder {
    aspect-ratio: 1/1;
    border-radius: 12px;
    background: var(--dark-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 10px;
}

.about-photo-placeholder i {
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.5;
}

.about-photo-placeholder span {
    font-size: 0.85rem;
    text-align: center;
    padding: 0 20px;
}

.about-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.15);
    color: var(--success-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 15px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.about-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
}

.about-contacts {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-contacts a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--medium-gray);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.about-contacts a:hover {
    background: var(--light-gray);
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.about-contacts a i {
    width: 20px;
    text-align: center;
    color: var(--accent-light);
    font-size: 1.1rem;
}

.about-text h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text h3 i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-text p strong {
    color: var(--text-light);
}

.about-text .highlight-quote {
    padding: 16px 20px;
    border-left: 3px solid var(--accent-color);
    background: var(--medium-gray);
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}

.about-text .highlight-quote i {
    color: var(--accent-color);
    margin-right: 8px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.stat-card {
    background: var(--medium-gray);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card .stat-icon {
    font-size: 1.8rem;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-approach {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    gap: 12px;
}

.about-approach li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--medium-gray);
    border-radius: 10px;
    transition: all var(--transition-speed);
    border-left: 3px solid transparent;
}

.about-approach li:hover {
    background: var(--light-gray);
    border-left-color: var(--accent-color);
    transform: translateX(4px);
}

.about-approach li i {
    color: var(--accent-light);
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 20px;
}

.about-approach li div strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.about-approach li div span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.about-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 25px;
}

.about-stack .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--medium-gray);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--light-gray);
    transition: all var(--transition-speed);
}

.about-stack .tag:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.about-stack .tag i {
    color: var(--accent-light);
    font-size: 0.9rem;
}

.about-stack .tag:hover i {
    color: #fff;
}

.about-gitverse {
    background: var(--medium-gray);
    border-left: 4px solid var(--gitverse-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 30px 0;
}

.about-gitverse h3 {
    margin-top: 0;
    color: var(--gitverse-color);
}

.about-gitverse h3 i {
    color: var(--gitverse-color);
}

.about-gitverse .btn {
    margin-top: 10px;
}

.about-joke {
    margin: 30px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(93, 138, 168, 0.1), rgba(93, 138, 168, 0.05));
    border: 1px dashed var(--accent-color);
    border-radius: 12px;
    text-align: center;
    font-style: italic;
    color: var(--text-light);
}

.about-joke i {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: block;
}

.about-joke .joke-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-joke .joke-signature {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
}

.about-timeline {
    position: relative;
    padding-left: 30px;
    margin: 30px 0;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--dark-gray);
    box-shadow: 0 0 0 3px rgba(93, 138, 168, 0.3);
}

.timeline-item .year {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-item h4 {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 1rem;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== СЕКЦИЯ "НАВЫКИ" ===== */
.skills-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.7;
}

.skills-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.skills-filter button {
    background: var(--medium-gray);
    color: var(--text-muted);
    border: 1px solid var(--light-gray);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
}

.skills-filter button:hover {
    color: var(--text-light);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.skills-filter button.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.skill-block {
    background: var(--medium-gray);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid transparent;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.skill-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-block:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.skill-block:hover::before {
    transform: scaleX(1);
}

.skill-block-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.skill-block-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(93, 138, 168, 0.25), rgba(93, 138, 168, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.skill-block-title {
    flex: 1;
}

.skill-block-title h3 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 3px;
}

.skill-block-title span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.skill-item {
    margin-bottom: 18px;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
    flex-wrap: wrap;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-name i {
    color: var(--accent-light);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.skill-level-badge {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.level-expert {
    background: rgba(76, 175, 80, 0.18);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.35);
}

.level-advanced {
    background: rgba(93, 138, 168, 0.18);
    color: var(--accent-light);
    border: 1px solid rgba(93, 138, 168, 0.35);
}

.level-medium {
    background: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.level-basic {
    background: rgba(176, 176, 176, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(176, 176, 176, 0.3);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--dark-gray);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    width: 0;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-bar-fill.fill-expert {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.skill-bar-fill.fill-advanced {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}

.skill-bar-fill.fill-medium {
    background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.skills-extra {
    background: var(--medium-gray);
    border-radius: 14px;
    padding: 26px;
    margin-top: 30px;
    border-left: 4px solid var(--accent-color);
}

.skills-extra h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.skills-extra h3 i {
    color: var(--accent-color);
}

.skills-extra > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dark-gray);
    color: var(--text-light);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--light-gray);
    transition: all var(--transition-speed);
    cursor: default;
}

.skills-tags .tag:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.skills-tags .tag i {
    color: var(--accent-light);
    font-size: 0.85rem;
}

.skills-tags .tag:hover i {
    color: #fff;
}

.skills-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 35px;
}

.skills-summary-card {
    background: var(--medium-gray);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--transition-speed);
}

.skills-summary-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.skills-summary-card i {
    font-size: 1.6rem;
    color: var(--accent-light);
    margin-bottom: 10px;
    display: block;
}

.skills-summary-card .num {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
}

.skills-summary-card .lbl {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ФУТЕР ===== */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--light-gray);
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(93, 138, 168, 0.15);
    color: #5d8aa8;
    font-size: 18px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: #5d8aa8;
    color: #fff;
    transform: translateY(-3px);
}

.footer-note {
    color: #8b949e;
    font-size: 13px;
    margin: 5px 0;
}

/* ===== ЮРИДИЧЕСКИЕ СТРАНИЦЫ ===== */
.document-content {
    max-width: 900px;
    margin: 0 auto;
}

.document-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.document-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.document-content h2 {
    font-size: 1.3rem;
    color: var(--accent-light);
    margin: 30px 0 15px;
}

.document-content p {
    margin-bottom: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.document-content ul {
    margin: 15px 0 15px 25px;
    color: var(--text-muted);
}

.document-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.document-content a {
    color: var(--accent-light);
    text-decoration: none;
}

.document-content a:hover {
    text-decoration: underline;
}

/* ===== ГЛАВНАЯ — ДОПОЛНИТЕЛЬНО ===== */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* =====================================================
   ПЛАНШЕТ (900px и меньше)
   ===================================================== */
@media (max-width: 900px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-photo {
        position: static;
        max-width: 320px;
        margin: 0 auto;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   МОБИЛЬНЫЕ (768px и меньше)
   ===================================================== */
@media (max-width: 768px) {

    body {
        font-size: 15px;
        line-height: 1.55;
    }

    .container {
        flex-direction: column;
    }

    /* ===== МЕНЮ (fixed overlay сверху) ===== */
    .menu-accordion {
        width: 100%;
        height: var(--menu-mobile-height);
        min-height: var(--menu-mobile-height);
        max-height: var(--menu-mobile-height);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 200;
        align-self: auto;
        overflow: hidden;
        transform: none;                    /* сброс десктопного translateX */
        transition: max-height 0.35s ease;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    .menu-accordion.expanded {
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-toggle {
        padding: 14px 18px;
        min-height: var(--menu-mobile-height);
    }

    .menu-toggle i {
        font-size: 22px;
    }

    /* На мобильных скрываем стрелку вправо — она не нужна */
    .menu-toggle .fa-chevron-right {
        display: none;
    }

    /* Гамбургер и текст видны всегда */
    .menu-toggle .fa-bars {
        display: inline-block;
    }

    .menu-title {
        font-size: 1rem;
        opacity: 1;
        flex: 1;
        text-align: left;
    }

    .nav-links {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .nav-links a {
        padding: 15px 18px;
        font-size: 15px;
    }

    .nav-links i {
        font-size: 18px;
    }

    /* ===== КОНТЕНТ ===== */
    .main-content {
        margin-left: 0;
        padding: var(--mobile-padding);
        padding-top: calc(var(--menu-mobile-height) + var(--mobile-padding));
        min-height: auto;
    }

    /* ===== ЗАГОЛОВКИ ===== */
    .hero {
        padding: 20px 0 30px;
    }

    .hero h1,
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero p,
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin: 20px 0 15px;
    }

    /* ===== КНОПКИ ===== */
    .btn {
        padding: 13px 22px;
        font-size: 15px;
        min-height: 48px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: none;
    }

    /* ===== ПРОЕКТЫ ===== */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card:hover {
        transform: none;
    }

    .project-img {
        height: 140px;
        font-size: 2.5rem;
    }

    .project-content {
        padding: 16px;
    }

    .project-title {
        font-size: 1.15rem;
    }

    .tag {
        font-size: 0.78rem;
        padding: 4px 9px;
    }

    /* ===== ФОРМА ЗАКАЗА ===== */
    .order-form-container {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .order-type-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .order-type {
        padding: 18px 16px;
    }

    .order-type i {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .order-type h3 {
        font-size: 1.05rem;
    }

    .order-type p {
        font-size: 0.85rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 12px 14px;
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .checkbox-group {
        margin: 20px 0;
    }

    .checkbox-group input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }

    .checkbox-group label {
        font-size: 0.85rem;
    }

    /* ===== GITVERSE ===== */
    .gitverse-platform {
        padding: 18px;
        margin: 20px 0;
    }

    .gitverse-platform h3 {
        font-size: 1.15rem;
    }

    .gitverse-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-item {
        min-width: 0;
        padding: 12px 8px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    /* ===== ФИЛЬТРЫ ===== */
    .portfolio-filter,
    .skills-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        margin-left: calc(-1 * var(--mobile-padding));
        margin-right: calc(-1 * var(--mobile-padding));
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .portfolio-filter::-webkit-scrollbar,
    .skills-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-btn,
    .skills-filter button {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    /* ===== ОБО МНЕ ===== */
    .about-wrapper {
        gap: 20px;
        margin-bottom: 30px;
    }

    .about-photo {
        max-width: 240px;
    }

    .about-photo-frame:hover {
        transform: none;
    }

    .about-contacts a {
        padding: 12px 14px;
        min-height: 48px;
    }

    .about-text h3 {
        font-size: 1.15rem;
        margin: 20px 0 12px;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px 10px;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }

    .stat-card .stat-label {
        font-size: 0.7rem;
    }

    .about-approach li {
        padding: 12px 14px;
    }

    .about-timeline {
        padding-left: 22px;
    }

    /* ===== НАВЫКИ ===== */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .skill-block {
        padding: 18px;
        border-radius: 12px;
    }

    .skill-block:hover {
        transform: none;
    }

    .skill-block-header {
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .skill-block-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .skill-block-title h3 {
        font-size: 1rem;
    }

    .skill-block-title span {
        font-size: 0.75rem;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .skill-level-badge {
        font-size: 0.68rem;
        padding: 2px 8px;
    }

    .skills-extra {
        padding: 18px;
        margin-top: 20px;
    }

    .skills-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .skills-summary-card {
        padding: 14px 10px;
    }

    .skills-summary-card .num {
        font-size: 1.4rem;
    }

    /* ===== ЮРИДИЧЕСКИЕ СТРАНИЦЫ ===== */
    .document-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .document-content h2 {
        font-size: 1.15rem;
        margin-top: 22px;
    }

    .document-content p,
    .document-content li {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .document-date {
        font-size: 0.85rem;
    }

    /* ===== МОДАЛЬНОЕ ОКНО ===== */
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 16px 16px 0 0;
        animation: modalSlideUp 0.3s ease;
    }

    @keyframes modalSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    /* ===== ФУТЕР ===== */
    footer {
        padding: 20px var(--mobile-padding);
        margin-top: 30px;
        font-size: 0.88rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links a {
        padding: 8px 0;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .footer-social {
        gap: 12px;
    }
}

/* =====================================================
   СТРАНИЦЫ ОШИБОК (404, 403, 500)
   ===================================================== */
.error-page {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.error-code {
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.05em;
    user-select: none;
}

.error-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.6;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.error-title {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.error-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 30px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.error-actions .btn {
    min-width: 160px;
}

.error-suggestions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.error-suggestions h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.error-suggestions h3 i {
    color: var(--accent-color);
}

.error-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.error-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: var(--medium-gray);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.error-links a:hover {
    background: var(--light-gray);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.error-links a i {
    font-size: 1.5rem;
    color: var(--accent-light);
}

.error-links a span {
    font-weight: 500;
}

/* Мобильные страницы ошибок */
@media (max-width: 768px) {
    .error-page {
        margin: 20px auto;
        padding: 10px;
    }

    .error-icon {
        font-size: 2.5rem;
    }

    .error-title {
        font-size: 1.4rem;
    }

    .error-text {
        font-size: 0.95rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 30px;
    }

    .error-actions .btn {
        width: 100%;
    }

    .error-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .error-links a {
        padding: 14px 10px;
        font-size: 0.85rem;
    }

    .error-links a i {
        font-size: 1.3rem;
    }
}

@media (max-width: 400px) {
    .error-links {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   МАЛЕНЬКИЕ ЭКРАНЫ (500px и меньше)
   ===================================================== */
@media (max-width: 500px) {
    .hero h1,
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .project-img {
        height: 120px;
        font-size: 2.2rem;
    }

    .order-form-container {
        padding: 16px 12px;
    }

    .stat-card .stat-number {
        font-size: 1.35rem;
    }

    .stat-card .stat-label {
        font-size: 0.65rem;
    }

    .about-stats,
    .skills-summary,
    .gitverse-stats {
        gap: 8px;
    }
}

/* =====================================================
   ЛАНДШАФТ НА ТЕЛЕФОНЕ
   ===================================================== */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        padding: 15px 0;
    }

    .hero h1,
    .hero-title {
        font-size: 1.5rem;
    }

    .modal-content {
        max-height: 95dvh;
    }
}

/* =====================================================
   ДОСТУПНОСТЬ: УМЕНЬШЕННАЯ АНИМАЦИЯ
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   ПЕЧАТЬ
   ===================================================== */
@media print {
    .menu-accordion,
    .footer-social,
    .btn,
    .filter-btn,
    .skills-filter,
    .modal {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .main-content {
        padding: 0;
    }
}