/* ===== Font Faces ===== */
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.project-item__title {
    border-bottom: 2px solid transparent;
    margin: 0;
    height: 30px;
}

.project-item__title h4,
.project-item__title input {
    padding: 3px;
    max-height: 26px;
}

.app__content {
    padding-bottom: 150px;
}

.floating-export__card {
    width: 400px;
}

.export-btn--copy {
    width: 170px;
}

.free-project-counter {
    background: #eee;
    width: max-content;
    border-radius: 6px;
    padding: 4px 6px;
    margin-top: 10px;
    max-width: 100%; 
    margin-bottom: 50px;   
}

@media print {
    .bg-gray-50 {
        background-color: #f9fafb !important;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 12px;
    }
    .bg-blue-50 {
        background-color: #eff6ff !important;
        border-radius: 8px;
        padding: 12px;
    }
    h3 {
        font-weight: 600;
        margin-bottom: 8px;
    }
    .border-t {
        border-top: 1px solid #e5e7eb;
        padding-top: 8px;
    }
    .rounded-lg {
        border-radius: 8px;
    }
} 

input {
    outline: none !important;
    box-shadow: none !important;
}

/* Курсор-указатель при наведении на все инпуты */
input[type="checkbox"] {
    cursor: pointer;
}

/* Скрыть стрелки у number input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Стили для панели настроек */
.settings-input-small {
    width: 38px;
    height: 24px;
    padding: 0 8px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.settings-input-small:focus {
    outline: none;
    ring: 1px;
    ring-color: #3b82f6;
}

.settings-input-small:disabled {
    opacity: 0.3;
}

.settings-input-medium {
    width: 70px;
    height: 30px;
    padding: 0 8px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}

.settings-input-medium:focus {
    outline: none;
    ring: 1px;
    ring-color: #3b82f6;
}

.settings-input-tiny {
    width: 42px;
    height: 30px;
    padding: 0 8px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}

.settings-input-tiny:focus {
    outline: none;
    ring: 1px;
    ring-color: #3b82f6;
}

.settings-select {
    width: 150px;
    height: 30px;
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background-color: white;
}

.settings-select:focus {
    outline: none;
    ring: 1px;
    ring-color: #3b82f6;
}

.settings-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #9ca3af;
    border-radius: 2px;
    flex-shrink: 0;
}

.settings-checkbox:focus {
    ring: 1px;
    ring-color: #3b82f6;
}

/* =====================
   Стили карточек работ
   ===================== */
.work-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    background-color: #F9FAFB; /* gray-50 */
}

