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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    font-family: 'Rubik Mono One', monospace, sans-serif;
    background: #2b2118;
    color: #171717;
}

.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Фон стола */
.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('stol.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}

/* Кнопка языка */
/* Кнопка языка: чистая белая плашка с мягкой тенью на дерево */
.language-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 52px;
    height: 38px;
    padding: 0;
    border: none; /* УБРАНА ОБВОДКА */
    border-radius: 4px;
    background: #ffffff;
    color: #000000;
    font-family: 'Rubik Mono One', monospace, sans-serif;
    font-size: 13px;
    cursor: pointer;
    /* Естественная мягкая тень на стол */
    box-shadow: 3px 6px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    user-select: none;
}

.language-switch:hover {
    background: #f7f7f7;
    transform: translateY(-2px);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.45);
}

.site-header {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Логотип: тонкий идеальный контур + реалистичная тень на дерево */
.logo {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Rubik Mono One', monospace, sans-serif;
    font-size: clamp(38px, 5.5vw, 72px);
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: center;

    /* Тонкая обводка без закругления углов */
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;

    /* Убрали жесткую тень, добавили реалистичную мягкую тень на стол */
    text-shadow: none;
    filter: drop-shadow(4px 6px 6px rgba(0, 0, 0, 0.45)) 
            drop-shadow(8px 14px 18px rgba(0, 0, 0, 0.35));
}
.about {
    position: relative;
    z-index: 5;
    width: min(680px, 90vw);
    margin: 12px auto 0;
    text-align: center;
}

/* Описание: чистый белый текст без обводки + глубокая тень на доски стола */
.intro-text {
    font-size: clamp(14px, 1.25vw, 17px);
    line-height: 1.6;
    font-weight: 800;
    color: #ffffff;
    -webkit-text-stroke: 0;
    text-shadow: none;
    /* Плотная реалистичная тень, отделяющая текст от текстуры дерева */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) 
            drop-shadow(3px 6px 12px rgba(0, 0, 0, 0.75));
}

/* ========================================================
   СТОЛ И ПРЕДМЕТЫ (ШИРОКИЙ ЦЕНТР, ГРАНЖЕВЫЙ НАКЛОН)
   ======================================================== */
.desk {
    position: relative;
    z-index: 5;
    /* Увеличили общую ширину и раздвинули центр в 1.5 раза */
    width: min(890px, 92vw);
    margin: 15px auto 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(60px, 9vw, 130px); /* Большой простор между левой и правой колонкой */
    row-gap: 25px;
    align-items: end;
}

/* Контейнер предмета */
.object {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-object,
.contact-object {
    justify-self: end;
}

.sketchbook-object,
.draw-object {
    justify-self: start;
}

/* 1. ТЕЛЕФОН: сдвинут чуть влево (-10px) и чуть вниз (+14px) */
.phone-object {
    width: clamp(118px, 10.8vw, 154px);
    transform: translate(-10px, 14px) rotate(-11deg);
}
.phone-object:hover {
    transform: translate(-10px, 8px) rotate(-7deg) scale(1.03);
}
.phone-label {
    transform: rotate(4deg);
}

/* 2. СКЕТЧБУК (Сверху справа): поднят на 28px */
.sketchbook-object {
    width: clamp(190px, 18vw, 260px);
    transform: rotate(3deg);
    margin-bottom: 28px;
}
.sketchbook-object:hover {
    transform: rotate(1deg) translateY(-6px) scale(1.02);
}
.sketchbook-object .item-label {
    transform: rotate(2deg);
}

/* 3. КОНТАКТЫ: чуть выше (margin-bottom: 48px) и чуть правее (translateX(12px)) */
.contact-object {
    width: clamp(170px, 16vw, 235px);
    transform: translateX(12px) rotate(-3deg);
    margin-bottom: 48px;
}
.contact-object:hover {
    transform: translateX(12px) translateY(-6px) rotate(-1deg) scale(1.02);
}
.contact-object .item-label {
    transform: rotate(2deg);
}
/* 4. РИСОВАТЬ (Снизу справа): поднят на 28px */
.draw-object {
    width: clamp(180px, 17vw, 245px);
    transform: rotate(3deg);
    margin-bottom: 28px;
}
.draw-object:hover {
    transform: rotate(1deg) translateY(-6px) scale(1.02);
}
.draw-object .item-label {
    transform: rotate(-1deg);
}

/* Тень предметов на стол */
.item-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(6px 8px 8px rgba(0, 0, 0, 0.32));
    transition: filter 0.2s ease;
}

