* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

.logo-link {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.logo-link i {
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary);
}

nav ul li a.active {
    color: #f6b83d;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.4)),
        url('https://cdn-ru.bitrix24.ru/b8461709/landing/78b/78b5d7ad8a2ba0f2ef33d21810dc66d6/16P_1_2x.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Filters Section */
.filters {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin: -40px auto 40px;
    position: relative;
    z-index: 10;
    max-width: 1100px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Поле поиска по ID */
#external-id-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#external-id-search:focus {
    border-color: #3498db;
    outline: none;
}


/* Properties Section */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.properties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.property-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    height: 280px;
    width: 280px;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.property-info {
    padding: 20px;
}

.property-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 3px;
}

.property-floors {
    color: #666;
    margin-bottom: 0px;
}

.property-address {
    color: #666;
    margin-bottom: 15px;
}

.property-ID {
    color: #666;
    text-align: left;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.property-features span {
    display: flex;
    align-items: center;
}

.property-features i {
    margin-right: 5px;
    color: var(--secondary);
}

/* ===== АДАПТИВНЫЕ КАРТОЧКИ ===== */
@media (max-width: 768px) {
    .properties {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .property-card .property-image {
        height: 180px;
        /* уменьшаем высоту фото */
    }

    .property-info {
        padding: 12px;
    }

    .property-price {
        font-size: 18px;
    }

    .property-title {
        font-size: 16px;
    }

    .property-address {
        font-size: 14px;
    }

    .property-floors {
        font-size: 13px;
    }

    .property-ID {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .properties {
        grid-template-columns: 1fr;
        /* одна колонка на очень маленьких экранах */
    }

    .property-card .property-image {
        height: 220px;
    }
}


/* Cart Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 100px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 700;
}

.remove-item {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 18px;
}

.cart-total {
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #27ae60;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 14px;
}

/* Responsive (общие) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .filter-row {
        flex-direction: column;
    }
}

/* ===== БУРГЕР-МЕНЮ ===== */
.burger-menu {
    display: none;
    /* скрыта на десктопах */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация бургера в крестик (активное состояние) */
.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Мобильное меню (скрыто по умолчанию) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
        /* показываем бургер на мобильных */
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        /* отступ от хедера */
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        font-size: 18px;
        padding: 8px 0;
    }
}



.load-more-btn {
    margin: 20px auto 10px;
    padding: 14px 40px;
    background: #f6b83d;
    color: #0b1a2e;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.25s;
    font-size: 1rem;
    grid-column: 1 / -1;
    justify-self: center;
}

.load-more-btn:hover {
    background: #ffcd6a;
    transform: translateY(-2px);
}

.property-image-wrapper {
    position: relative;
}

.property-image {
    height: 210px;
    background-size: cover;
    background-position: center;
    background-color: #dce3ed;
    transition: background-image 0.3s ease;
}

/* ===== КАРУСЕЛЬ (для каталога) ===== */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #fefefe;
}

.carousel-slide {
    width: 280px;
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: background-image 0.1s ease;
    margin: 0 auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid #aaa;
    font-size: 17px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.carousel-btn:hover {
    background: #fff;
    border-color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(222 131 131 / 50%);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #837c7c;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ОБЪЕКТА (из property.php) ===== */
/* Эти стили заменяют старые и применяются только внутри .property-detail */

.property-detail {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 20px;
}

.breadcrumbs {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

.breadcrumbs a {
    color: #3a7bd5;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===== СЕТКА ===== */
.property-main-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 30px;
    margin-top: 20px;
}

.property-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.property-right {
    position: sticky;
    top: 30px;
    align-self: flex-start;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #f0edea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
    display: block;
}

.gallery-main .btn-show-all {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
    z-index: 2;
}

.gallery-main .btn-show-all:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    justify-content: center;
    max-height: 140px;
    overflow-y: hidden;
}

.gallery-thumbs .thumb {
    flex: 0 0 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s, transform 0.2s;
    background-color: #e9e7e4;
}

.gallery-thumbs .thumb.active {
    border-color: #3a7bd5;
}

.gallery-thumbs .thumb:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* ===== ЗАГОЛОВОК И ЦЕНА ===== */
.property-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.property-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.property-address {
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.property-detail .property-address {
    font-size: 20px;
    justify-content: left;
}

.property-address i {
    color: #3a7bd5;
}

.property-price {
    font-size: 28px;
    font-weight: 700;
    color: #d3222a;
    margin: 0 0 5px 0;
}

.property-price-label {
    font-size: 20px;
    color: #888;
    font-weight: 400;
}

/* ===== ХАРАКТЕРИСТИКИ ===== */
.property-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.spec-item {
    background: #f8f6f3;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.spec-item strong {
    display: block;
    font-size: 20px;
    color: #1a1a2e;
    font-weight: 600;
}

.spec-item .label {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

/* ===== ОПИСАНИЕ ===== */
.property-description {
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.property-description h3 {
    margin-top: 0;
    font-size: 18px;
    color: #1a1a2e;
    font-weight: 600;
}

.property-description p {
    line-height: 1.7;
    color: #444;
    font-size: 15px;
}

/* ===== ДОП. ИНФОРМАЦИЯ ===== */
.property-meta {
    font-size: 13px;
    color: #999;
    padding: 0 4px;
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.property-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9e7e4;
}

.property-sidebar h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
}

.property-sidebar .btn-order {
    width: 100%;
    padding: 14px;
    background: #3a7bd5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin: 10px 0 15px;
}

.property-sidebar .btn-order:hover {
    background: #2e6b9e;
}

.property-sidebar .contact-info p {
    margin: 6px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-sidebar .contact-info i {
    width: 20px;
    color: #3a7bd5;
}

/* ===== ПОХОЖИЕ ОБЪЕКТЫ ===== */
.similar-properties {
    margin-top: 50px;
}

.similar-properties h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.similar-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e9e7e4;
}

.similar-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.similar-item .img {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #e9e7e4;
}

.similar-item .info {
    padding: 12px 14px;
}

.similar-item .price {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 16px;
}

.similar-item .title {
    font-size: 14px;
    font-weight: 500;
    margin: 4px 0;
}

.similar-item .address {
    font-size: 13px;
    color: #888;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .property-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .property-right {
        position: static;
    }

    .gallery-main {
        height: 350px;
    }

    .property-title {
        font-size: 24px;
    }

    .property-price {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .gallery-main {
        height: 250px;
    }

    .gallery-thumbs .thumb {
        flex: 0 0 60px;
        height: 45px;
    }

    .property-header {
        flex-direction: column;
    }

    .property-price {
        margin-top: 8px;
    }

    .property-specs {
        grid-template-columns: repeat(3, 1fr);
        padding: 16px;
    }
}

@media (max-width: 400px) {
    .property-specs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ПРОСМОТРА ФОТО ===== */
.modal-gallery {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-gallery.show {
    display: flex !important;
}

.modal-gallery .modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-gallery .modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.modal-gallery .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
    background: none;
    border: none;
}

.modal-gallery .modal-close:hover {
    transform: scale(1.2);
}

.modal-gallery .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
    z-index: 5;
    padding: 0;
    user-select: none;
}

.modal-gallery .modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.modal-gallery .modal-nav.prev {
    left: 20px;
}

.modal-gallery .modal-nav.next {
    right: 20px;
}

@media (max-width: 600px) {
    .modal-gallery .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .modal-gallery .modal-nav.prev {
        left: 10px;
    }

    .modal-gallery .modal-nav.next {
        right: 10px;
    }
}

/* ===== Фильтры для мобилок ===== */

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        min-width: 100%;
    }

    .filters {
        padding: 15px;
        margin: -20px auto 30px;
    }

    .filter-group label {
        font-size: 14px;
    }

    .filter-group select {
        font-size: 14px;
        padding: 8px;
    }
}

/* ===== Логотип для мобилок ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        /* оставляем строку на мобильных */
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 14px;
    }

    .logo i {
        font-size: 20px;
    }
}