/* Стили для мобильных устройств */

/* Header - закреплён вверху */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
}

header .container {
    max-width: none;
    padding: 0;
}

.header-content {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

/* Логотип - компактный */
.logo {
    padding: 0;
    justify-content: center;
    width: 100%;
}

.logo-link {
    gap: 0.4rem;
    width: 100%;
    justify-content: center;
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.logo h1 {
    font-size: 1rem;
}

/* Навигация - горизонтально в одну строку */
nav {
    position: static;
    background: transparent;
    padding: 0;
    margin-top: 0;
    width: 100%;
}

nav ul {
    flex-direction: row;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: nowrap;
    text-align: center;
}

nav li {
    flex: 0 1 auto;
}

nav a {
    font-size: 1.1rem;
    padding: 0.25rem 0.4rem;
    display: inline-block;
    white-space: nowrap;
}

/* Отступ для контента под фиксированный хедер */
main {
    padding-top: 9rem;
}

.hero {
    padding: 1.2rem 0;
}

.hero-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
}

.hero-text h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.hero-text p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.hero-image {
    max-height: 180px;
}

.hero-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.8rem 1.5rem;
}

.hero-simple h2 {
    font-size: 1.8rem;
}

.hero-simple p {
    font-size: 1rem;
}

.services-grid {
    grid-template-columns: 1fr;
}

.about-main-image {
    max-height: 250px;
}

.contact-info {
    padding: 1.5rem;
    margin-top: 0.5rem;
}

.contact-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-info p {
    font-size: 1rem;
}

.advantage-item {
    padding: 0.8rem; 
}

.hero-welcome-section {
    flex-direction: column;
    gap: 1rem;
}

.hero-welcome-text {
    order: -1;
}

.hero-welcome-text h2 {
    text-align: center;
}

.hero-welcome-text p {
    text-align: center;
}

.promo-card-mini h2 {
    font-size: 1.6rem;
}

.modal-content {
    padding: 2rem 1.5rem;
    width: 95%;
}

.modal-content h2 {
    font-size: 1.6rem;
}

.hero-welcome-image {
    width: 100%;
    text-align: center;
    padding-top: 1rem;
}

.hero-welcome-image img {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
}
