html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\e151";
}

a.desc:after {
    content: "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view td {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================
   MOBILE IMPROVEMENTS - Added 2025-10-10
   Дизайнерские улучшения для мобильных
   =================================== */

/* ЗАДАЧА 1.1: Увеличить размеры кнопок на мобильных (≥44px) */
@media (max-width: 768px) {
    /* Основные CTA кнопки */
    .button,
    .button-pink-neon,
    .offer-btn-m,
    .button-secondary,
    .rate-btn-m {
        min-height: 48px !important;
        min-width: 150px !important;
        padding: 12px 24px !important;
        font-size: 16px !important;
    }
    
    /* Все кнопки с классом button */
    button[type="submit"],
    input[type="submit"],
    .btn,
    .form button {
        min-height: 48px !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    
    /* ЗАДАЧА 1.3: Увеличить touch targets в бургер-меню */
    .burger {
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 12px !important;
        cursor: pointer;
    }
    
    .burger-item {
        height: 3px !important;
        margin: 6px 0 !important;
    }
    
    /* Пункты меню в боковом меню */
    .right-menu__list-item a,
    .right-menu__category .category__item a {
        min-height: 48px !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        line-height: 20px !important;
        display: block;
    }
    
    .right-menu__list-item + .right-menu__list-item,
    .category__item + .category__item {
        margin-top: 8px;
    }
    
    /* ЗАДАЧА 2.3: Улучшить читаемость текстов */
    body {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }
    
    h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }
    
    h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        margin-bottom: 14px !important;
    }
    
    p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
    }
    
    .cards-view_content-wrap-text {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }
    
    .cards-view_content-item + .cards-view_content-item {
        margin-top: 24px !important;
    }
}

/* ЗАДАЧА 3: Микроанимации для улучшения UX */
a {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.button:active {
    transform: translateY(0);
}

.card-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

a:not(.button):hover {
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Пульсация для важных кнопок */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.button-pink-neon:hover {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Улучшенный футер на мобильных */
@media (max-width: 768px) {
    .footer__accordion-item {
        border-bottom: 1px solid rgba(141, 150, 178, 0.2);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .acc__title {
        padding-right: 30px;
        position: relative;
        cursor: pointer;
        user-select: none;
    }
    
    .acc__title:after {
        transition: transform 0.3s ease;
    }
    
    .footer__accordion-item.active .acc__title:after {
        transform: rotate(180deg);
    }
    
    .accordion__list {
        transition: height 0.3s ease;
    }
}

/* ===================================
   SEO H1 HERO TITLE - Added 2025-10-10
   Видимый H1 заголовок для главной
   =================================== */

.main-hero-title {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 0 30px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}

.hero-h1 {
    font-size: 48px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin: 0;
    padding: 0 20px;
    line-height: 58px;
    letter-spacing: -0.02em;
}

.hero-h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff4cc7 0%, #e91e63 100%);
    margin: 20px auto 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .main-hero-title {
        padding: 30px 0 20px;
    }
    
    .hero-h1 {
        font-size: 26px;
        padding: 0 15px;
    }
    
    .hero-h1::after {
        width: 60px;
        height: 3px;
        margin-top: 15px;
    }
}
