:root {
  --bg: #fff;
  --text: #000;
  --muted: #5a6274;
  --line: #C4C4C4;
  --brand: #1c4e88;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  font-weight: 200;
  font-size: 20px;
}

.container {
  width: min(1533px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  width: 100%;
  background: url('img/slide.webp') center/cover no-repeat;
  aspect-ratio: 2131 / 898;
}

.hero.second{
	aspect-ratio: auto;
	padding:0 0 20px;
	background-position: top center;
	background: #072140;
background: linear-gradient(to bottom, #072140 0%, #36597f 100%);
}

.overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.topbar {
  padding-top: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 23px;
}

.topbar-left{
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--white);
}

.logo-mark {
  width: 237px;
  margin-right: 106px;
}

.logo-mark img{
  width: 100%;
}

.logo-text {
  padding-top: 23px;
  margin-right: 106px;
}

.main-nav {
  display: flex;
  gap: 35px;
  margin-top: 13px;
  align-items: center;
}

.main-nav a{
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  font-weight: 300;
}

.nav-item {
  position: relative;
  height: 96px;
  align-items: center;
  display: flex; 
}

/* Скрываем выпадающее меню */
.dropdown-menu {
  height:0;
  overflow:hidden;
  position: absolute;
  top: 70px;
  left: 0;
  background: rgba(0,0,0, 0.5);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
  padding:0;
  transform:0.5s;
}

/* Стили пунктов внутри dropdown */
.dropdown-menu a {
  display: block;
  padding: 5px 15px;
  white-space: nowrap;
  font-size: 20px;
  transform:0.5s;
}

.dropdown-menu a:first-child {
  padding: 15px 15px 5px;
}

.second .dropdown-menu{
	background: rgba(0,0,0, 0.9);
}

.dropdown-menu a:last-child {
   padding: 5px 15px 15px;
}

.dropdown-menu a:hover{
	opacity:0.8;
}

/* Показываем меню при наведении */
.nav-item:hover .dropdown-menu {
  height:auto;
}

.dropdown-menu__adapt{
	background: rgb(0, 0, 0, 0.6);
  font-size: 15px;
  padding: 10px;
}

.contacts {
  display: grid;
  justify-items: end;
  color: #FFF;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding-top: 18px;
  }

  .contacts  a{
    display: flex;
    align-items: center;
    color: #FFF;
    text-decoration: none;
    margin: 6px 0;
  }

  .contacts img{
    margin-right: 8px;
  }

.page-content {
  padding-top: 101px;
  padding-bottom: 100px;
  max-width: min(1533px, calc(100% - 48px));
  margin: 0 auto;
}

.page-content a {color: #000B28;}

.page-content a:hover{text-decoration: none;}

section {
  margin-bottom: 72px;
}

h2 {
  margin: 0 0 48px;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  color: #000B28;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 33px;
  align-items: start;
  margin-bottom: 100px;
}

.frame-box {
  padding: 24px 0 0 51px;
  position: relative;
  font-weight:300;
}

.frame-box::before,
.frame-box::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 55px;
  border: 1px solid #000;
}

.frame-box::before {
  left: -1px;
  top: -1px;
  border-right: none;
  border-bottom: none;
}

.frame-box::after {
  left: -1px;
  bottom: -1px;
  border-right: none;
  border-top: none;
}

.about h2 {
  font-size: 44px;
  margin-bottom: 16px;
}

.about p,
.about li {
  color: var(--text);
  font-size: 20px;
  margin: 0 0 37px;
}

.about b{
  color: var(--text);
  font-weight: 400;
}

.about ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

.about-cta {
  color: #0062A7 !important;
  font-size: 24px !important;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 35px !important;
  margin-top: 35px !important;
}

.about-image{
  width: 100%;
  height: 100%;
  background: url(img/about.webp) top center no-repeat;
  background-size: cover;
}

.about-image img{
max-width: 100%;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:40px 32px;
  margin-bottom: 100px;
}

.card {
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration:none;
  color:var(--text);
}

.card-image {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 359 / 300;
}

.card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.card-title {
  padding: 26px 40px;
  margin: 0;
  font-size: 24px !important;
  font-weight: 300 !important;
  line-height: 125%;
  min-height: 112px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
   margin-bottom: 100px;
}

.service-pill {
  border: 1px solid var(--line);
  padding: 14px 20px;
  text-align: center;
  font-size: 24px;
  color: #4a5262;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  color: #000B28;
  line-height: 1.2;
}
  
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.news-item {
  width: 100%;
  aspect-ratio: 752 / 270;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 50px 14px 18px;
  background:
    linear-gradient(180deg, rgba(12, 22, 48, 0.3), rgba(12, 22, 48, 0.72)),
    url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=1200&q=80')
      center/cover no-repeat;
      background-size: cover;
   text-decoration:none;
   color:var(--text);
}

.site-footer {
  background: #e6e6e8;
  padding: 44px 0;
  overflow: hidden;
  font-weight:300;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 24px;
}

.site-footer__flex{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  max-width: calc(100% - 475px);
  z-index:100;
}

.footer-brand {
  color: var(--text);
  margin-bottom: 34px;
  width: 280px;
}

.footer-brand .logo-mark{
  width: 206px;
  height: 96px;
  margin: 0;
}

.footer-grid p,
.footer-grid a {
  margin: 0 0 8px;
  color:  var(--text);
  text-decoration: none;
  font-size: 14px;
}

.footer-title {
  font-weight: 600;
  color: var(--text) !important;
  font-size: 20px !important;
  font-weight: 400;
}

.footer-desc{
  color:  var(--text);
  font-size: 16px;
  width: 50%;
}

.footer-desc span{
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 10px;
}

.footer-email{
  width: 280px;
  font-size: 16px;
  line-height: 30px;
  font-weight: 300;
}

.footer-email a{
  font-size: 20px;
  font-weight: 400;
  color: var(--text) !important;
}

.footer-phone{
   width: 325px;
  font-size: 16px;
  line-height: 30px;
  font-weight: 300;
}

.footer-phone a{
   font-size: 20px;
  font-weight: 400;
  color: var(--text) !important;
}


.footer-requisites{
  position: relative;
  width: 100%;
  max-width: 475px;
}

.footer-requisites::before{
  position: absolute;
  content: '';
  background: url(img/logo.png) top right no-repeat;
  background-size: contain;
  top:-34px;
  right: 0;
  width: 400px;
  height: calc(100% + 88px);
  z-index: 10;
  opacity: 0.5;
}



.footer-requisites p{
  font-size: 16px;
  position: relative;
  z-index: 100;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 0;
  top:56px;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
}

.main-nav__mobile{
  position: fixed;
  top:0;
  right: -100%;
  height: 100vh;
  width: 100vw;
  background: #000000d5;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.main-nav__mobile.active{
   right: 0;
}


.main-nav__mobile nav{
  text-align: center;
}

.main-nav__mobile a{
  color: #fff;
  display: block;
  margin: 12px 0;
  text-decoration: none;
}

.menu-close {
  position: absolute;
  top:58px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 36px;
  height: 3px;
  background: #ffffff;
}

.menu-close::before {
  transform: rotate(45deg);
}

.menu-close::after {
  transform: rotate(-45deg);
}

.footer-requisites span{
  font-weight: 300;
}

.page-content h1{
	font-size:30px;
}

@media (max-width: 1430px) {
.main-nav {
  gap: 20px;
}
}

@media (max-width: 1400px) {

  .logo-mark {
  width: 160px;

  }

  .logo-mark img{
    height: 78.62px;
  }

  .logo-text img{
     width: 70%;
  }

  .logo-text {
  margin-right: 10%;
}

.main-nav a {
  font-size: 17px;
}

.contacts a{
  font-size: 16px;
  margin: 3px 0;
}

.footer-email{
  width:   100%;
  margin: 10px 0;
}

 .main-nav {
    gap: 25px;
	margin-top: 0;
  }
  

}

@media (max-width: 1100px) {
  h2,
  .about h2 {
    font-size: 34px;
  }

  .main-nav {
    gap: 16px;
  }
  
  .footer-desc{
	  width: 100%;
  }

  .card-title,
  .service-pill {
    font-size: 18px;
  }

  .site-footer__flex{
    padding-right: 50px;
  }

  .card-title {
  padding: 26px 20px;}

  .about p, .about li{
    margin: 0 0 10px;
  }
  
   .logo-text{
	   width: 119px;
   }
   
   .logo-text img {
    width: 100%;
  }
  .logo-mark{
	  margin-right: 50px;
  }
  
  .main-nav{
	  margin-top: 0;
  }
}

@media (max-width: 991px) {

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0b1d3a;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    display: none;
  }

  .main-nav.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .about{
    grid-template-columns: 1fr;
  }

  .about-image{
    display: none;
  }

  .contacts{
    margin-right: 70px;
  }

  .card-title {
  padding: 16px 20px;
  margin: 0;
  font-size: 18px !important;
  font-weight: 300 !important;
  line-height: 125%;
  min-height: 83px;
}

.page-content{
  padding-top: 51px;
  padding-bottom: 50px;
}

.about, .cards-grid, .services-grid{
  margin-bottom: 50px;
}

.footer-brand{
  margin-bottom: 10px;
}

.frame-box{
  padding: 0;
}

.frame-box::before, .frame-box::after{
  display: none;

}


}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 0;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__flex{
    max-width: 100%;
    padding: 0;
  }

  .footer-requisites{
    margin-top: 10px;
  }

  .news-grid{
    grid-template-columns: repeat(1, minmax(0, 1fr));
    font-size: 16px;
  }

  .news-item{
    padding: 14px 18px;
  }

   .logo-mark img {
    margin-left: -15px;
  }
  
}

@media (max-width: 620px) {

  .frame-box{
    padding:0;
  }

  .frame-box::before, .frame-box::after{
    display: none;
  }

 /*.brand{
    width: 200px;
  }*/
  
  .logo-mark{
	   margin: 0;
  }

  .logo-text{
    margin: 0;
  }

  .logo-text svg {
    width: 80%;
  }

  .about p{
    font-size: 16px;
  }

  .topbar{
    gap: 0;
  }
  
  .container {
    width: calc(100% - 24px);
  }

  h2,
  .about h2 {
    font-size: 30px;
  }

  .cards-grid,
  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 460px;
  }

  .frame-box{
    padding: 0;
  }

  .contacts{
    margin-right: 58px;
    margin-top: 5px;
    width: 35px;
    display: flex;
	padding: 0;
  }

  .contacts a{
     text-indent: -9999px;
     margin: 7px 8px;
  }
  
  .page-content h1{
	font-size:24px;
	line-height:26px;
}

 .logo-mark img {
    margin-left: 0;
  }
  
  .hero.second{
	  min-height: auto;
  }
  
  
}

.photo{
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
}

.photo img{
	max-width:100%;
}