.object:hover .item-img {
    filter: drop-shadow(8px 12px 12px rgba(0, 0, 0, 0.4));
}

/* ========================================================
   ЕДИНЫЙ БРУТАЛИСТСКИЙ СТИЛЬ НАДПИСЕЙ (СТИКЕРЫ / СКОТЧ)
   ======================================================== */
/* Плашки подписей: без обводки + мягкая тень на дерево */
.item-title,
.item-label,
.phone-label,
.sticker-title {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none;
    
    display: inline-block;
    z-index: 10;
    margin-top: -14px;
    padding: 6px 14px;
    
    background: #ffffff;
    color: #000000;
    font-family: 'Rubik Mono One', monospace, sans-serif;
    font-size: clamp(11px, 1.1vw, 14px);
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    
    border: none;
    border-radius: 2px;
    /* Реалистичная тень бумажной плашки на доски стола */
    box-shadow: 3px 6px 12px rgba(0, 0, 0, 0.35), 1px 2px 4px rgba(0, 0, 0, 0.2);
    -webkit-text-stroke: 0;
    text-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ========================================================
   МОДАЛКА ТЕЛЕФОНА
   ======================================================== */
.phone-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.phone-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.phone-device {
    position: relative;
    z-index: 2;
    width: min(330px, 88vw);
    height: min(560px, 82vh);
    background: #12151b;
    border: 4px solid #2f3747;
    border-radius: 36px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    overflow: hidden;
}

.phone-modal.active .phone-device {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
}

.phone-notch {
    width: 90px;
    height: 16px;
    background: #2f3747;
    margin: 0 auto;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.phone-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 18px 14px;
    color: #fff;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 15px;
}

.phone-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.phone-title {
    text-align: center;
    font-size: 17px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: #1c222c;
    border: 1px solid #333d4f;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    transition: transform 0.18s ease, background 0.18s ease;
}

.social-btn:hover {
    transform: translateX(4px);
    background: #27303e;
}

.social-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.phone-home-indicator {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    margin: 14px auto 0;
}

/* ========================================================
   СЕКРЕТНАЯ ПАСХАЛКА ВНИЗУ
   ======================================================== */
.secret-face {
    position: fixed;
    bottom: 8px;
    right: 20px;
    z-index: 25;
    width: 55px;
    height: 70px;
    display: block;
    cursor: pointer;
    user-select: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
    transition: filter 0.15s ease;
}

.secret-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Смешной бешеный дёргающийся расколбас */
.secret-face:hover {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.95));
    animation: dubstepTwitch 0.12s infinite linear;
}

@keyframes dubstepTwitch {
    0%   { transform: translateY(-8px) rotate(-10deg) scale(1.22, 1.15); }
    25%  { transform: translateY(-13px) rotate(8deg) scale(1.15, 1.25); }
    50%  { transform: translateY(-7px) rotate(-14deg) scale(1.25, 1.12); }
    75%  { transform: translateY(-12px) rotate(11deg) scale(1.14, 1.22); }
    100% { transform: translateY(-8px) rotate(-10deg) scale(1.22, 1.15); }
}

/* ========================================================
   СКВИШИ НА СТОЛЕ (УВЕЛИЧЕНЫ В 1.5 РАЗА)
   ======================================================== */
.skvish {
    position: absolute;
    z-index: 100; /* ВЫШЕ ВСЕХ КНОПОК И ТЕКСТА НА СТОЛЕ */
    cursor: grab;
    user-select: none;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    transform-origin: center bottom;
}

