/*@import url('https://fonts.googleapis.com/css2?family=Kelly+Slab&family=Poiret+One&display=swap');*/

*{
    font-family: "Kelly Slab", sans-serif;
    font-weight: 400;
    font-style: normal;

    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a, button, input, textarea {
    -webkit-tap-highlight-color: transparent;
}

@font-face{
    font-family: "Manasco";
    src: url("/fonts/Manasco/Manasco.otf") format("opentype");
}

@font-face {
    font-family: 'Poiret One';
    src: url('/fonts/Poiret_One/PoiretOne-Regular.ttf') format('truetype');,
    font-display: swap;
}

@font-face {
    font-family: 'Kelly Slab';
    src: url('/fonts/Kelly_Slab/KellySlab-Regular.ttf') format('truetype');,
    font-display: swap;
}

.search{
    display: flex;
}

/* Стили для логотипа */
.main-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 10px;
    overflow: visible;
    text-decoration: none;
}

.logo-text {
    font-family: "Poiret One", cursive;
    font-size: 2.2rem;
    font-weight: 400;
    color: #2c3e50;
    letter-spacing: 3px;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}

.main-header-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    max-width: none;
    display: block;
}

.main-header-logo:hover img {
    transform: scale(1.05);
}

.main-header-logo:hover .logo-text {
    color: #4a90e2;
    transition: color 0.3s ease;
}

.hidden{
    display: none;
}

/* Уведомления */
.messages-errors {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    pointer-events: auto;
}

.messages-errors p {
    position: relative;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 16px 20px;
    padding-right: 40px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    line-height: 1.5;
    animation: slideInFromTop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.messages-errors p:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.35);
}

.messages-errors p:last-child {
    margin-bottom: 0;
}

.close-notification {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 300;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.close-notification:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.notification-success {
    background: rgba(34, 197, 94, 0.95);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.notification-success:hover {
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.35);
}

.notification-info {
    background: rgba(59, 130, 246, 0.95);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.notification-info:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.35);
}

.notification-warning {
    background: rgba(245, 158, 11, 0.95);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.notification-warning:hover {
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.35);
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ошибки мобильные */
@media (max-width: 768px) {
    .messages-errors {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .messages-errors p {
        font-size: 13px;
        padding: 14px 18px;
        padding-right: 36px;
    }

    .close-notification {
        right: 14px;
        font-size: 16px;
    }

}


/* Автоподстановка городов */


.autocomplete{
    position: absolute;
    z-index: 100;
    width: 100%;
}

.autocomplete > div {
    border: 1px solid #9e9e9e;
		cursor: pointer;
}

.cityContainer{
    position: relative;
}

.autocomplete > div{
    border-radius: 16px;
    padding: 0.7em;
    margin-top: 0.3em;
    border: none;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
    background-color: var(--bg-blur);
    backdrop-filter: blur(5px);

    font-size: 1.1em;
    text-align: center;
}

.autocomplete > div:hover {
    filter: brightness(0.9);
}

/* шапка */
.site-header {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 300;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.header-container .main-header-logo {
    padding: 0;
}

.header-container .main-header-logo img {
    height: 40px;
}

.header-container .logo-text {
    font-size: 1.6rem;
    letter-spacing: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 10px;
    color: rgb(28 101 183 / 54%);
		border: 1px solid #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
		border: 2px solid rgba(141,177,217,0.4);
}

.nav-link:hover {
    background: rgba(141,177,217,0.1);
    color: #8DB1D9;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    margin: 0 4px;
}

.logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* footer */
.site-footer {
    background: linear-gradient(160deg, #1e2a3a 0%, #162236 50%, #0f1928 100%);
    color: rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.footer-top-line {
    height: 3px;
    /* background: linear-gradient(90deg, #B59C98 0%, #8DB1D9 50%, #91657E 100%); */
    opacity: 0.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 40px;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    align-items: start;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-wrap img {
    height: 44px;
    width: auto;
    filter: brightness(1.2);
}

.footer-logo-text {
    font-family: "Poiret One", cursive;
    font-size: 1.8rem;
    color: white;
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.social-link:hover {
    background: rgba(141,177,217,0.2);
    border-color: rgba(141,177,217,0.3);
    color: white;
    transform: translateY(-2px);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #B59C98, #8DB1D9);
    border-radius: 1px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    padding: 7px 0;
    transition: all 0.2s ease;
    position: relative;
}

.footer-col a:hover {
    color: white;
    padding-left: 4px;
}

.footer-user {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    padding: 7px 0;
}

.footer-logout {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.footer-logout:hover {
    background: rgba(231,76,60,0.2);
    border-color: rgba(231,76,60,0.3);
    color: rgba(255,150,150,0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-legal a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 12px;
}

.footer-legal a:hover {
    color: rgba(255,255,255,0.7);
}

.footer-legal .dot {
    color: rgba(255,255,255,0.2);
}

/* Главный блок */
.hero-wrapper {
    position: relative;
}

/* Мобильный header */
@media (max-width: 768px) {
    .header-container {
        height: 56px;
        padding: 0 15px;
    }

    .header-container .main-header-logo img {
        height: 32px;
    }

    .header-container .logo-text {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 15px 32px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .site-main {
        flex: 1;
    }

    .only-large{
        display: none;
    }

    .only-large *{
        display: none;
    }
}

@media (max-width:500px) {
	.panel{
		display: none;
	}
}
