@font-face {
    font-family: 'Montserrat Light';
    src: url('fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Montserrat Medium';
    src: url('fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Montserrat Bold';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 400;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat Light', sans-serif;
}

body {
    background: white;
    color: black;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    background: white;
    position: relative;
    z-index: 3;
    margin-bottom: -100px;
    margin: 35px 120px;
    padding: 10px 10px;
    border-radius: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    width: auto;
}

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

.nav a {
    text-decoration: none;
    font-size: 20px;
    font-family: 'Montserrat Light';
    color: black;
}

.nav a:hover {
    color: #168AAD;
}

.phone-btn {
    background: #168AAD;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 10px;
    z-index: 1;
    margin-top: -180px;
}

.hero .header-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: flex-start;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 30px;
}

.hero-image-mobile img {
    display: none;
}

.hero-btn {
    position: absolute;
    top: 510px;
    left: 85px;
    display: inline-block;
    padding: 15px 40px;
    background-color: #168AAD;
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
}

.hero-btn:hover {
    background-color: #0f5c7b;
}

.burger-btn {
    display: none;
}

@media (max-width: 768px) {
    .header {
        background: none;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 20;
        position: relative;
        z-index: 5;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        height: 28px;
        width: auto;
    }

    .phone-btn {
        font-size: 10px;
        padding: 6px 5px;
        gap: 2px;
    }

    .phone-btn img {
        height: 15px;
    }

    .burger-btn img {
        height: 20px;
    }

    .burger-btn {
        display: block;
        background: none;
        border: 0;
        cursor: pointer;
    }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        z-index: 10;
    }

    .nav.active {
        display: flex;
    }

    .nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0;
        margin: 0;
        width: 100%;
        align-items: center;
    }

    .nav a {
        text-decoration: none;
        color: black;
        font-size: 20px;
        width: 100%;
        text-align: center;
    }

    .hero {
        position: relative;
        height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
    }

    .hero .header-container {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding-top: 175px;
    }

    .hero-image {
        display: none;
    }

    .hero-image-mobile img {
        width: 100%;
        height: auto;
        border-radius: 0;
        display: block;
    }

    .hero-btn {
        position: relative;
        top: -65px;
        padding: 5px 15px;
        font-size: 10px;
        z-index: 2;
        margin-left: -455px;
    }
}

.advantages {
    padding: 35px 120px;
    margin-top: -70px;
}

.advantages-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 100px;
    text-align: center;
    position: relative;
}

.adv-item {
    max-width: 476px;
    position: relative;
    padding: 0 20px;
}

.adv-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    right: -50px;
    width: 4px;
    background: linear-gradient(
        rgba(22,138,173,0) 0%,
        rgba(22,138,173,1) 50%,
        rgba(22,138,173,0) 100%
    );
}

.adv-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.adv-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.adv-title {
    font-size: 30px;
    margin-bottom: 30px;
    font-family: 'Montserrat Medium', sans-serif;
}

.adv-text {
    font-size: 20px;
    font-family: 'Montserrat Light', sans-serif;
    margin: 0 auto;
    text-align: justify;
}

.adv-item:last-child .adv-text {
    text-align: justify;
}

@media (max-width: 768px) {

    .advantages {
        padding: 20px;
        margin-top: -35px;
    }

    .advantages-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 20px;
        text-align: center;
        position: relative;
    }

    .adv-item {
        max-width: 110px;
        padding: 0 5px;
        position: relative;
    }

    .adv-icon {
        width: 56px;
        height: 66px;
        margin: 0 auto 15px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .adv-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .adv-title {
        font-size: 9px;
        margin-bottom: 10px;
        font-family: 'Montserrat Medium', sans-serif;
        text-align: center;
        line-height: 1.2;
    }

    .adv-text {
        font-size: 7px;
        line-height: 1.3;
        font-family: 'Montserrat Light', sans-serif;
        margin: 0 auto;
        text-align: justify;
    }

    .adv-item:last-child .adv-text {
        text-align: justify;
    }

    .adv-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 5px;
        bottom: 5px;
        right: -10px;
        width: 3px;
        background: linear-gradient(
            to bottom,
            rgba(22, 138, 173, 0) 0%,
            rgba(22, 138, 173, 1) 50%,
            rgba(22, 138, 173, 0) 100%
        );
    }
}

.services {
    padding: 35px 120px;
}

.services-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
    color: #168AAD;
    font-family: 'Montserrat Bold', sans-serif;
}

.services-wrapper {
    display: grid;
    grid-template-columns: 300px 300px 300px 1fr;
    gap: 20px;
    align-items: start;
}

.service-card {
    width: 300px;
    height: 300px;
}

.service-card button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.services-text {
    font-size: 17px;
    line-height: 1.3;
    font-family: 'Montserrat Light', sans-serif;
    color: #333;
    text-align: justify;
    padding-top: 10px;
}

.popup {
    position: fixed;
    inset: 0;
    display: none; /* скрыт по умолчанию */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 40px 20px;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}

.popup-content {
    position: relative;
    background: #fff;
    max-width: 1000px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 35px;
    padding: 40px 45px;
    z-index: 2;
    animation: popupShow 0.35s ease;
}