.work-name {
    width: 200px;
    height: 30px;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.work-name input {
    border-bottom: 1px solid #eee;
}

.work-type-toggle {
    height: 30px;
    padding: 2px 4px;
    border-radius: 6px;
    background-color: #f0f0f0; /* requested */
    display: flex;
    align-items: center;
}

.work-type-toggle button {
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-type-toggle__btn--active {
    background-color: #ffffff;
    color: #4e76e8;
}

.work-type-toggle__btn--inactive {
    color: #222222;
}

.work-row-grow {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
}

/* Строка для фикс и почасовой работы */
.work-fixed-row,
.work-hourly-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.work-number-input {
    width: 40px;
    height: 30px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}

.work-days-group,
.work-hours-group {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 85px;
    min-width: 85px;
}

.work-amount-input {
    width: 78px; /* чтобы вся группа суммы помещалась в 100px вместе с ₽ и gap */
    height: 30px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}

.work-price-badge {
    height: 30px;
    padding: 4px;
    border-radius: 6px;
    background-color: #F4F4F4;
    display: flex;
    align-items: center;
    justify-content: start;
    flex: 0 0 auto;
    width: 100px; /* одинаковая ширина с фиксированной суммой */
    cursor: pointer;
}

.work-amount-group {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100px; /* итоговая ширина блока суммы у фикс */
    min-width: 100px;
}

/* Анимации для уведомлений */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Стили для скрытия уведомлений после их закрытия */
.toast-exit {
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Стили для компонента аутентификации */
.auth-component {
    transition: all 0.3s ease;
}

.auth-component img.rounded-full {
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Анимация для индикатора загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Стили для PDF экспорта */
.pdf-content {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background: white;
    padding: 20px;
    margin: 0 auto;
}

.pdf-content h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2563eb;
    padding-bottom: 10px;
}

.pdf-content h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 25px 0 15px 0;
    color: #374151;
}

.pdf-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: #4b5563;
}

.pdf-content .project-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.pdf-content .project-info p {
    margin: 5px 0;
    font-size: 14px;
}

.pdf-content .work-item {
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    min-height: 24px;
}

.pdf-content .work-item:last-child {
    border-bottom: none;
}

.pdf-content .work-name {
    font-weight: 600;
    color: #374151;
    display: inline-block;
    max-width: 70%;
}

.pdf-content .work-details {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.pdf-content .work-cost {
    position: absolute;
    right: 0;
    top: 8px;
    font-weight: bold;
    color: #059669;
}

.pdf-content .total-section {
    background: #eff6ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    border: 2px solid #3b82f6;
}

.pdf-content .total-price {
    font-size: 24px;
    font-weight: bold;
    color: #1d4ed8;
    text-align: center;
    margin: 15px 0;
}

.pdf-content .summary-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 5px 0;
}

.pdf-content .summary-label {
    color: #6b7280;
}

.pdf-content .summary-value {
    font-weight: 600;
    color: #374151;
}

.pdf-content .footer {
    margin-top: 40px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

/* Фиксированная ширина кнопки настроек (одинаково для 'Настройки проекта' и 'Закрыть') */
.settings-fab {
    width: 240px;
    max-width: 90vw;
    white-space: nowrap;
}

/* Скрытие элементов при PDF экспорте */
@media print {
    .no-print {
        display: none !important;
    }
    
    .pdf-content {
        padding: 20px;
        box-shadow: none;
    }
    
    .pdf-content .work-cost {
        position: static !important;
        float: right;
    }
}

/* ===== Mobile warning modal (<= 1000px) ===== */
.mobile-warning { display: none; }
@media (max-width: 1000px) {
    .mobile-warning { display: none !important; }
    .mobile-warning.mobile-warning--closed { display: none !important; }
}
.mw__overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9998; }
.mw__container { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; width: 100%; max-width: 95vw; padding: 16px 16px 0 16px; margin: 0 auto; }
.mw__card { background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 20px 40px rgba(0,0,0,.2); overflow: hidden; }
.modal-kicker { width: 100%; max-width: 320px; height: 260px; background: #ffffff; }
.modal-kicker .leg { position: absolute; left: 50%; top: 50%; pointer-events: none; transform-origin: 0 0; }
.modal-kicker .leg img { width: 86px; height: 86px; opacity: .95; }
.leg--top { animation: arcTop 2.6s ease-in-out infinite; animation-delay: 0s; }
.leg--left-bottom { animation: arcLeftBottom 2.6s ease-in-out infinite; animation-delay: .65s; }
.leg--right-bottom { animation: arcRightBottom 2.6s ease-in-out infinite; animation-delay: 1.3s; }
.leg--right-top { animation: arcRightTop 2.6s ease-in-out infinite; animation-delay: 1.95s; }
.leg--right-bottom img, .leg--right-top img { transform: scaleX(-1); }
@keyframes arcTop { 0%,100%{transform: rotate(-90deg) translate(95px) rotate(180deg) scale(.60);} 25%{transform: rotate(-84deg) translate(74px) rotate(180deg) scale(.64);} 50%{transform: rotate(-90deg) translate(95px) rotate(180deg) scale(.60);} }
@keyframes arcLeftBottom { 0%,100%{transform: rotate(150deg) translate(95px) rotate(180deg) scale(.60);} 25%{transform: rotate(142deg) translate(74px) rotate(180deg) scale(.64);} 50%{transform: rotate(150deg) translate(95px) rotate(180deg) scale(.60);} }
@keyframes arcRightBottom { 0%,100%{transform: rotate(30deg) translate(95px) rotate(180deg) scale(.60);} 25%{transform: rotate(38deg) translate(74px) rotate(180deg) scale(.64);} 50%{transform: rotate(30deg) translate(95px) rotate(180deg) scale(.60);} }
@keyframes arcRightTop { 0%,100%{transform: rotate(-30deg) translate(95px) rotate(180deg) scale(.60);} 25%{transform: rotate(-22deg) translate(74px) rotate(180deg) scale(.64);} 50%{transform: rotate(-30deg) translate(95px) rotate(180deg) scale(.60);} }

/* ===== App preloader ===== */
#app-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EBF4FF 0%, #E6EFFE 100%);
    z-index: 9999;
    transition: opacity 0.7s ease-out;
}
.loader-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top-color: #3B82F6;
    animation: spin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.loader-text {
    margin-top: 20px;
    font-size: 18px;
    color: #3B82F6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(59, 130, 246, 0.05);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Site Header (tune logo width) ===== */
.site-header__logo { width: 100%; height: auto; display: block; object-fit: contain; }

/* ===== Site Header ===== */
.site-header {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 32px;
    margin: 15px auto 0;
    width: calc(100% - 1.5rem);
}
.site-header__inner {
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* слева лого+меню, справа кнопка */
    gap: 16px;
}
.site-header__left {
    display: flex;
    align-items: center;
    gap: 48px;
}
.site-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.site-header__logo {
    width: 180px;
    object-fit: contain;
}
.site-header__brand-text { line-height: 1; }
.site-header__title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.site-header__subtitle {
    margin-top: 4px;
    font-size: 10px;
    color: #6B7280;
}
.site-header__nav { display: flex; align-items: center; gap: 12px; }
.site-header__link {
    font-size: 20px;
    color: #0F172A;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.site-header__link:hover { color: #2463EB; }

/* Иконка внешней ссылки */
.external-link-icon {
    display: inline-block;
    vertical-align: middle;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.site-header__link:hover .external-link-icon,
.external-link:hover .external-link-icon {
    opacity: 1;
}

/* Подсветка поля почасовой ставки при переходе из итогов */
.highlight-hourly {
    outline: 2px solid #2563EB; /* blue-600 */
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    transition: box-shadow 0.2s ease, outline-color 0.2s ease;
}

.site-header__right { display: flex; align-items: center; gap: 12px; }

/* Кнопка «Войти» — размеры как в макете */
.btn-auth {
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    background: #2563EB;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
    cursor: pointer;
}
.btn-auth:hover { background: #1E4FD6; }

/* Чип авторизованного пользователя */
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-chip__email {
    max-width: 220px;
    font-size: 18px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-chip__logout { border: none; background: transparent; padding: 0; cursor: pointer; }
.user-chip__logout-icon { width: 22px; height: 22px; display: block; }

@media (max-width: 900px) {
    .site-header__subtitle { display: none; }
    .site-header__link { font-size: 18px; }
    .site-header__title { font-size: 24px; }
    .site-header__logo { width: 40px; height: 40px; }
}

/* Global background */
body { background: #f8f8f8; }

/* ===== Subscription Card ===== */
.subscription-card {
    position: relative;
    font-family: 'Manrope', sans-serif;
}

.subscription-card__text p {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.subscription-card__button button {
    font-family: 'Manrope', sans-serif;
}

.subscription-card__image {
    position: absolute;
    bottom: -50px;
    right: -10px;
    width: 83px;
    height: 120px;
    transition: right 0.3s ease;
    pointer-events: none;
}

.subscription-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(9.912deg);
}

.subscription-card__price {
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: #FACDBA;
}

.subscription-card:hover .subscription-card__image {
    right: 0px;
}

/* ===== Subscription Modal ===== */
.subscription-modal {
    font-family: 'Manrope', sans-serif;
    background: transparent;
}

.subscription-modal__content {
    position: fixed;
    left: 5px;
    bottom: 60px;
    width: 380px;
    border: 1px solid #DEDEDE;
    z-index: 51;
    animation: slideInUp 0.3s ease-out;
    pointer-events: auto;
    font-family: 'Manrope', sans-serif;
}

.subscription-modal__content h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

.subscription-features {
    gap: 2px;
}

.feature-item {
    gap: 2px;
}

.feature-item span {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

.subscription-pricing p {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

.subscription-pricing button {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
}

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

/* ===== Contacts Page ===== */
.contacts { 
    font-family: 'Manrope', sans-serif; 
    margin: 50px auto 0; 
    padding-bottom: 60px;
}

.contacts__container {
    margin: 0 auto;
    padding: 0 24px;
}

.contacts__section {
    margin-bottom: 60px;
}

.contacts__section-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: normal;
    color: #000;
    opacity: 0.5;
    margin: 0 0 30px 0;
    text-transform: lowercase;
}

.contacts__items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts__item {
    display: flex;
    flex-direction: column;
}

.contacts__item-label {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: normal;
    color: #000;
    margin-bottom: 0;
}

.contacts__item-value {
    font-family: 'Manrope', sans-serif;
    font-size: 90px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.8px;
    color: #000;
    text-decoration: none;
    text-align: justify;
    transition: color 0.3s ease;
}

.contacts__item-value:hover {
    color: #2463EB;
}

@media (max-width: 1160px) {
    .contacts__container {
        padding: 30px 24px 60px;
    }
    .contacts__item-value {
        font-size: 32px;
    }
}

/* ===== About Page ===== */
.about { font-family: 'Manrope', system-ui, sans-serif; margin: 50px auto 0; padding-bottom: 60px;}
.about__title { font-size: 80px; font-weight: 800; line-height: 1; letter-spacing: -1.8px; text-transform: uppercase; margin: 0 0 30px; color: #000; text-align: justify; }
.about__link-inline { color: #1F1FFF; text-decoration: none; transition: .3s all;
    /* text-decoration: underline; text-decoration-color: rgba(31, 31, 255, 0.5); text-decoration-thickness: 1px; text-underline-offset: 3px;  */
}
.about__link-inline:hover { 
    opacity: 0.5;
    /* text-decoration-color: rgba(31, 31, 255, 1);  */
}
.about__lead { font-size: 24px; font-weight: 500; line-height: 1.4; margin: 0 0 40px; color: #000; max-width: 1006px; }

/* Ряд аватарок */
.about__split {
    width: 100%;
    margin: 60px 0px;
}
/* Блоки контента */
.about__content { display: flex; flex-direction: column; gap: 40px; margin-bottom: 10px; }
.about__text-block { max-width: 684px; }
.about__p { font-size: 24px; font-weight: 500; line-height: 1.4; color: #000; margin: 0; }
.about__cta-block { display: flex; flex-direction: column; gap: 11px; }
.about__cta-title { font-size: 80px; font-weight: 800; line-height: 1; letter-spacing: -1.8px; text-transform: uppercase; color: #000; margin: 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.about__cta-badge { display: inline-flex; align-items: center; padding: 6px 12px; background: #E3DEFF; color: #5A3FEE; border-radius: 10px; text-decoration: none; transition: background .2s; }
.about__cta-badge:hover { background: #CFC6FF; }
.about__text-block--muted .about__p { opacity: 0.5; }

/* Гифка с текстом ПОСЛЕ неё */
.about__gif-section { width: 100%; margin-bottom: 17px; }
.about__gif { width: 100%; aspect-ratio: 480 / 246; border-radius: 16px; display: block; object-fit: cover; }
.about__gif-text { font-size: 80px; font-weight: 800; line-height: 1; letter-spacing: -1.8px; text-transform: uppercase; color: #000; margin: 0; text-align: justify; }
.about__gif-red { color: #FF3030; }

/* ===== Legal Pages ===== */
.legal-page { margin: 40px auto; background: #fff;
    border-radius: 32px;
    padding: 40px 30px;}
.legal-page p {
    margin: 16px 0;
}
.legal-page ul {
    list-style: disc;
    padding-left: 20px;
}
.legal-page h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.48px;
    color: #000;
    margin: 36px 0 16px 0;
}

/* ===== Cookie Banner ===== */
.cookie-banner { position: fixed; right: 12px; bottom: 12px; right: 12px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #111827; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 800px;}
.cookie-banner a { color: #93C5FD; text-decoration: none; }
.cookie-banner a:hover { color: #2463EB; }
.cookie-banner__btn { background: #2563EB; color: #fff; padding: 8px 14px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; }
.cookie-banner__btn:hover { background: #1E4FD6; }
.cookie-banner.is-hidden { display: none; }

@media (max-width: 768px) {
    .cookie-banner {
       flex-direction: column;
       left: 12px;
       right: 12px;
       bottom: 12px;
       max-width: none;
       width: auto;
    }
    .cookie-banner__actions,
    .cookie-banner__btn {width: 100%;}
}

/* Блокировка прокрутки, когда открыто модальное окно авторизации */
.modal-open {
    overflow: hidden !important;
}

@media (max-width: 1160px) {
    .about__container { padding: 30px 24px 60px; }
    .about__title { font-size: 40px; }
    .about__cta-title { font-size: 40px; }
    .about__gif-text { font-size: 32px; }
}

/* ===== Loader Component ===== */
@font-face {
    font-family: 'Kizo';
    src: url('../assets/fonts/Kizo.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    max-width: 90%;
    width: fit-content;
    padding: 0 20px;
}

.loader-face {
    width: 98px;
    height: 98px;
    flex-shrink: 0;
}

.loader-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-text-container {
    position: relative;
    width: auto;
    min-height: 66px;
}

.loader-text,
.loader-text-fill {
    font-family: 'Kizo', sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    max-width: 600px;
}

.loader-text {
    color: #d7d7d7;
    position: relative;
    z-index: 1;
}

.loader-text-fill { color: #333333; position: absolute; top: 0; left: 0; z-index: 2; }

/* Линии для поочерёдного закрашивания */
.loader-text-fill .fill-line1,
.loader-text-fill .fill-line2 { display: inline-block; clip-path: inset(0 100% 0 0); will-change: clip-path; }

/* Автоматический запуск анимации при загрузке страницы */
#initial-preloader .fill-line1 {
    animation: fillLinePulse 1400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#initial-preloader .fill-line2 {
    animation: fillLinePulse 1400ms cubic-bezier(0.22, 1, 0.36, 1) forwards 1400ms;
}

.loader-link {
    color: #2563EB;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.35);
    transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}

.loader-link:hover { color: #1E4FD6; border-color: rgba(30, 79, 214, 0.6); }

@keyframes fillText {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Анимация отдельной строки */
@keyframes fillLine {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

/* Пульсирующее (мягкие рывки) заполнение слева направо */
@keyframes fillLinePulse {
    0%   { clip-path: inset(0 100% 0 0); }
    6%   { clip-path: inset(0 96% 0 0); }
    10%  { clip-path: inset(0 94% 0 0); }
    16%  { clip-path: inset(0 90% 0 0); }
    22%  { clip-path: inset(0 86% 0 0); }
    28%  { clip-path: inset(0 82% 0 0); }
    34%  { clip-path: inset(0 76% 0 0); }
    40%  { clip-path: inset(0 72% 0 0); }
    46%  { clip-path: inset(0 66% 0 0); }
    52%  { clip-path: inset(0 60% 0 0); }
    58%  { clip-path: inset(0 54% 0 0); }
    64%  { clip-path: inset(0 46% 0 0); }
    70%  { clip-path: inset(0 40% 0 0); }
    76%  { clip-path: inset(0 32% 0 0); }
    82%  { clip-path: inset(0 24% 0 0); }
    88%  { clip-path: inset(0 16% 0 0); }
    92%  { clip-path: inset(0 10% 0 0); }
    96%  { clip-path: inset(0 5% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@media (max-width: 768px) {
    .loader-content {
        max-width: 95%;
        gap: 24px;
        padding: 0 15px;
    }
    
    .loader-face {
        width: 70px;
        height: 70px;
    }
    
    .loader-text,
    .loader-text-fill {
        font-size: 24px;
        letter-spacing: -0.48px;
        max-width: 100%;
    }
    
    .loader-text-container {
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .loader-text,
    .loader-text-fill {
        letter-spacing: -0.36px;
    }
    
    .loader-face {
        width: 60px;
        height: 60px;
    }
}



/* ===== Peek Face Component ===== */
.peek-face {
    position: fixed;
    z-index: 9998;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
}

.peek-face__image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
}

/* Позиционирование для разных сторон - картинка показывается больше, но всё ещё выглядывает */
.peek-face--left {
    width: 120px;
    height: 160px;
    animation: peekInLeft 0.6s ease-out forwards;
}

.peek-face--left .peek-face__image {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.peek-face--right {
    width: 120px;
    height: 160px;
    animation: peekInRight 0.6s ease-out forwards;
}

.peek-face--right .peek-face__image {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.peek-face--top {
    width: 160px;
    height: 120px;
    animation: peekInTop 0.6s ease-out forwards;
}

.peek-face--top .peek-face__image {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

.peek-face--bottom {
    width: 160px;
    height: 120px;
    animation: peekInBottom 0.6s ease-out forwards;
}

.peek-face--bottom .peek-face__image {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
}

/* Анимации появления - картинка появляется наполовину */
@keyframes peekInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes peekInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes peekInTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes peekInBottom {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация исчезновения при наведении */
.peek-fade-enter-active {
    transition: all 0.2s ease-out;
}

.peek-fade-leave-active {
    transition: all 0.15s ease-in;
}

.peek-fade-enter-from,
.peek-fade-leave-to {
    opacity: 0;
}

.peek-fade-leave-active.peek-face--left {
    animation: peekOutLeft 0.15s ease-in forwards;
}

.peek-fade-leave-active.peek-face--right {
    animation: peekOutRight 0.15s ease-in forwards;
}

.peek-fade-leave-active.peek-face--top {
    animation: peekOutTop 0.15s ease-in forwards;
}

.peek-fade-leave-active.peek-face--bottom {
    animation: peekOutBottom 0.15s ease-in forwards;
}

@keyframes peekOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes peekOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes peekOutTop {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes peekOutBottom {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ===== Toast Notifications (Новый дизайн) ===== */
.toast-container {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 320px;
}

@media (max-width: 768px) {
    .toast-container {
        left: 0;
        right: 0;
        top: 0;
        padding: 8px;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        align-items: stretch;
    }
    .toast-notification {
        width: 100%;
        border-radius: 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
}

.toast-notification {
    background: #ffffff;
    box-sizing: border-box;
    display: flex;
    gap: 16px;
    align-items: center;
    overflow: hidden;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.toast-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    color: #000000;
    margin: 0;
    word-wrap: break-word;
}

.toast-text-success {
    color: #1e9218;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-icon-spinning {
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.toast-fade-in {
    animation: fadeInRight 0.3s ease-in-out;
}

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

/* ===== MOBILE VERSION ===== */

/* Кнопка открытия сайдбара */
.mobile-sidebar-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2563EB;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-sidebar-toggle:active {
    transform: scale(0.95);
}

/* Оверлей для сайдбара */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Бургер меню */
.mobile-burger-menu {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-burger-menu:hover {
    background: #f3f4f6;
}

.mobile-burger-menu svg {
    width: 24px;
    height: 24px;
    color: #374151;
}

/* Полноэкранное меню */
.mobile-fullscreen-menu {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-fullscreen-menu.active {
    display: flex;
    transform: translateX(0);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu-nav a {
    padding: 8px 0;
}

.mobile-menu-nav a {
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-nav a:active {
    color: #2463EB;
}

.mobile-menu-nav .external-link-icon {
    flex-shrink: 0;
}

.mobile-menu-bottom {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-close {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: #E5E7EB;
    color: #374151;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s;
}

.mobile-menu-close:active {
    background: #D1D5DB;
}

/* Стили для нижней части сайдбара */
.sidebar-bottom-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 8px;
    border-top: 1px solid #e5e7eb;
    display: none; /* Скрыто на десктопе */
}

.sidebar-projects-list {
    padding-bottom: 8px !important;
}

/* Кнопки закрытия модалок (скрыты на десктопе) */
.project-settings-close-mobile,
.auth-modal-close-mobile,
.subscription-modal-close-mobile {
    display: none;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 0;
    margin: 0 -16px -16px -16px;
}

/* Кнопки удаления расходов и работ */
.expense-item-wrapper {
    display: flex;
    gap: 8px;
}

.expense-delete-btn,
.work-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    color: #EF4444;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.expense-delete-btn:hover,
.work-delete-btn:hover {
    background: #FEE2E2;
}

.expense-delete-icon,
.work-delete-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.expense-delete-text,
.work-delete-text {
    display: none;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    /* Показываем кнопки внутри сайдбара */
    .sidebar-bottom-actions {
        display: block;
    }
    
    /* Скрываем десктопную панель с кнопками */
    .sidebar-bottom-panel {
        display: none !important;
    }
    
    /* Показываем мобильную кнопку сайдбара */
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    /* Показываем бургер меню */
    .mobile-burger-menu {
        display: flex;
    }
    
    /* Скрываем десктопную навигацию */
    .site-header__nav {
        display: none !important;
    }
    
    /* Скрываем кнопку "Войти" в шапке */
    .site-header__right .btn-auth {
        display: none;
    }
    
    /* Скрываем чип пользователя в шапке */
    .site-header__right .user-chip {
        display: none;
    }
    
    /* Сайдбар */
    .app__sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100dvh;
        height: 100svh;
        height: -webkit-fill-available;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
    }
    
    .app__sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
    }
    
    /* Внутренний контейнер сайдбара: убираем sticky внутри фиксированного блока */
    .app__sidebar .sidebar-container {
        position: relative;
        top: 0;
        height: 100%;
    }
    
    /* Основной контент занимает всю ширину */
    .app__main {
        margin-left: 0 !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Шапка */
    .site-header {
        margin: 10px auto 0;
        width: calc(100% - 1rem);
        border-radius: 20px;
    }
    
    .site-header__inner {
        padding: 12px 16px;
    }
    
    .site-header__logo {
        width: 120px;
    }
    
    /* Контент проекта */
    .app__content {
        padding: 16px 12px 120px 12px;
    }
    
    /* Список проектов — добавим место под нижние кнопки */
    .sidebar-projects-list {
        padding-bottom: 120px !important;
    }
    
    /* Нижняя панель в сайдбаре — учтем safe area и сделаем легкую тень */
    .sidebar-bottom-actions {
        right: 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
    }
    
    /* Заголовок проекта */
    .project-header__title h1,
    .project-header__title input {
        font-size: 24px !important;
        width: 100% !important;
    }
    
    /* Двухколоночный layout становится одноколоночным */
    .project-layout {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .project-layout__left,
    .project-layout__right {
        width: 100% !important;
    }
    
    /* Работы - вертикальная раскладка */
    .work-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        padding: 16px !important;
    }
    
    .work-name {
        width: 100% !important;
        font-size: 16px !important;
        padding: 24px 12px !important;
        background-color: #fff;
        border: 1px solid #d9d9d9;
    }
    
    .work-name input {
        font-size: 16px !important;
        border-bottom: none !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        color: #000 !important;
    }
    
    .work-name input::placeholder {
        color: #9CA3AF !important;
        opacity: 1 !important;
    }
    
    .work-name input:focus {
        border-bottom: none !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .work-name input:focus::placeholder {
        color: #9CA3AF !important;
    }
    
    .work-name h4 {
        font-size: 16px !important;
    }
    
    .work-type-toggle {
        width: 100%;
        justify-content: center;
        padding: 0 !important;
        height: auto !important;
        display: flex !important;
        gap: 8px !important;
    }
    
    .work-type-toggle button {
        height: auto !important;
        padding: 10px 16px !important;
        font-size: 16px !important;
        flex: 1 !important;
        text-align: center !important;
    }
    
    .work-row-grow {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Строки фикс и почасовой на мобилке */
    .work-fixed-row,
    .work-hourly-row {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
    }
    
    .work-days-group,
    .work-hours-group {
        width: auto !important;
        min-width: auto !important;
        flex: 0 0 auto !important;
        justify-content: flex-start !important;
    }
    
    .work-number-input {
        width: 60px !important;
        min-width: 60px !important;
        flex: 0 0 60px !important;
        font-size: 18px !important;
        padding: 20px 8px !important;
    }
    
    .work-amount-group {
        flex: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 100px) !important;
        justify-content: flex-start !important;
    }
    
    .work-amount-input {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 18px !important;
        padding: 20px 8px !important;
    }
    
    .work-price-badge {
        flex: 1 !important;
        width: auto !important;
        justify-content: center !important;
        padding: 20px 8px !important;
        font-size: 18px !important;
    }
    
    .work-price-badge span {
        font-size: 18px !important;
    }
    
    .work-days-group span,
    .work-hours-group span {
        font-size: 18px !important;
    }
    
    /* Расходы - поля друг под другом */
    .expense-item-wrapper {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .expense-name-input,
    .expense-amount-input {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    /* Кнопки удаления на мобилке */
    .expense-delete-btn,
    .work-delete-btn {
        width: 100% !important;
        padding: 8px !important;
        background: #FEE2E2 !important;
        color: #DC2626 !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    .expense-delete-btn:active,
    .work-delete-btn:active {
        background: #FCA5A5 !important;
    }
    
    .expense-delete-icon,
    .work-delete-icon {
        display: none !important;
    }
    
    .expense-delete-text,
    .work-delete-text {
        display: block !important;
    }
    
    /* Кнопка настроек - только иконка */
    .settings-fab {
        width: 56px !important;
        height: 56px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        bottom: 90px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .settings-fab span:first-child {
        display: none !important;
    }
    
    .settings-fab span:last-child {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .settings-fab svg {
        margin: 0 !important;
    }
    
    /* Попап настроек на весь экран */
    .fixed.bottom-28 {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 10002 !important;
        background: white !important;
        padding: 20px !important;
        padding-bottom: 100px !important;
        box-shadow: none !important;
    }
    
    /* Контейнер настроек с паддингом снизу для кнопки закрытия */
    .fixed.bottom-28 .project-settings-container {
        padding-bottom: 60px !important;
    }
    
    /* Скрываем боковые кнопки когда открыты настройки */
    #app.settings-open .mobile-sidebar-toggle,
    #app.settings-open .settings-fab {
        display: none !important;
    }
    
    /* Fallback для браузеров с поддержкой :has() */
    #app:has(.fixed.bottom-28) .mobile-sidebar-toggle,
    #app:has(.fixed.bottom-28) .settings-fab {
        display: none !important;
    }
    
    .fixed.bottom-28 > div {
        box-shadow: none !important;
    }
    
    /* Показываем кнопку закрытия настроек на мобилке */
    .project-settings-close-mobile {
        display: block !important;
        position: fixed !important;
        bottom: 16px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10003 !important;
    }
    
    .project-settings-close-mobile button {
        width: 100% !important;
        border-radius: 12px !important;
        padding: 16px !important;
        margin: 0 !important;
        border: none !important;
        box-sizing: border-box !important;
        background: #E5E7EB !important;
    }
    
    /* Окно авторизации на весь экран */
    .auth-modal-wrapper {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        z-index: 10004 !important;
        background: white !important;
        pointer-events: auto !important;
    }
    
    .auth-modal-content {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 20px !important;
        padding-bottom: 100px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        pointer-events: auto !important;
    }
    
    /* Скрываем крестик в шапке модалки авторизации */
    .auth-modal-close-icon {
        display: none !important;
    }
    
    /* Показываем кнопку закрытия авторизации на мобилке */
    .auth-modal-close-mobile {
        display: block !important;
        position: fixed !important;
        bottom: 16px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10005 !important;
    }
    
    .auth-modal-close-mobile button {
        width: 100% !important;
        border-radius: 12px !important;
        padding: 16px !important;
        margin: 0 !important;
        border: none !important;
        box-sizing: border-box !important;
        background: #E5E7EB !important;
    }
    
    /* Модальные окна подписки на весь экран */
    .subscription-modal {
        background: rgba(0, 0, 0, 0.5) !important;
    }
    
    .subscription-modal__content {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 0 !important;
        border: none !important;
        animation: none !important;
    }
    
    .subscription-modal__inner {
        padding: 20px !important;
        padding-bottom: 40px !important;
        min-height: 100vh !important;
    }
    
    /* Показываем кнопку закрытия подписки на мобилке */
    .subscription-modal-close-mobile {
        display: block !important;
        position: fixed !important;
        bottom: 16px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10005 !important;
    }
    
    .subscription-modal-close-mobile button {
        width: 100% !important;
        border-radius: 12px !important;
        padding: 16px !important;
        margin: 0 !important;
        border: none !important;
        box-sizing: border-box !important;
        background: #E5E7EB !important;
    }
    
    /* Приветственный экран */
    .welcome {
        padding: 24px 16px !important;
    }
    
    /* Заметки */
    .notes-section__textarea {
        min-height: 200px !important;
    }
    
    /* Сообщение для клиента */
    .message-section {
        padding: 16px !important;
    }
    
    .message-actions {
        flex-direction: column !important;
    }
    
    .message-actions button {
        width: 100% !important;
    }
    
    /* Скрываем выглядывающее лицо на мобилке */
    .peek-face {
        display: none !important;
    }
}

/* Видео-блок в welcome (empty state) */

.welcome {
    max-width: 800px;
}

.welcome__video {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .welcome__video {
        margin-bottom: 12px;
        border-radius: 10px;
    }
}