html { all: unset; scroll-behavior: smooth;}
button { all: unset; cursor: pointer; }
a { all: unset; cursor: pointer; }

body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 140%;
    color: #434244;
    font-weight: 400;
    font-style: normal;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "EB Garamond", serif;
}

/* Шапка */
.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #E6E8EB;
}

.menu-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1280px;
    margin: 0 auto;
    height: 90px;
}

.menu-items-right {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 0 0 auto;
}

.menu-logo img {
    height: 42px;
    position: relative;
}

/* Навигация */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a,
.main-nav span {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #434244;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a:hover,
.main-nav span:hover {
    color: #000;
}

/* Выпадающее меню (Десктоп) */
.has-dropdown {
    position: relative;
    padding-bottom: 30px;
    margin-bottom: -30px;
}

.has-dropdown > a::after,
.has-dropdown > span::after {
    content: "";
    width: 10px;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.97716 3.30813L5 7.28529L1.02284 3.30813" stroke="%23434244" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    transform: translateX(-20%);
    padding: 0;
    background: #ffffff;
    border: 1px solid #E6E8EB;
    z-index: 100;
    width: 600px;
    flex-direction: column;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
}

.dropdown::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
}
.has-dropdown:hover .dropdown,
.has-dropdown:has(.dropdown:hover) .dropdown {
    display: flex;
}

/* Стили блоков Quadra */
.quadra {
    width: 100%;
    padding: 10px 32px;
    border: 1px solid transparent;
    border-bottom: 1px solid #E6E8EB;
    box-sizing: border-box;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quadra:hover {
    background: #F7F7F7;
    border-color: #D8D8D8;
}

.quadra:first-child { padding-top: 24px; }
.quadra:last-child { border-bottom: 1px solid transparent; padding-bottom: 24px; }

.quadra h4 {
    font-family: "EB Garamond", serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: normal;
    color: #284257;
    margin: 0;
}

.dropdown .quadra p {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    line-height: 140%;
    color: #434244;
    margin: 10px 0;
}

.dropdown .quadra ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.dropdown .quadra li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0 16px;
    height: 32px;
    white-space: nowrap;
    background: #1E3A4C;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.dropdown .quadra li a:hover {
    background: #2D4F66 !important;
}

/* Доп. стили навигации */
.main-nav .submenua {
    display: block;
    min-width: 300px;
    padding: 16px 24px;
    color: #6B7280;
}

.main-nav .submenua:hover { background: #F7F7F7; }

.main-nav .submenua strong {
    font-size: 18px;
    font-family: "EB Garamond", serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #284257;
}

/* Переключатель языка */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 70px;
}

.lang-toggle {
    border: 1px solid #284257;
    color: #284257;
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle::after {
    content: "";
    width: 10px;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.97716 3.30813L5 7.28529L1.02284 3.30813" stroke="%23434244" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
    display: inline-block;
    transition: transform 0.3s ease;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    list-style: none;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 100%;
}

.lang-menu::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
}

.lang-dropdown:hover .lang-menu { display: block; }
/* lang-switcher-system-font: the menu lists languages under their own
   names, so on a Latin page "Русский" alone would drag in Roboto's
   Cyrillic subset. The reader's system font already has those letters. */
.lang-toggle, .lang-menu { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }


.lang-menu li a {
    display: block;
    padding: 8px 12px;
    transition: background 0.2s ease;
}

