/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

.clear {
    clear: both;
}

/* Типография */
.h1, .h2, .h3, .h4 {
    font-family: 'Russo One', sans-serif;
    font-weight: normal;
}

.h2 {
    font-size: 28px;
    color: #1eb2c4;
}

.h3 {
    font-size: 20px;
    color: #555;
}

.h4 {
    font-size: 16px;
    color: #1eb2c4;
    text-transform: uppercase;
}

/* Верхняя панель */
.tophead {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1000;
}

.titlesite {
    float: left;
    display: flex;
    align-items: center;
}

.titlesite img {
    height: 50px;
    margin-right: 15px;
}

.titlesite .h2 {
    font-size: 24px;
    color: #1eb2c4;
    line-height: 1;
}

.buttonreg {
    float: right;
    background: #1eb2c4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.buttonreg:hover {
    background: #148a99;
}

/* Выпадающее меню */
.help {
    float: right;
    margin-right: 20px;
    position: relative;
}

.helptitle {
    background: #1eb2c4;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.tops_menu {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    list-style: none;
    z-index: 1000;
}

.help:hover .tops_menu {
    display: block;
}

.tops_menu li {
    border-bottom: 1px solid #eee;
}

.tops_menu li:last-child {
    border-bottom: none;
}

.tops_menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.tops_menu a:hover {
    background: #f5f5f5;
    color: #1eb2c4;
}

/* Верхнее меню */
.top_menu_land {
    background: #333;
    padding: 10px 0;
}

.top_menu_land ul {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.top_menu_land li {
    display: inline-block;
    margin: 0 15px;
    position: relative;
}

.top_menu_land a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    display: inline-block;
}

.top_menu_land a:hover {
    color: #1eb2c4;
}

.top_menu_land span {
    background: #ff6b35;
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    position: absolute;
    top: -5px;
}