@keyframes popupShow {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.popup-close img {
    width: 26px;
    height: 26px;
}

.popup-title {
    text-align: center;
    font-size: 40px;
    color: black;
    margin-bottom: 25px;
    font-family: "Montserrat Medium", sans-serif;
}

.popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-list li {
    font-size: 20px;
    margin-bottom: 18px;
    font-family: "Montserrat Light", sans-serif;
}

.popup-list li strong {
    font-size: 20px;
    font-family: "Montserrat Medium", sans-serif;
    color: black;
}

@media (max-width: 768px) {
    .services {
        padding: 20px 0;
        margin-top: -35px;
    }

    .services-title {
        font-size: 10px;
        margin-bottom: 14px;
    }

    .services-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 110px);
        justify-content: center;
        gap: 10px;
    }

    .service-card {
        width: 110px;
        height: 110px;
        border-radius: 10px;
        overflow: hidden;
    }

    .service-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

    .service-card span {
        display: block;
        text-align: center;
        font-size: 10px;
        color: #333;
    }

    .services-text {
        font-size: 10px;
        line-height: 1.4;
        text-align: justify;
        padding: 0 0; 
        width: 100%;       
        grid-column: 1 / -1;
    }

    .popup-content {
    font-size: 15px;
    padding: 15px;
  }

  .popup-title{
    font-size: 15px;
    margin-bottom: 12px;
  }

  .popup-list{
    font-size: 15px;
    line-height: 1.3;
    gap: 6px;
  }

  .popup-list li{
    font-size: 10px;
    line-height: 1.3;
  }

  .popup-list li strong{
    font-size: 10px;
  }

  .popup-close img{
    width: 14px;
    height: 14px;
  }
}

.masters {
    padding: 35px 0;
}

.masters .container {
    padding: 0 95px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    box-sizing: border-box;
}

.masters-text {
    max-width: 360px;
    flex: 0 0 auto;
}

.masters-text h2 {
    font-family: 'Montserrat Bold', sans-serif;
    font-size: 40px;
    margin-bottom: 20px;
    color: #168AAD;
}

.masters-text p {
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.masters-cards {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex: 1 1 auto;
}

.master-card {
    width: 270px;
    flex: 0 0 270px;
    border-radius: 20px;
    overflow: hidden;
    display: block;
}

.master-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}

@media (max-width: 768px) {

    .masters {
        padding: 0px 15px;
    }

    .masters .container {
        display: block;
        padding: 0 15px;
    }

    .masters-text {
        text-align: center;
        margin-bottom: 15px;
    }

    .masters-text h2 {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .masters-text p {
        font-size: 10px;
        line-height: 1.4;
        text-align: justify;
        padding: 0;
    }

    .masters-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        justify-items: center;
    }

    .master-card {
        width: 110px;
        height: 160px;
    }

    .master-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }
}

.about {
    padding: 35px 120px;
}

.about-title {
    text-align: right;
    font-size: 40px;
    font-family: 'Montserrat Bold';
    color: #168AAD;
    margin-bottom: 30px;
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-cards {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.about-card {
    width: 200px;
    height: 200px;
    border-radius: 25px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    box-shadow: 0 0 30px rgba(22, 138, 173, 0.5);
}

.about-card p {
    font-size: 20px;
    font-family: 'Montserrat Medium', sans-serif;
    color: #168AAD;
    line-height: 1.3;
}

.about-text {
    max-width: 820px;
    font-size: 20px;
    line-height: 1.55;
    font-family: 'Montserrat Light';
    color: #333;
    text-align: justify;
}

@media (max-width: 768px) {
    .about {
        padding: 20px 30px;
    }

    .about-title {
        text-align: center;
        font-size: 12px;
        margin-bottom: 20px;
    }

    .about-wrapper {
        display: block;
    }

    .about-cards {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }

    .about-card {
        width: 130px;
        height: 100px;
        border-radius: 15px;
        box-shadow: 0 0 12px rgba(22, 138, 173, 0.6);
    }

    .about-card p {
        font-size: 14px;
        line-height: 1.2;
    }

    .about-text {
        font-size: 10px;
        line-height: 1.4;
        text-align: justify;
    }
}

.contacts {
    padding: 35px 120px;
}

.contacts-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.contacts-map img {
    width: 600px;
    height: auto;
    border-radius: 25px;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 25px rgba(22, 138, 173, 0.3);
}

.contacts-info {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contacts-info h2 {
    font-size: 40px;
    font-family: 'Montserrat Bold';
    color: #168AAD;
    text-align: right;
    margin-bottom: 5px;
}

.contacts-desc {
    font-size: 20px;
    line-height: 1.5;
    font-family: 'Montserrat Light';
    color: #333;
    text-align: justify;
}

.contacts-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contacts-item svg {
    flex-shrink: 0;
}

.contacts-item span {
    font-size: 20px;
    font-family: 'Montserrat Light';
    color: black;
}

.contacts-socials {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.contacts-socials img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform .2s ease;
}

.contacts-socials img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {

    .contacts {
        position: relative;
        padding: 0 0 0 0;
    }

    .contacts-wrapper {
        display: block;
        padding: 0 15px;
    }

    .contacts-info h2 {
        text-align: center;
        font-size: 16px;
        margin: 0 0 0 0;
    }

    .contacts-map img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        display: block;
        margin-bottom: 15px;
    }

    .contacts-desc {
        font-size: 12px;
        line-height: 1.4;
        text-align: justify;
        margin-bottom: 10px;
    }

    .contacts-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 5px;
    }

    .contacts-item svg {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .contacts-item span {
        font-size: 12px;
        line-height: 1.3;
        text-decoration: none;
    }

    .contacts-socials {
        position: absolute;
        right: 20px;
        bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .contacts-socials img {
        width: 48px;
        height: 48px;
    }
}