.skvish img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    filter: drop-shadow(6px 8px 10px rgba(0, 0, 0, 0.45));
    transition: filter 0.15s ease;
}

/* Skvish 1: Валяется слева за пределами сетки кнопок */
.skvish1 {
    top: clamp(260px, 32vh, 380px);
    left: clamp(25px, 6vw, 110px);
    right: auto;
    width: clamp(70px, 6.8vw, 92px);
    aspect-ratio: 1 / 1.2;
}

/* Skvish 2: Валяется справа за пределами сетки кнопок */
.skvish2 {
    top: clamp(340px, 42vh, 460px);
    right: clamp(25px, 6vw, 110px);
    left: auto;
    width: clamp(64px, 6.2vw, 85px);
    aspect-ratio: 1 / 1.2;
}

/* Состояние в полёте при таскании */
.skvish.is-dragging {
    cursor: grabbing !important;
    z-index: 1000 !important;
    transition: none !important;
}

.skvish.is-dragging img {
    animation: panicDangle 0.14s ease-in-out infinite alternate !important;
    filter: drop-shadow(14px 22px 18px rgba(0, 0, 0, 0.6)) !important;
    transform-origin: center top;
}

@keyframes panicDangle {
    0% { transform: scale(1.15, 0.88) rotate(-14deg); }
    100% { transform: scale(0.88, 1.15) rotate(14deg); }
}

.skvish:not(.is-dragging):hover img {
    animation: skvishWiggle 0.35s ease-in-out infinite alternate;
    filter: drop-shadow(8px 12px 14px rgba(0, 0, 0, 0.55));
}

