* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary-color: #c7d5e0;
    --secondary-color: #9099a1;
    --accent-color: #7d8a94;
    --text-dark: #c7d5e0;
    --text-light: #8f98a0;
    --text-lighter: #6d7880;
    --bg-dark: #2b2b2b;
    --bg-darker: #1e1e1e;
    --bg-light: #3a3a3a;
    --bg-white: #262626;
    --white: #ffffff;
    --border-color: rgba(199, 213, 224, 0.2);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Адаптивные размеры шрифта для больших экранов */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-wrapper .hero-container,
    .hero-wrapper .about .container {
        padding: 15px;
    }
    
    .hero-name {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .hero-wrapper .about .section-title {
        font-size: 1.25rem;
    }
    
    .portfolio-accordion {
        padding: 0 15px;
    }
    
    .contact-content {
        padding: 0 15px;
    }
    
    .portfolio-grid {
        column-count: 1;
        column-gap: 10px;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
}

/* Мобильный sticky header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(199, 213, 224, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: none;
    will-change: transform;
}

.mobile-header.visible {
    transform: translateY(0);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 100%;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.logo span {
    background: linear-gradient(135deg, var(--text-dark), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    touch-action: manipulation;
}

.burger-menu:hover {
    background: rgba(199, 213, 224, 0.1);
}

.burger-menu.active {
    background: rgba(199, 213, 224, 0.15);
}

.burger-line {
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Мобильное меню */
.mobile-nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity, visibility;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 40px 20px;
}

