@font-face {
  font-family: 'Nimbus';
  src: url('../fonts/nimbus-sans-l-regular.woff2') format('woff2'), 
       url('../fonts/nimbus-sans-l-regular.woff') format('woff'),
       url('../fonts/nimbus-sans-l-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
    font-family: 'Nimbus', sans-serif;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}
body.loaded { opacity: 1; }
.bg-video {position: fixed;top: 0;left: 0;width: 100%;height: 100%;object-fit: cover;z-index: -1;pointer-events: none;}
.video-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.35);z-index: 0;pointer-events: none;}
.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 180px);
    padding: 94px 40px 20px 40px;
}

.wrapper-h {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 20px;
}

.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 60px 0;
}

.logo {
    max-width: 200px;
    display: block;
    margin: 0 auto;
}

.lang-toggle-container, .lg {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.lang-label {
    color: #999;
    transition: color 0.3s ease;
}
#ruLabel, #enLabel {
    cursor: pointer;
}
.lang-label.active { color: #000; }

.lang-toggle-input {
    position: absolute;
    width:0;
    opacity: 0;
}

.lang-toggle {
    width: 60px;
    height: 30px;
    background: #ddd;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.lang-toggle::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.lang-toggle-input:checked + .lang-toggle::before {
    transform: translateX(30px);
}

.container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.block-link {
    width: 20%;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.block-link.show {
    opacity: 1;
    transform: translateY(0);
}

.block {
    height: 400px;
    overflow: hidden;
}

.block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.block-link:hover img {
    filter: grayscale(0%);
}

.label {
    display: block;
    text-align: center;
    font-size: 14px;
    margin: 10px 0;
}
.block-link:hover .label {
    text-decoration: underline;
}

#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-logo {
    width: 140px;
    margin-bottom: 40px;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: #e5e5e5;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: #000;
    animation: loading 1.8s ease forwards;
}

@keyframes loading {
    from { width: 0; }
    to { width: 100%; }
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 767px) {
   .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-m {
    padding: 0 20px!important;
}
.wrapper {
    padding: 80px 20px 20px;
    min-height: calc(100vh - 165px);
}
.wrapper-h {
    padding: 0 20px 20px;
}

    .block-link {
        width: 100%;
    }
    .block{
        height:200px;
    }
    .mob{
        display:none;
    }
    .header {
    grid-template-columns: 1fr 1fr;
    padding: 30px 0;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
   .block{
        height:300px;
    } 
    
}

.about-section {
    padding: 60px 0;
    display: grid;
    gap: 40px;
    
}
.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.about-text p {
    font-size: 20px;
    line-height: 1.6;
}
.about-image {
    width: 100%;
    height: 100%;
}
.about-image img {
    width: 100%;
    height: 100%;  
    object-fit: cover; 
    display: block;
}
@media (min-width: 1000px) {
    .about-section {
        grid-template-columns: 1fr 1fr;
    }
}
.philosophy-section {
    background: #f5f7f9;
    padding: 60px;
}

.philosophy-inner {
    margin: 0 auto;
}
.philosophy-text {
    font-size: 20px;
    line-height: 1.8;
    color: #222;
    font-style: italic;
}

.philosophy-signature {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    margin-top: 30px;
}
.signature-r {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: -15px;
}
.signature-info {
    display: flex;
    flex-direction: column;
}
.director-name {
    font-size: 20px;
    font-weight: 600;
}
.director-position {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}
.signature-image {
    width: 160px;
    height: auto;
    margin-top: -40px;
    margin-left: auto;
}
.history-inner {
    margin: 0 auto;
}
.title-select {
    margin-bottom: 40px;
    font-size: 30px;
    color:#036;
    position: relative;
}
.title-select::after {
    content: "";
    width: 100px;
    height: 1px;
    background: #000;
    position: absolute;
    bottom: -15px;
    left: 0;
}
.history-text {
    font-size: 20px;
    line-height: 1.9;
    color: #333;
}
.history-text p {
    margin-bottom: 30px;
}
.history-quote {
    margin-top: 60px;
    padding: 50px;
    background: #f5f7f9;
    position: relative;
}
.quote-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #036;
}
.history-quote p {
    font-size: 20px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}
.quote-author {
    font-weight: 600;
    display: block;
}
/* Контейнер статуса */
.form-status {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0;
    transition: opacity .4s ease, transform .4s ease;
    transform: translateY(5px);
    pointer-events: none; /* чтобы не мешал кликам */
}

/* Появление */
.form-status.loading,
.form-status.success,
.form-status.error {
    opacity: 1;
    transform: translateY(0);
}

/* Цвета */
.form-status.loading {
    color: #888;
}

.form-status.success {
    color: #2a9d2a;
}

.form-status.error {
    color: #d33;
}
footer p {font-size: 20px;text-align: center;}
.header-m {
    position: fixed;
    padding: 0 40px;
    left: 0;
    width: 100%;box-sizing: border-box;
    background: #fff;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.logo-m {
  height: 50px;
}
.nav {
    justify-self: center;
}
.menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size:18px;
}
.menu li a {
  text-decoration: none;
  color: #036;
  transition: opacity 0.2s ease;
  position: relative;
  padding: 5px 0;
}

.menu li a:hover {
 color:#5a738b;
}

.menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: #5a738b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.menu li a:hover::after,
.menu li a.active::after {
  transform: scaleX(1);
}

.burger {
    display: none;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    height: 3px;
    background: #036;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Анимация превращения в крестик */
.burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}