@keyframes skvishWiggle {
    0% { transform: scale(1.05) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

/* Вылетающее облачко */
.skvish-bubble {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #ffffff;
    color: #000000;
    font-family: 'Rubik Mono One', monospace, sans-serif; /* НАШ ШРИФТ */
    border: 2px solid #000000;
    box-shadow: 2.5px 2.5px 0 #000000;
    font-size: 10px;
    padding: 4px 7px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    z-index: 1002;
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.15s ease;
}

.skvish-bubble.show {
    transform: translateX(-50%) scale(1.2) translateY(-8px);
    opacity: 1;
}

/* Деформации формы */
.squash-pancake { animation: animPancake 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards !important; }
.squash-sausage { animation: animSausage 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards !important; }
.squash-diagonal { animation: animDiagonal 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards !important; }
.squash-pop { animation: animPop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards !important; }

@keyframes animPancake {
    0% { transform: scale(1, 1); }
    25% { transform: scale(1.6, 0.4) translateY(18px); }
    55% { transform: scale(0.7, 1.35) translateY(-8px); }
    75% { transform: scale(1.15, 0.9); }
    100% { transform: scale(1, 1); }
}

@keyframes animSausage {
    0% { transform: scale(1, 1); }
    25% { transform: scale(0.45, 1.6) translateY(-20px); }
    55% { transform: scale(1.35, 0.75) translateY(8px); }
    75% { transform: scale(0.9, 1.15); }
    100% { transform: scale(1, 1); }
}

@keyframes animDiagonal {
    0% { transform: scale(1, 1); }
    25% { transform: scale(1.4, 0.6) rotate(22deg) translateY(12px); }
    55% { transform: scale(0.8, 1.3) rotate(-16deg); }
    75% { transform: scale(1.1, 0.95) rotate(5deg); }
    100% { transform: scale(1, 1) rotate(0deg); }
}

@keyframes animPop {
    0% { transform: scale(1, 1); }
    30% { transform: scale(0.65, 0.65); }
    60% { transform: scale(1.4, 1.4); }
    100% { transform: scale(1, 1); }
}

/* ========================================================
   МОБИЛЬНАЯ ВЕРСИЯ (ДО 700px):
   ======================================================== */
@media (max-width: 700px) {
    /* На телефоне: увеличены и стоят по бокам от кнопок */
    .skvish1 {
        top: 250px;
        left: 12px;
        right: auto;
        width: 72px; /* Чуть крупнее под палец */
    }
    
    .skvish2 {
        top: 530px;
        right: 12px;
        left: auto;
        width: 68px; /* Чуть крупнее под палец */
    }

    /* Столбик предметов */
    .desk {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-top: 30px;
    }

    .sketchbook-object,
    .draw-object,
    .phone-object,
    .contact-object {
        justify-self: center;
        align-self: center;
        margin: 0 !important;
        transform: none !important;
    }

    .sketchbook-object {
        width: min(240px, 68vw) !important;
    }

    .phone-object {
        width: 135px !important;
    }

    .draw-object,
    .contact-object {
        width: min(210px, 60vw) !important;
    }
}
/* ========================================================
   АДАПТИВНОСТЬ ДЛЯ БОЛЬШИХ МОНИТОРОВ (2K, 4K, ЭКРАНЫ 27"+)
   ======================================================== */

/* 1. Экраны 2K / 1440p / Большие мониторы от 1600px */
@media (min-width: 1600px) {
    /* Раздвигаем сетку стола шире */
    .desk {
        width: min(1200px, 78vw);
        column-gap: 120px;
        row-gap: 60px;
        margin: 40px auto 80px;
    }

    /* Увеличиваем предметы пропорционально столу */
    .phone-object {
        width: 195px !important;
    }

    .sketchbook-object {
        width: 350px !important;
    }

    .contact-object {
        width: 320px !important;
    }

    .draw-object {
        width: 330px !important;
    }

    /* Увеличиваем логотип и текст описания */
    .logo {
        font-size: 110px !important;
    }

    .about {
        width: min(900px, 80vw);
    }

    .intro-text {
        font-size: 22px !important;
        line-height: 1.6;
    }

    /* Увеличиваем стикерные надписи и тени */
    .item-label,
    .phone-label,
    .sticker-title {
        font-size: 20px !important;
        padding: 7px 18px !important;
        border-width: 3px !important;
        box-shadow: 5px 5px 0 #000000 !important;
        margin-top: -18px !important;
    }

    /* Увеличиваем сквишей */
    .skvish1 {
        top: 170px;
        left: 5vw;
        width: 95px !important;
    }

    .skvish2 {
        top: 180px;
        right: 5vw;
        width: 95px !important;
    }

    .skvish-bubble {
        font-size: 14px;
        padding: 4px 10px;
    }

    /* Кнопка смены языка */
    .language-switch {
        width: 60px;
        height: 44px;
        font-size: 16px;
    }
}

/* 2. Экраны 4K Ultra-HD (от 2200px) */
@media (min-width: 2200px) {
    .desk {
        width: min(1650px, 75vw);
        column-gap: 180px;
        row-gap: 90px;
        margin: 60px auto 100px;
    }

    .phone-object {
        width: 260px !important;
    }

    .sketchbook-object {
        width: 480px !important;
    }

    .contact-object {
        width: 440px !important;
    }

    .draw-object {
        width: 450px !important;
    }

    .logo {
        font-size: 150px !important;
    }

    .about {
        width: min(1200px, 75vw);
    }

    .intro-text {
        font-size: 28px !important;
    }

    .item-label,
    .phone-label,
    .sticker-title {
        font-size: 26px !important;
        padding: 10px 24px !important;
        border-width: 4px !important;
        box-shadow: 7px 7px 0 #000000 !important;
        margin-top: -24px !important;
    }

    .skvish1 {
        top: 220px;
        left: 7vw;
        width: 130px !important;
    }

    .skvish2 {
        top: 230px;
        right: 7vw;
        width: 130px !important;
    }

    .skvish-bubble {
        font-size: 18px;
        padding: 6px 14px;
    }

    .language-switch {
        width: 76px;
        height: 54px;
        font-size: 20px;
    }
}
