body, html {
    margin: 0;
    font-family: "Lora", serif;
    background-color: #dddfe2;
    width: 100%;
    overflow-x: hidden;
}

/* Затемняшка */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* полупрозрачный черный */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10; /* чтобы был поверх всего, кроме меню */
}
  
/* Когда активен */
.overlay.active {
    opacity: 1;
    visibility: visible;
}
  
.header {
    position: fixed;
    width: 100%;
    height: 100px;
    z-index: 20;
    background: transparent;
    backdrop-filter: none;
    transition: 
    height 0.3s ease,
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}

/* После прокрутки */
.header.glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.headercontent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px black solid;
    padding: 5px 20px;
}

.headercontent h2 {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 5px;
}

/* Стили для бургер-кнопки */
.burger {
    font-size: 40px;
    cursor: pointer;
    color: #004aad;
    transition: transform 0.3s ease;
}

.burger:hover {
    transform: scale(1.1);
}

.nav-menu {
    overflow: hidden;
    max-height: 0px;
    background-color: #f0f0f0;
    position: absolute;
    top: 110px; /* отступ вниз под хедером */
    right: 15px;
    width: 210px;
    border-radius: 10px;
    transition: max-height 0.5s ease;
}

.nav-menu ul {
    list-style-type: none;
    padding: 20px;
}

.nav-menu li {
    padding: 5px 0px;
}

.nav-menu.active {
    max-height: 500px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: bold;
}

.nav-menu ul li a:hover {
    border-bottom: 2px #004aad solid;
}

.social {
    padding: 20px;
}

.social p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
}

.social a {
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: black;
}

.social a:hover {
    border-bottom: 2px #004aad solid;
}

.phone a {
    font-size: 18px;
}

.phone a:hover {
    border-bottom: 2px #004aad solid;
}

.social-icons {
    align-items: center;
    padding: 10px 0px;
}

.social-icons a:hover {
    border: none;
}