.lang-menu li a:hover { background: #ccc; }

/* Кнопки */
.menu-button {
    background-color: #194C8E;
    color: #F7F7F7;
    height: 42px;
    padding: 0 40px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.menu-button::after {
	  display: block;
	float:right;
	margin:5px;
  content: "";
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Ccircle cx='4.28599' cy='1.42857' r='1.42857' fill='%23F7F7F7'/%3E%3Ccircle cx='4.28599' cy='8.57143' r='1.42857' fill='%23F7F7F7'/%3E%3Ccircle cx='7.8571' cy='4.99954' r='1.42857' fill='%23F7F7F7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.menu-button:hover { background-color: #284257; }

/* Футер */
.footer {
    background-color: #284257;
    color: #ffffff;
    padding: 30px 0;
    width: 100%;
    clear: both;
}

.footer-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-nav a { color: #ffffff; text-decoration: none; transition: opacity 0.2s; }
.footer-nav a:hover { opacity: 0.8; }
.footer-copyright {text-align:center;width:100%;color:#D8D8D8;}

.mobile-menu-toggle, .mobile-menu-close, .mobile-stick {
    display: none;
}

@media (max-width: 1279px) {
    .menu-inner {
        width: 90%;
        padding: 0 5%;
        height: 70px;
    }
.menu-logo {height: 33px;}
	
.menu-logo img {
    height: 33px;
    position: relative;
}
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    cursor: pointer;
}

    .mobile-menu-toggle span {
        width: 28px;
        height: 2px;
        background: #284257;
        transition: 0.3s;
    }

.menu-items-right {
	display:block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 5% 40px 5%;
    overflow-y: auto;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    gap: 0;
}

    .menu-items-right.is-active {
        right: 0;
    }

.mobile-menu-close {
   display: block;
    width: 30px;
    height: 30px;
    margin-left: auto;
    margin-bottom: 30px;
    position: relative;
    cursor: pointer;
}
	.mobile-menu-close::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #284257;
    transform: rotate(45deg);
}
	.mobile-menu-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #284257;
    transform: rotate(-45deg);
}

    .main-nav {
        flex-direction: column;
		display: block;
        width: 100%;
		gap: 0;
    }
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #E6E8EB;
    }
    .main-nav a, .main-nav span {
        padding: 20px 0;
        width: 100%;
        justify-content: space-between;
		font-size:18px;
    }
	.main-nav .submenua {
		padding:20px 5%;
	min-width:0;
		width:90%;	
	}
	.main-nav .submenua a {padding: 10px 0;}
	.main-nav .submenua strong {
		color:#6B7280;
		text-transform:none;
	}
	.main-nav .submenua p {
		display:none;
	}
	
    .dropdown {
		position: static;
        display: none;
        width: 100%;
		min-width:0;
        transform: none;
        box-shadow: none;
        border: none;
        padding-bottom: 20px;
    }
	.has-dropdown {
		padding-bottom: 0;
    	margin-bottom: 0;
	}
    .has-dropdown.is-open > .dropdown {
        display: flex !important;
    }
	.has-dropdown:not(.is-open) > .dropdown {
    display: none !important;
}

    .has-dropdown.is-open > a::after,
    .has-dropdown.is-open > span::after {
        transform: rotate(180deg);
    }

    .dropdown::before { display: none; }
    .quadra {
        padding: 0;
        border: none;
        border-bottom: 1px solid #E6E8EB;
    }

    .dropdown .quadra ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dropdown .quadra li a {
        width: 100%;
        height: 32px;
		padding:0;
    }

    .lang-dropdown {
        margin: 30px 5% 0 0;
        width: 40%;
		
    }

    .lang-toggle {
        width: 100%;
        text-align:center;
        height: 50px;
		padding:0;
		display:block;
    }

    .menu-button {
        width: 50%;
        height: 50px;
		padding:0;
		text-align:center;
    }
	.footer {
		padding:30px 0 90px 0;
	}
	.footer-logo{
		padding:20px 0 50px 30px;
		height:33px;
		display:block;
		float:left;
	}
	.footer-menu-items{
		display:block;
		float:left;
		width:100%;
	}
	.footer-menu-inner {
		max-width:none;
		width:90%;
		padding:20px 5%;
		display:block;
		float:left;
	}
	.footer-nav {
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 20px;
	}
.mobile-stick {
        display: block;
        justify-content: space-between;
		background: #ffffff;
        align-items: center;    
        position: fixed;
	transition: none !important;
	will-change: auto;
        bottom: 0; 
        left: 50%;
        translate: -50% 0;    
        width: 70%;
        border-radius: 6px;
        z-index: 1000;
        padding: 5px 15px;
	box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-nav li {
        flex: 1;
        text-align: center;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
        display: block;
        margin: 0 auto;
    }

    .mobile-nav a span {
        display: block;
        font-size: 11px;
        color: #434244;
        line-height: 1.4;
        white-space: nowrap;
    }
}