/*!
Theme Name: LakEnd Theme
Theme URI: http://underscores.me/
Author: 8jorn
Author URI: http://lakend.ru
Description: main minimalist theme
Version: 1.3.1
Tested up to: 6.8
Requires PHP: 8.2
Requires mySQL: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: lakend
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

LakEnd Theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

@media (orientation: portrait) 
       and (min-aspect-ratio: 9/22)
       and (max-aspect-ratio: 9/16) {

    .header-right {
        flex-direction: inherit;
        gap: 10px;
        width: 100%;
        padding: 10px;
    }

    main {
        flex: 0.75;
        width: 95%;
        max-width: 1080px;
        min-height: 70vh !important;
        max-height: 78vh !important;
        height: 75% !important;
        margin: 10px auto;
        padding: 0 10px;
        background-color: rgba(20, 21, 23, 0.66);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: #c1c1c1 transparent;
    }

    .main-navigation {
        display: block;
        width: 25%;
        font-size: 1em;
    }

    #site-footer {
	    font-size: 2.7vw;
	}

	.site-footer .social-icon a {
        font-family: 'SocialLogosColor' !important;
        font-size: 32px;
        font-style: normal;
        margin: auto;
        margin-right: 0;
        float: right;
	}

    footer {
        flex: 0 0 auto;
        width: 95%;
        max-width: 1080px;
        margin: 0 auto;
        padding: 0;
        height: 20vh;
    }

}

@media screen and (max-width: 768px) {
	.menu-toggle {
		display: flex;
		align-items: center;
		order: -1;
		align-self: flex-start;
	}
	
	.main-navigation ul { display: none; }
	.main-navigation.toggled ul {
        display: block;
        position: absolute;
        z-index: 99;
        margin: 10px 0;
        padding: 10px 0;
        background-color: rgba(20, 21, 23, 0.9);
        backdrop-filter: blur(25px);
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(221, 221, 221, 0.2);
        border-radius: 10px;
    }
	
	.header-right {
        top: -55%;
        position: relative;
    }
	
	.header-search { 
        width: 100%;
        left: 3%;
        position: inherit;
    }

	.header-search .search-field { width: 100%; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-field {
        padding: 15px;
    }
    
    .search-submit {
        border-radius: 0 0 13px 13px;
    }
    
    .search-title {
        font-size: 2em;
    }
    
    .search-result-item {
        padding: 20px;
    }
    
    .result-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .result-date::after {
        content: none;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    #primary .contacts-page {
        padding: 20px 15px;
    }
    
    #primary .contacts-page h1 {
        font-size: 2em;
    }
    
    #primary .social-icon {
        gap: 15px;
    }
    
    #primary .social-icon a {
        width: 96px;
        height: 96px;
    }
}

/* ===== MEDIA QUERIES ===== */
@media screen and (min-width: 37.5em) {
	.menu-toggle { display: none; }
	.main-navigation ul { display: flex; }
}