.nav-link {
    display: block;
    padding: 16px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    touch-action: manipulation;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover {
    background: rgba(199, 213, 224, 0.1);
    color: var(--secondary-color);
}

.nav-link:active {
    background: rgba(199, 213, 224, 0.2);
    transform: scale(0.98);
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-darker);
    overflow-x: hidden;
    position: relative;
    width: 100%;
    min-height: 100vh;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Фоновый canvas для шейдера */
#shader-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    opacity: 0.6;
    background: linear-gradient(135deg, #2b2b2b 0%, #3a3a3a 50%, #1e1e1e 100%);
}

/* Делаем контент полупрозрачным и обрезаем по бокам */
body > section,
body > footer {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(38, 38, 38, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Адаптивные отступы для секций */
body > section,
body > footer {
    width: 100%;
    box-sizing: border-box;
}

/* Главный экран */
/* Главная секция с hero и about */
.hero-section {
    margin-top: 80px;
    padding: 0 !important;
}

.hero-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    max-width: 100%;
}

.hero-wrapper .hero {
    flex: 1;
    min-width: 300px;
    padding: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    display: flex;
    align-items: stretch;
}

.hero-wrapper .hero-container {
    max-width: 450px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 50px 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.hero-divider {
    width: 1px;
    background: var(--border-color);
    align-self: stretch;
    min-height: 400px;
    flex-shrink: 0;
}

.hero-wrapper .about {
    flex: 1;
    min-width: 300px;
    padding: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: none;
}

.hero-wrapper .about .container {
    padding: 50px 40px 40px;
}

.hero-wrapper .about .section-title {
    text-align: left;
    margin-bottom: 30px;
    font-size: 1.75rem;
}

.hero-wrapper .about .about-content {
    max-width: 500px;
    margin: 0 auto;
}

.hero-wrapper .about .about-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.hero-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-experience {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 8px;
    text-align: center;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

.hero-specialization {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 5px;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 5px;
}

.location-city {
    font-weight: 600;
}

.location-separator {
    color: var(--text-lighter);
}

.location-price {
    font-weight: 600;
    color: var(--text-dark);
}

.hero-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(58, 58, 58, 0.5);
    min-height: 44px;
    touch-action: manipulation;
}

.contact-link:hover {
    border-color: var(--secondary-color);
    background: rgba(144, 153, 161, 0.2);
    color: var(--secondary-color);
}

.contact-link:active {
    transform: scale(0.98);
    background: rgba(144, 153, 161, 0.3);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.contact-icon.telegram-channel img {
    filter: invert(1);
}

.contact-text {
    font-weight: 500;
}

/* Телефонные номера в контактах */
a[href^="tel:"] .contact-text {
    font-family: 'Roboto Mono', 'Courier New', monospace;
}

/* Секции */
section {
    padding: 40px 0;
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

/* О себе - стили применяются только для about внутри hero-sections-wrapper */
.hero-sections-wrapper .about {
    background: rgba(38, 38, 38, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 400;
}

.about-description:last-child {
    margin-bottom: 0;
}

/* Портфолио */
.portfolio {
    background: rgba(25, 25, 25, 0.65);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

/* Аккордеон портфолио */
.portfolio-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    font-family: inherit;
    touch-action: manipulation;
    min-height: 44px;
}

.accordion-header:hover {
    opacity: 0.7;
}

.accordion-header:active {
    opacity: 0.5;
    transform: scale(0.98);
}

.accordion-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.accordion-header:hover .accordion-title {
    color: var(--secondary-color);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    transition: var(--transition);
    line-height: 1;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-out, padding 0.8s ease-out;
    padding: 0;
    will-change: max-height, padding;
}

.accordion-item.active .accordion-content {
    padding-bottom: 40px;
}

.portfolio-grid {
    column-count: auto;
    column-width: 280px;
    column-gap: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Адаптивное количество колонок через column-width */
@media (min-width: 1600px) {
    .portfolio-grid {
        column-width: 280px;
        column-gap: 20px;
    }
}

@media (min-width: 1400px) {
    .portfolio-grid {
        column-width: 280px;
        column-gap: 20px;
    }
}

@media (min-width: 1200px) {
    .portfolio-grid {
        column-width: 280px;
        column-gap: 20px;
    }
}

@media (min-width: 1000px) {
    .portfolio-grid {
        column-width: 280px;
        column-gap: 18px;
    }
}

@media (max-width: 900px) {
    .portfolio-grid {
        column-width: calc(50% - 7.5px);
        column-gap: 15px;
    }
    
    .portfolio-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        column-count: 1;
        column-width: 100%;
        column-gap: 15px;
    }
    
    .portfolio-item {
        margin-bottom: 15px;
    }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    opacity: 1;
    transform: translateY(-60px) scale(0.9);
    text-align: left;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
    display: inline-block;
    vertical-align: top;
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.portfolio-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Loading состояния для изображений */
.portfolio-item img.loading {
    opacity: 0;
}

.portfolio-item img.loaded {
    opacity: 1;
}

.portfolio-item img.error {
    opacity: 0.5;
}

/* Placeholder для изображений */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3a3a3a 0%, #262626 100%);
    color: var(--text-lighter);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.placeholder-content {
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .image-placeholder {
    opacity: 0.8;
}


.portfolio-item:hover {
    transform: translateY(-3px);
}

.portfolio-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    margin: 0;
    padding: 0;
    line-height: 0;
    height: auto;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 6px;
    opacity: 1;
    position: relative;
    z-index: 2;
    visibility: visible;
    vertical-align: bottom;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
    line-height: 0;
    object-fit: cover;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a3a3a 0%, #262626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 30, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

/* Показываем overlay если есть счетчик фото */
.portfolio-overlay.has-counter {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0;
}

.portfolio-image {
    pointer-events: auto;
}

.photo-count {
    color: var(--white);
    font-size: 1rem;
    font-weight: 400;
}

/* Блюр и надпись 18+ для фото категории "Коммерция" */
.portfolio-item.age-restricted .portfolio-image {
    position: relative;
}

.portfolio-item.age-restricted .portfolio-image img {
    filter: blur(15px);
    transition: filter 0.5s ease;
}

.portfolio-item.age-restricted .portfolio-image::after {
    content: '18+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: #9099a1;
    z-index: 10;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease;
}

.portfolio-item.age-restricted.verified .portfolio-image img {
    filter: blur(0);
}

.portfolio-item.age-restricted.verified .portfolio-image::after {
    opacity: 0;
    pointer-events: none;
}

/* Модальное окно проверки возраста */
.age-verification-content {
    background: rgba(20, 20, 20, 0.98);
    border-radius: 24px;
    padding: 30px 25px 25px;
    max-width: 220px;
    width: auto;
    text-align: center;
    border: 0.5px solid rgba(199, 213, 224, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.age-verification-question {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    width: 100%;
}

.age-verification-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.age-btn {
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    min-width: 50px;
    min-height: 44px;
    font-family: 'Manrope', sans-serif;
    touch-action: manipulation;
}

.age-btn-yes {
    background: var(--accent-color);
    color: var(--white);
    order: 2;
}

.age-btn-yes:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.age-btn-yes:active {
    transform: translateY(0);
}

.age-btn-no {
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    order: 1;
}

.age-btn-no:hover {
    background: var(--bg-darker);
    color: var(--text-dark);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.age-btn-no:active {
    transform: translateY(0);
}

.age-btn:active {
    transform: scale(0.98);
}

/* Контакты */
.contact {
    background: rgba(38, 38, 38, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding-bottom: 40px;
    margin-bottom: 80px;
}

.contact-content {
    max-width: 600px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    min-height: 44px;
    touch-action: manipulation;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item .contact-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    justify-content: center;
}

.contact-item .contact-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.contact-item .contact-icon.telegram-channel img {
    filter: invert(1);
}

.contact-item > div:last-child h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-item > div:last-child a {
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item > div:last-child a:hover {
    color: var(--secondary-color);
}


/* Футер */
/* Модальное окно для просмотра фотографий */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    will-change: opacity;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.modal-content {
    position: relative;
    background: rgba(58, 58, 58, 0.95);
    border-radius: 0;
    border: 0.5px solid rgba(199, 213, 224, 0.04) !important;
    padding: 5px;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: calc(90vh - 20px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0;
    margin: 0 auto;
}

.modal-close {
    display: none;
}

.modal-close:hover,
.modal-close:focus {
    color: #6d7880;
    background: rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

/* Адаптивность модального окна */
@media (max-width: 768px) {
    .modal-close {
        top: -8px;
        right: -8px;
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 85vh;
        padding: 5px;
    }
    
    .modal-content img {
        max-height: calc(85vh - 20px);
    }
}

/* Адаптивность для больших экранов */
@media (min-width: 1920px) {
    .container {
        max-width: 1100px;
    }
    
    body > section,
    body > footer {
        max-width: 1200px;
    }
    
    .hero-container {
        max-width: 900px;
    }
}

/* Планшеты в горизонтальной ориентации и небольшие десктопы */
@media (max-width: 1400px) {
    body > section,
    body > footer {
        max-width: 900px;
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Планшеты */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    body > section,
    body > footer {
        max-width: 800px;
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .hero-container {
        max-width: 600px;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-contacts {
        max-width: 100%;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
    }
}

/* Планшеты в вертикальной ориентации */
@media (max-width: 968px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-contacts {
        max-width: 500px;
        margin: 30px auto 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .accordion-title {
        font-size: 1.1rem;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }
    /* Базовые настройки для секций */
    body > section,
    body > footer {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-sizing: border-box;
    }
    
    /* Контейнеры */
    .container {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    section {
        padding: 20px 0;
        box-sizing: border-box;
    }
    
    /* Hero секция */
    .hero-section {
        margin-top: 20px;
        padding: 0 !important;
    }
    
    .hero-wrapper {
        flex-direction: column;
        gap: 0;
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .hero-divider {
        width: 100%;
        height: 1px;
        min-height: 1px;
        margin: 0;
    }
    
    .hero-wrapper .hero,
    .hero-wrapper .about {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    
    .hero-wrapper .hero-container {
        max-width: 100%;
        width: 100%;
        padding: 24px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .hero-wrapper .about .container {
        max-width: 100%;
        width: 100%;
        padding: 24px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .hero-name {
        font-size: 1.875rem;
        word-wrap: break-word;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .hero-experience {
        font-size: 0.875rem;
        margin-top: 5px;
    }

    .hero-specialization {
        font-size: 0.9rem;
    }
    
    .hero-location {
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .hero-contacts {
        width: 100%;
        max-width: 100%;
        gap: 12px;
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 8px;
    }
    
    .contact-link {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    /* About секция */
    .hero-wrapper .about .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        word-wrap: break-word;
        line-height: 1.3;
    }

    .hero-wrapper .about .about-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 18px;
        word-wrap: break-word;
    }
    
    /* Общие заголовки */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        word-wrap: break-word;
    }
    
    .about-description {
        font-size: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word;
    }
    
    /* Портфолио */
    .portfolio {
        padding: 20px 0;
    }
    
    .portfolio-accordion {
        max-width: 100%;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .portfolio-grid {
        column-count: 2;
        column-gap: 10px;
        width: 100%;
    }
    
    .portfolio-item {
        margin-bottom: 10px;
        width: 100%;
        break-inside: avoid;
    }
    
    .accordion-header {
        padding: 15px 0;
    }
    
    .accordion-title {
        font-size: 1rem;
    }
    
    .accordion-icon {
        font-size: 1.2rem;
    }
    
    /* Контакты */
    .contact {
        padding: 20px 0;
        margin-bottom: 40px;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    
    .contact-content {
        max-width: 100%;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .contact-item {
        grid-template-columns: 40px 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .contact-item .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-item .contact-icon img {
        width: 24px;
        height: 24px;
    }
    
    .contact-item > div:last-child h4 {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    .contact-item > div:last-child a {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    /* Предотвращение выхода текста за границы */
    * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    p, h1, h2, h3, h4, h5, h6, span, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Модальное окно проверки возраста на мобильных */
    .age-verification-content {
        max-width: 90%;
        padding: 25px 20px 20px;
    }
}

/* Дополнительные стили для очень маленьких экранов (переопределяют базовые мобильные) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-wrapper .hero-container,
    .hero-wrapper .about .container {
        padding: 15px;
    }
    
    .hero-name {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .hero-wrapper .about .section-title {
        font-size: 1.25rem;
    }
    
    .portfolio-accordion {
        padding: 0 15px;
    }
    
    .contact-content {
        padding: 0 15px;
    }
    
    .portfolio-grid {
        column-count: 1;
        column-gap: 10px;
    }
}

/* Очень маленькие устройства */
@media (max-width: 360px) {
    .hero-name {
        font-size: 1.13rem;
    }
    
    .hero-experience {
        font-size: 0.56rem;
        margin-top: 2.5px;
    }
    
    .section-title {
        font-size: 0.98rem;
    }
    
    .contact-link {
        padding: 4px 6px;
        font-size: 0.64rem;
    }
    
    .contact-icon {
        font-size: 0.5rem;
    }
    
    .contact-text {
        font-size: 0.64rem;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 20px 20px 40px;
        margin-top: 60px;
    }
    
    .contact {
        margin-bottom: 60px;
    }
    
    section {
        padding: 25px 0;
    }
}

/* Ссылка на разработчика */
.developer-link-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 40px 20px;
    text-align: right;
}

.developer-link {
    font-size: 0.65rem;
    color: var(--text-lighter);
    text-decoration: none;
    opacity: 0.5;
    transition: var(--transition);
    font-weight: 400;
    letter-spacing: 0.02em;
    display: inline-block;
}

.developer-link:hover {
    opacity: 1;
    color: var(--text-light);
}

/* На мобильных устройствах делаем еще меньше */
@media (max-width: 768px) {
    .developer-link-wrapper {
        padding: 15px 20px 15px;
    }
    
    .developer-link {
        font-size: 0.6rem;
    }
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(199, 213, 224, 0.1);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    touch-action: manipulation;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: rgba(30, 30, 30, 0.5);
    border-color: rgba(199, 213, 224, 0.2);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(-1px) scale(0.95);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* На мобильных устройствах */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 70px;
        right: 15px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Кнопка редактирования (шестеренка) */
.edit-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.3);
    border: 1px solid rgba(199, 213, 224, 0.1);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: var(--transition);
    z-index: 998;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    touch-action: manipulation;
}

.edit-mode-toggle:hover {
    opacity: 1;
    background: rgba(30, 30, 30, 0.5);
    border-color: rgba(199, 213, 224, 0.2);
    transform: rotate(90deg);
}

.edit-mode-toggle:active {
    transform: rotate(90deg) scale(0.95);
}

.edit-mode-toggle svg {
    width: 16px;
    height: 16px;
}

/* Кнопка сохранения изменений */
.save-changes-btn {
    position: fixed;
    bottom: 20px;
    left: 60px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(40, 120, 200, 0.8);
    border: 1px solid rgba(60, 140, 220, 0.5);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    z-index: 998;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    touch-action: manipulation;
    font-family: 'Manrope', sans-serif;
}

.save-changes-btn:hover {
    background: rgba(50, 130, 210, 0.9);
    border-color: rgba(70, 150, 230, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 120, 200, 0.3);
}

.save-changes-btn:active {
    transform: translateY(0);
}

.save-changes-btn svg {
    width: 16px;
    height: 16px;
}

.save-changes-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Модальное окно для ввода пароля */
.password-modal-content {
    background: rgba(20, 20, 20, 0.98);
    border-radius: 24px;
    padding: 30px 25px 25px;
    max-width: 300px;
    width: 90%;
    text-align: center;
}

.password-modal-title {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(199, 213, 224, 0.2);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.password-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(30, 30, 30, 1);
}

.password-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.password-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.password-btn-submit {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.password-btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.password-btn-cancel {
    background: rgba(30, 30, 30, 0.8);
    color: var(--text-light);
    border: 1px solid rgba(199, 213, 224, 0.2);
}

.password-btn-cancel:hover {
    background: rgba(30, 30, 30, 1);
    border-color: rgba(199, 213, 224, 0.3);
}

.password-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Модальное окно подтверждения удаления */
.delete-confirm-content {
    background: rgba(20, 20, 20, 0.98);
    border-radius: 24px;
    padding: 30px 25px 25px;
    max-width: 350px;
    width: 90%;
    text-align: center;
}

.delete-confirm-title {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.delete-confirm-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.delete-confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.delete-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.delete-btn-yes {
    background: #ff6b6b;
    color: white;
}

.delete-btn-yes:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.delete-btn-no {
    background: rgba(30, 30, 30, 0.8);
    color: var(--text-light);
    border: 1px solid rgba(199, 213, 224, 0.2);
}

.delete-btn-no:hover {
    background: rgba(30, 30, 30, 1);
    border-color: rgba(199, 213, 224, 0.3);
}

/* Режим редактирования */
.edit-mode .portfolio-item {
    border: 2px solid #4a90e2;
    position: relative;
    cursor: grab;
}

.edit-mode .portfolio-item:active {
    cursor: grabbing;
}

.edit-mode .portfolio-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.edit-mode .portfolio-item.drag-over {
    border-color: #90caf9;
    background: rgba(74, 144, 226, 0.1);
}

.edit-mode .delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255, 107, 107, 0.95);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.edit-mode .delete-btn:hover {
    background: rgba(255, 82, 82, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.edit-mode .delete-btn:active {
    transform: scale(0.95);
}

/* Секция загрузки изображений */
.upload-section {
    display: none;
}

.edit-mode .upload-section {
    display: block;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 12px;
    border: 2px dashed rgba(199, 213, 224, 0.3);
}

.edit-mode .upload-section.hidden {
    display: none;
}

.upload-input-wrapper {
    position: relative;
    display: inline-block;
}

.upload-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.upload-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.upload-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-loading {
    display: none;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 10px;
}

.upload-loading.active {
    display: block;
}