/* Шапка с поиском */
.gridhead {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.gridhead h1 {
    font-family: 'Russo One', sans-serif;
    font-size: 36px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.gridhead .h3 {
    color: white;
    font-size: 18px;
    opacity: 0.9;
}

/* Поиск */
.one_line.searcher {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

#forms2, #forms {
    position: relative;
}

.name_form, .city_form {
    position: relative;
}

.name_form input, .city_form input {
    width: 300px;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: white;
}

.name_form input:focus, .city_form input:focus {
    outline: none;
    border-color: #1eb2c4;
}

.closer_vida, .closer_vidac {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 12px;
}

.name_form span, .city_form span {
    display: block;
    text-align: left;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.search_geo {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.search_geo:hover {
    background: rgba(255,255,255,0.2);
    border-color: #1eb2c4;
}

.search_geo img {
    height: 20px;
}

/* Список заведений */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.namecity {
    display: block;
    font-family: 'Russo One', sans-serif;
    font-size: 24px;
    color: #333;
    margin: 40px 0 20px;
    text-decoration: none;
    border-bottom: 2px solid #1eb2c4;
    padding-bottom: 10px;
}

.namecity:hover {
    color: #1eb2c4;
}

.cityzav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

/* Карточки заведений */
.zav {
    width: calc(33.333% - 14px);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.main_zav_photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.zav:hover .main_zav_photo {
    transform: scale(1.05);
}

.zav figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.zav:hover figcaption {
    transform: translateY(0);
}

.namezav {
    font-size: 18px;
    color: white;
    margin-bottom: 10px;
    display: block;
}

.metro {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.metro img {
    height: 16px;
}

.zav a {
    display: inline-block;
    background: #1eb2c4;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
}

.zav a:hover {
    background: #148a99;
}

/* Новости */
.land_news {
    margin: 60px 0;
}

.cover_news_land {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.bg_news_land {
    padding: 30px;
}

.title_news_land {
    font-family: 'Russo One', sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    border-bottom: 2px solid #1eb2c4;
    padding-bottom: 10px;
}

.title_news_land a {
    color: #333;
    text-decoration: none;
}

.title_news_land a:hover {
    color: #1eb2c4;
}

.content_L_news {
    display: flex;
    gap: 30px;
    align-items: center;
}

.img_news_land {
    flex: 0 0 280px;
}

.img_news_land img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.right_news_land {
    flex: 1;
}

.desc_news_land {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.niz_news_land {
    display: flex;
    align-items: center;
    gap: 20px;
}

.niz_news_land .button {
    background: #1eb2c4;
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.niz_news_land .button:hover {
    background: #148a99;
}

.niz_news_land a {
    color: #1eb2c4;
    text-decoration: none;
}

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

/* Блок оценки */
.changerate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin: 60px 0;
}

.changecontent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.content {
    flex: 1;
}

.content .titlecontent {
    color: white;
    margin-bottom: 15px;
}

.content .cont {
    font-size: 18px;
    line-height: 1.8;
    margin: 25px 0;
    opacity: 0.9;
}

.thumlr {
    width: 300px;
    height: auto;
}

/* Футер */
#footer {
    background: #333;
    color: white;
    padding: 50px 0 30px;
}

.gridfoot {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.hooka {
    flex: 1;
    min-width: 250px;
}

.hooka .h3 {
    color: white;
    margin-bottom: 20px;
}

.hooka p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 25px;
}

.buttonnewzav {
    background: #1eb2c4;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.buttonnewzav:hover {
    background: #148a99;
}

.footermenu {
    min-width: 150px;
}

.footermenu .h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footermenu ul {
    list-style: none;
}

.footermenu li {
    margin-bottom: 10px;
}

.footermenu a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.footermenu a:hover {
    color: #1eb2c4;
}

.hr {
    height: 1px;
    background: #555;
    margin: 40px auto;
    max-width: 1200px;
}

.socseti {
    text-align: center;
    padding-top: 30px;
}

.socseti .h3 {
    color: white;
    margin-bottom: 20px;
}

.socseti ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socseti li {
    display: inline-block;
}

.socseti img {
    height: 40px;
    transition: transform 0.3s;
}

.socseti img:hover {
    transform: translateY(-3px);
}

/* Модальные окна */
.modal_wrap {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    z-index: 2000;
    min-width: 400px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.popap2 {
    padding: 30px;
}

.wraptitle {
    font-family: 'Russo One', sans-serif;
    font-size: 22px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.lithr {
    height: 2px;
    background: linear-gradient(to right, transparent, #1eb2c4, transparent);
    margin: 20px 0;
}

.changesortresult {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.sortrate, .sortplace {
    background: #1eb2c4;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.sortrate:hover, .sortplace:hover {
    background: #148a99;
}

.popapform {
    margin-top: 25px;
}

.popapform input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.popapform input[type="submit"] {
    background: #1eb2c4;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.popapform input[type="submit"]:hover {
    background: #148a99;
}

.pass {
    position: relative;
}

.show_pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    cursor: pointer;
}

.poslza {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.poslza span {
    color: #1eb2c4;
    cursor: pointer;
    margin-left: 5px;
}

.poslza span:hover {
    text-decoration: underline;
}

/* Затемнение */
#enter_overlay, #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .zav {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .tophead {
        text-align: center;
    }
    
    .titlesite {
        float: none;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .buttonreg {
        float: none;
        margin: 10px 0;
    }
    
    .help {
        float: none;
        margin: 15px 0;
        display: inline-block;
    }
    
    .tops_menu {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .gridhead h1 {
        font-size: 28px;
    }
    
    .content_L_news {
        flex-direction: column;
    }
    
    .img_news_land {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .changecontent {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .thumlr {
        order: -1;
        width: 200px;
    }
    
    .modal_wrap {
        min-width: 90%;
    }
}

@media (max-width: 480px) {
    .zav {
        width: 100%;
    }
    
    .one_line.searcher {
        flex-direction: column;
        align-items: stretch;
    }
    
    .name_form input, .city_form input {
        width: 100%;
    }
    
    .gridfoot {
        flex-direction: column;
        gap: 30px;
    }
    
    .footermenu {
        width: 100%;
    }
}