.pc-layout {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height-pc);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(10px);
}

.header__container {
    width: var(--container-pc);
    display: flex;
    justify-content: center;
}

.header__nav {
    display: flex;
    gap: var(--gap-lg);
    align-items: center;
}

.header__link {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
}

.header__link:hover {
    color: var(--text-primary);
}

.header__link--highlight {
    border-color: rgba(255, 255, 255, 0.1);
}

.header__link--highlight:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--header-height-pc);
}

.main-content__container {
    width: var(--container-pc);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-lg);
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
}

.hero__line {
    color: var(--text-primary);
}

.hero__line--italic {
    font-style: italic;
    color: var(--text-italic);
    font-weight: 400;
    font-size: 0.75em;
}

.hero__subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.05em;
    margin-top: var(--gap-sm);
}

.hero__actions {
    display: flex;
    gap: var(--gap-md);
    margin-top: var(--gap-sm);
}

.btn {
    padding: 0.8rem 2.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: var(--text-primary);
    color: #000000;
}

.btn--primary:hover {
    background-color: #b8b4ac;
}

.btn--secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn--secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
}

.bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 100;
    background: linear-gradient(to top, var(--bg-color) 50%, transparent);
    padding-bottom: 2rem;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-text {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    padding-left: 2rem;
}

@keyframes marquee-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.dock-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.dock {
    width: var(--container-pc);
    display: flex;
    gap: var(--gap-md);
    justify-content: space-between;
}

.dock__item {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    justify-content: center;
    animation: dock-wave 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.dock__item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

@keyframes dock-wave {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

.dock__number {
    font-size: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    align-self: flex-end;
}

.dock__title {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.dock__desc {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}


/* ========================================== */
/* 4. СТИЛИ МОДАЛЬНЫХ ОКОН (Mac OS + Стекло)   */
/* ========================================== */



/* Класс для развернутого окна (на весь экран) */

.window-modal {
    position: fixed;
    display: none;
    flex-direction: column; 
    z-index: 200;
    width: 800px;
    max-height: 80dvh;
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    /* Никаких top/left/transform здесь нет. Управляем всем через JS. */
}


/* --- Заголовок окна --- */
.window-header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Кнопки прижимаем влево */
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: grab;
    user-select: none;
    gap: 16px; /* Расстояние между кнопками и будущим заголовком, если он появится */
}

.window-header:active {
    cursor: grabbing;
}

/* --- Кнопки управления (Закрыть, свернуть, развернуть) --- */
.window-controls {
    display: flex;
    gap: 8px;
}

.win-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease;
}

.win-btn:hover {
    filter: brightness(1.2);
}

.win-btn--close {
    background-color: #ff5f57;
}
.win-btn--minimize {
    background-color: #febc2e;
}
.win-btn--maximize {
    background-color: #28c840;
}

/* --- Заголовок текста --- */
.window-title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 400;
}

.window-controls-placeholder {
    width: 70px; /* Ширина такая же, как у блока с кнопками, чтобы центрировать текст */
}

/* --- Тело окна --- */
.window-body {
    flex: 1;
    padding: 32px 40px 40px;
    overflow-y: auto; /* Если контента много, появится скролл */
}

/* Заголовок внутри (Услуги студии) */
.window-body__subtitle {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* --- Сетка услуг (2 колонки) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* --- Карточка услуги --- */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.service-card__title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.service-card__desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    letter-spacing: 0.02em;
}




/* --- Вкладка внизу (появляется в доке) --- */
.dock-tab {
    position: absolute;
    bottom: 100px; /* Высота, чтобы висеть прямо над доком */
    left: 50%;
    transform: translateX(-50%);
    
    /* Выстраиваем вкладки в ряд, если их несколько */
    display: flex;
    flex-direction: row;
    gap: 8px; /* Расстояние между вкладками */
    
    /* Фон и стекло */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 16px; /* Уменьшили отступы, чтобы было компактнее */
    
    font-family: var(--font-sans);
    font-size: 0.7rem; /* Чуть меньше шрифт */
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 300;
    
    /* Анимация появления */
    animation: dockTabAppear 0.4s ease forwards;
    transition: all 0.2s ease;
}

/* Каждая отдельная вкладка внутри контейнера */
.dock-tab .tab-item {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
    white-space: nowrap;
}

.dock-tab .tab-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Точка перед названием (для красоты) */
.dock-tab .tab-item::before {
    content: '●';
    color: #febc2e;
    font-size: 0.5rem;
    margin-right: 6px;
    vertical-align: middle;
}


/* --- Список процесса (вертикальный) --- */
.process-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.process-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.process-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.process-item__num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    margin-top: 2px;
}

.process-item__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.process-item__title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.process-item__desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    letter-spacing: 0.02em;
}




/* ========================================== */
/* СТИЛИ ДЛЯ МОДАЛКИ "О СТУДИИ"                */
/* ========================================== */

/* Контейнер с контентом */
.about-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 680px; /* Чтобы текст не растягивался на всю ширину */
    margin: 0 auto;   /* Центрируем контент внутри окна */
}

.about-badge {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.2;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.about-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-list__item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 4px 0;
}

.about-list__num {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    width: 24px;
}

.about-list__text {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
}

.about-epilogue {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    opacity: 0.7;
    padding-top: 8px;
}


/* ========================================== */
/* СТИЛИ ДЛЯ МОДАЛКИ "КОНТАКТЫ" (ФОРМА)        */
/* ========================================== */

.contacts-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.contacts-subtitle {
    margin-bottom: 0;
}

/* Форма */
.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-sans);
}

/* Кнопка "Отправить" (на всю ширину) */
.btn--fullwidth {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn--fullwidth:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.send-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}
.btn--fullwidth:hover .send-icon {
    transform: translateX(4px) rotate(-45deg);
}

/* Блок статуса (красивые уведомления) */
.form-status {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    display: none;
    text-align: center;
    animation: statusAppear 0.3s ease forwards;
    margin-top: -4px;
}

@keyframes statusAppear {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-status--success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.form-status--error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Подвал с контактами */
.contacts-footer {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
}

.contacts-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts-link:hover {
    color: var(--text-primary);
}

.contacts-icon {
    opacity: 0.6;
}


/* ========================================== */
/* СТИЛИ ДЛЯ МОДАЛКИ "ПОРТФОЛИО"               */
/* ========================================== */

.portfolio-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 30px 30px;
    height: 100%;
    overflow: hidden;
}

.portfolio-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.portfolio-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 18px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.portfolio-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.portfolio-tab.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.portfolio-iframe-wrapper {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 400px;
}

.portfolio-iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    background: transparent;
}

/* ========================================== */
/* КАСТОМНАЯ КНОПКА ТЕЛЕФОНА ДЛЯ ПОРТФОЛИО    */
/* ========================================== */

#modal-portfolio .win-btn--maximize.active-phone {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* По умолчанию (полный экран) — показываем 📱 */
#modal-portfolio .win-btn--maximize.active-phone::before {
    content: '📱';
    font-size: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Когда нажали на телефон (режим телефона) — меняем на ⛶ */
#modal-portfolio .win-btn--maximize {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#modal-portfolio .win-btn--maximize::before {
    content: '⛶';
    font-size: 16px;
    color: var(--text-secondary);
}