@media (max-width: 1000px) {
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;

        /* Анимация */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav.open {
        display: block;
        max-height: 500px; /* достаточно для всех пунктов */
        opacity: 1;
        transform: translateY(0);
    }
    .menu {
        gap:0;
        flex-direction: column;
    }
    .menu li {
        width: 100%;
        list-style: none;
        border-bottom: 1px solid #eee;
    }
    .menu li:last-child {
        border-bottom: none;
    }
    .menu li a {
        display: block;
        padding: 15px 20px;
        text-decoration: none;
        color: #000;
    }
    .lang-toggle-container {
        justify-self: center;
    }
    .burger {
        display: flex;
        justify-self: end;
    }
    .menu li a::after {
  bottom: 0px;
}

}

#map {height:400px;width:100%}
.contact-m, .contact-d {
    position: relative;
    overflow: hidden;
}
.leaflet-control-attribution {
    display: none !important;
  }
.contact-m::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;   
    width: 100%;
    height: 60%;   
    background: url('/img/moscow.png') no-repeat bottom center;
    background-size: cover;
    z-index: 0;
}
.contact-d::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;   
    width: 100%;
    height: 100%;         
    background: url('/img/dubai.png') no-repeat bottom center;
    background-size: contain;
    z-index: 0;
}
.contact-section {
    display: flex;
    flex-direction: row;
    gap: 60px;
    width: 100%;
    padding:20px 0 60px;
}
.contact {
        background: #f5f7f9;
        padding: 60px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
.info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
    z-index: 1;
}
.info-row img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.office-info p {
    margin-bottom: 10px;
    font-size: 20px;
}
.contacts-bottom {
    display: flex;
    flex-direction: row;
    gap: 60px;
    width: 100%;
    padding-top: 40px;
}
.contacts-form-block,
.company-details {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.contacts-form-block {
    margin-bottom: 0;
}
.company-details {
    border-top: none;
    border: 1px solid #036; 
    padding: 40px;
    background: #036;
    color: #fff;
}
.company-details p {
  margin-bottom: 0px;
  font-size:20px;
}
.contacts-form {
    display: grid;
    gap: 20px;
    flex-grow: 1;
}
.contacts-form input,
.contacts-form textarea {
    padding: 15px;
    border: 1px solid #000;
    font-size: 16px;
    background: transparent;
}
.contacts-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contacts-form button {
    padding: 15px;
    background: #036;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
}
.contacts-form button:hover {
    background: #048;
}

.contact h3, .contacts-bottom h3 {font-size:25px;margin-top:0}

@media (max-width: 768px) {
.contacts-bottom {flex-direction:column;gap:20px;padding-top:40px}
.contact, .company-details {padding:20px}
.contact h3, .contacts-bottom h3 {font-size:20px;}
 .title-select {font-size:24px;}
.contact-section {flex-direction:column;gap:20px;padding:10px 0 40px;}
.info-row, .company-details p {font-size:18px}
.company-details h3 {margin:0}
#map {height:250px}
h2 {font-size: 26px}
.about-section {padding:0 0 20px;gap:20px}
}
.article{
max-width:900px;
margin:auto;
padding:20px 40px;
background:#f5f7f9;
}
.news-text {
    font-size: 20px;
    line-height: 1.6;
}
.news-text blockquote {
    margin: 40px 0;
    padding: 50px;
    background: #fff;
    position: relative;
}
.news-text blockquote::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #036;
}
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    box-sizing: border-box;
}

.news-grid > * {
    box-sizing: border-box;
}



.news-card{
 width: calc(33.333% - 20px);
    background: #f5f7f9;
    overflow: hidden;
    text-decoration: none;
    color: black;
    transition: 0.2s;
}

.news-card:hover{
transform:translateY(-5px);
}

.news-card img{
width:100%;
height:250px;
object-fit:cover;
}

.news-content{
padding:20px;
}

.news-content h2{
margin:0;
font-size: 18px;
line-height: 1.4;
}

.article-image{
width:100%;
margin-bottom:20px;
}
/* 3 колонки на десктопе */
@media (min-width: 1200px) {
    .news-grid > * {
        flex-basis: calc(33.333% - 25px);
    }
}

/* 2 колонки на планшете */
@media (min-width: 768px) and (max-width: 1199px) {
    .news-grid > * {
        flex-basis: calc(50% - 25px);
    }
}

/* 1 колонка на телефоне */
@media (max-width: 767px) {
    .news-grid > * {
        flex-basis: 100%;
    }
    .article{padding:20px}
    .article h1{font-size:20px;line-height:1.4}
    .news-text, .about-text p, .philosophy-text p, .history-text, .history-quote p{
    font-size: 18px;
    line-height: 1.4;
    margin:0 0 10px;
    
}
.news-text blockquote {
    margin: 20px 0;
    padding: 10px 30px;
}
 .history-quote {
        margin-top: 20px;
        padding: 30px;
    }
.article-image{
margin-bottom:0;
}
.philosophy-section {
    padding: 10px 20px;
}
}

.error-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.error-box {
  text-align: center;
}

.error-code {
  font-size: clamp(80px, 20vw, 200px);
  font-weight: 700;
  line-height: 1;
  color: #036;
  margin-bottom: 20px;
}

.error-text {
  font-size: 22px;
  margin-bottom: 10px;
}

.error-desc {
  font-size: 16px;
  opacity: .7;
  margin-bottom: 25px;
}

.error-link {
  display: inline-block;
  padding: 12px 22px;
  background: #036;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: opacity .2s;
}

.error-link:hover {
  background: #048;
}