.social-icons img {
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* First Block */

.hero {
    display: flex;
    flex-wrap: wrap;
    align-content: end;
    justify-content: center;
    background-image: url('images/Victoria.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    padding-top: 220px;
}

.first {
    width: 500px;
    padding-bottom: 30px;
}

.first h1 {
    font-size: 21px;
    color: #004aad;
}

.first h2 {
    font-size: 18px;
    font-weight: normal;
}

.btn-outline {
    display: inline-block;
    padding: 10px 40px;
    font-size: 25px;
    font-weight: normal;
    color: #004aad; /* красивый насыщенный синий */
    text-decoration: none;
    border: 2px solid #004aad;
    border-radius: 3px;
    background-color: transparent;
    transition: all 0.3s ease;
    text-align: center;
}

/* При наведении */
.btn-outline:hover {
    background-color: #004aad;
    color: white;
}

/* About Block */

.about {
    padding: 20px;
}

.about h2 {
    font-size: 32px;
}

.about p {
    font-size: 18px;
}

/* Services Block */

.poslugy {
    text-align: center;
    padding: 60px 20px;
}

.poslugy h2 {
    font-size: 48px;
    letter-spacing: 3px;
    font-weight: normal;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ровно 4 колонки */
    gap: 20px;
    align-items: center;
}

.service-item img {
    width: 100px;
}

.service-item p {
    font-size: 20px;
    font-weight: bold;
}

.underline {
    width: 100px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    transition: background-color 0.5s ease;
}

.service-item:hover .underline {
    background-color: #004aad;
}

.adresblock {
    text-align: center;
    padding: 60px 20px;
}

.adresblock h2 {
    font-size: 48px;
    letter-spacing: 3px;
    font-weight: normal;
}

.adres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

.adres-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.adres-card img {
    width: 400px;
    height: 300px;
    display: block;
    border-radius: 10px;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.adres-card img:hover {
    filter: grayscale(0%);
}

.adres-card p {
    width: 250px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    padding: 10px 20px;
    transform: translateX(-50%);
    background-color: white;
    color: #004aad;
    border-radius: 5px;
    font-weight: bold;
    font-size: 21px;
    transition: background-color 0.3s;
}

.adres-card:hover p {
    background-color: #004aad;
    color: white;
}

/* Poslugy Block */

.experience-section {
    position: relative;
    height: 100vh;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
  
.exp-text-content {
    width: 700px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}
  
.exp-text-content h2 {
    font-size: 245px;
    font-weight: bold;
}

.p-text {
    width: 300px;
    border-left: 2px white solid;
    align-items: center;
}

.p-text p {
    margin: 0;
    font-size: 36px;
    padding: 0px 10px;
}

.cta-button {
    display: inline-block;
    margin-top: 25px;
    padding: 20px 50px;
    background-color: #004aad;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.5s;
}
  
.cta-button:hover {
    background-color: white;
    color: #004aad;
}
  
.exp-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    z-index: 2;
}

.item {
    display: flex;
    height: 100px;
    align-items: center;
    gap: 10px;
}
  
.item img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}
  
.item strong {
    margin: 0;
    font-size: 24px;
}

.item p {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
}

/* Sf Block */

.sf-block {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-align: center;
}

.sf-img {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Zasnovniki Block */

.zasnovniki {
    text-align: center;
    padding: 60px 20px;
}

.zasnovniki h2 {
    font-size: 48px;
    font-weight: normal;
    letter-spacing: 5px;
}

.zasnovniki-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.zasnovniki-card-victoria {
    position: relative;
    overflow: hidden;
    background-image: url('images/VictoriaCard.png');
    background-position: center;
    background-size: cover;
    width: 350px;
    height: 450px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.zasnovniki-card-maxim {
    position: relative;
    overflow: hidden;
    background-image: url('images/MaximCard.png');
    background-position: center;
    background-size: cover;
    width: 350px;
    height: 450px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.zasnovniki-logo {
    display: flex;
    align-items: center;
}

.zasnovniki-info {
    text-align: left;
    padding: 10px;
}

.zasnovniki-info h3 {
    font-size: 21px;
    margin: 0;
}

.zasnovniki-info p {
    font-size: 21px;
    margin: 0;
}

.zasnovniki-info-text {
    text-align: left;
    background-color: #004aad;
    border-radius: 10px;
    position: absolute;
    width: 100%;
    bottom: -100%;
    transition: bottom 0.4s ease;
}

.zasnovniki-card-victoria:hover .zasnovniki-info-text {
    bottom: 0;
}

.zasnovniki-card-maxim:hover .zasnovniki-info-text {
    bottom: 0;
}

.zasnovniki-info-text p {
    padding: 10px;
    font-size: 21px;
    font-weight: bold;
    color: white;
    width: 300px;
}

/* ZMI Block */

.ZMI {
    text-align: center;
}

.ZMI h2 {
    font-size: 48px;
    font-weight: normal;
}

.zmi-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.zmi-item {
    display: flex;
    text-align: left;
    gap: 10px;
    padding: 20px;
}

.image-hover {
    position: relative;
    display: inline-block;
    width: 150px; /* или 100% */
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none; /* убираем подчёркивание */
}

.image-hover img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.image-hover:hover img {
    transform: scale(1.02);
}
  
.hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: normal;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    pointer-events: none; /* чтобы клик шёл по ссылке, а не по тексту */
}
  
.image-hover:hover .hover-text {
    opacity: 1;
}

.zmi-item img {
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: brightness(0.8);
}

.zmi-item img:hover {
    filter: brightness(0.6) blur(2px);
    transform: scale(1.05);
}

.zmi-text a {
    text-decoration: none;
}

.zmi-text h3 {
    margin: 0;
    color: black;
    width: 350px;
}

.zmi-text h3:hover {
    color: #004aad;
}

.zmi-text p {
    width: 400px;
}

.contin {
    color: #004aad;
}

.contin:hover {
    color: black;
}

/* Contacts Block */

.contacts {
    text-align: center;
}

.contacts h2 {
    font-size: 48px;
}

.contacts-item {
    display: flex;
    text-align: left;
    justify-content: space-around;
}

.contacts-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contacts-info img {
    width: 70px;
}

.contacts-info h3 {
    margin: 0;
}

.contacts-info p {
    margin: 0;
}

.contacts-icons img {
    width: 70px;
    transition: transform 0.3s ease;
}

.contacts-icons img:hover {
    transform: scale(1.1);
}

.contacts-right {
    display: flex;
    flex-direction: column;
    border-left: 3px white solid;
    padding: 0px 20px;
}

.contacts-right h2 {
    margin: 0;
    width: 300px;
    font-size: 21px;
    font-weight: normal;
}

.contacts-form {
    margin-top: 5px;
}

.contacts-form input,
.contacts-form textarea {
    display: block;
    margin-bottom: 15px;
    width: 100%;
    border: 2px #004aad solid;
    outline: none;
}

.contacts-form input {
    height: 30px;
}

.contacts-form input:focus,
.contacts-form textarea:focus {
    border-color: #007aff; /* ярко-синий при активации */
    box-shadow: 0 0 5px rgba(0, 122, 255, 0.4);
}

.contacts-form button {
    padding: 12px 20px;
    background-color: #004aad;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
  
.contacts-form button:hover {
    background-color: white;
    color: #004aad;
}

.map {
    border-top: 2px #004aad solid;
}

.map iframe {
    width: 100%;
}

/* Footer Block */

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #004aad;
    height: 100px;
}

.footer h2 {
    margin: 0;
    font-size: 18px;
    color: white;
}

/* Adaptive */

/* Планшеты */
@media (max-width: 1024px) {
    .headercontent {
        border-bottom: none;
    }

    .headercontent h2 {
      font-size: 24px;
      text-align: center;
    }

    .nav-menu.active {
        top: 90px;
        right: 1px;
    }

    .nav-menu {
        top: 90px;
        right: 1px;
    }

    .first {
      width: 80%;
    }
  
    .exp-text-content {
      flex-direction: column;
      width: 90%;
      gap: 10px;
      text-align: center;
    }
  
    .exp-text-content h2 {
      font-size: 120px;
    }
  
    .p-text {
      width: 100%;
      border-left: none;
      border-top: 2px solid white;
      padding-top: 10px;
    }
  
    .service-cards {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .adres-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .zmi-item {
      flex-direction: column;
    }
  
    .zmi-text h3,
    .zmi-text p {
      width: 100%;
    }
  
    .contacts-item {
      flex-direction: column;
      gap: 20px;
      align-items: center;
      padding-left: 10px;
    }
  
    .contacts-right {
      border-left: none;
      border-top: 3px solid white;
      padding-top: 20px;
    }

    .contacts-form button {
        margin-bottom: 15px;
    }

    .zasnovniki-content {
      flex-direction: column;
      gap: 20px;
      align-items: center;
    }
}
  
/* Мобильные устройства */
@media (max-width: 768px) {
    .header {
      height: 80px;
    }
  
    .headercontent h2 {
      font-size: 20px;
      letter-spacing: 2px;
    }
  
    .burger {
      font-size: 32px;
    }
  
    .hero {
      padding-top: 150px;
    }
  
    .first {
      width: 90%;
      text-align: left;
    }
  
    .first h1 {
      font-size: 18px;
    }
  
    .first h2 {
      font-size: 16px;
    }
  
    .btn-outline {
      padding: 10px 30px;
      font-size: 18px;
    }
  
    .about h2,
    .poslugy h2,
    .adresblock h2,
    .contacts h2,
    .ZMI h2,
    .zasnovniki h2 {
      font-size: 28px;
    }
  
    .adres-grid {
      grid-template-columns: 1fr;
    }
    
    .experience-section {
        flex-direction: column;
    }

    .exp-text-content h2 {
      font-size: 154px;
      margin: 0;
    }
  
    .p-text p {
      font-size: 20px;
    }
  
    .cta-button {
      padding: 15px 30px;
      font-size: 16px;
    }

    
    .sf-img {
        flex-direction: column;
    }

    .sf-img img {
        width: 300px;
    }

    .zasnovniki {
        padding: 0;
    }

    .contacts-info img,
    .contacts-icons img {
      width: 40px;
    }
  
    .contacts-form input,
    .contacts-form textarea {
      font-size: 14px;
    }
  
    .footer {
      height: auto;
      padding: 20px;
    }
  
    .footer h2 {
      font-size: 14px;
    }
}
  
