:root {
  --main_bg_color:      #ccfff7; /**/
  --main_font_color:    #00221d; /**/
  --invert_bg_color:    #7fb3d5; /**/
  --invert_font_color:  #154360; /**/
  --active-item-color:  #7d6608; /**/
  --dark_bg_color:      #004439;
  --link_color:         #FFDEAD; /*NavajoWhite*/
  --link_hover_color:   #aed6f1; /**/
  --phone_color:        #f5b041; /**/
  --phone_hover_color:  #fdebd0; /**/
  --header-color:       #FFEFD5; /**/
  --footer-color:       #1f588d; /**/
  --form-color:         #1f588d; /**/
  --form-button-color:  greenyellow; /**/
  --primary_font_family:    Helvetica, sans-serif;
  --secondary_font_family:  Optima, sans-serif;
  --phones_font_family:     Optima, sans-serif;
  --radius: 15px;
  --button_radius: 10px;
  --font_size_desktop: 20px;
  --font_size_desktop_small: 14px;
  --font_size_mobile: 40px;
  --font_size_title_desktop: 40px;
  --font_size_title_mobile: 80px;
  --font_services_size_desktop: 26px;
  --font_services_size_mobile: 40px;
  --font_size_menu_mobile: 60px;
  --color_services_main: #00ccac;
  --color_services_hover: #007764;
  --color_menu_bg: #44bba8;
  --color_menu_bg_invert: #669991;

}

* {
  margin: 0;
  box-sizing: border-box;
}

body {
    background-color: var(--main_bg_color);
    background-image: url('../img/background_01.jpg');
    /*width: 100%;*/
    /*background-repeat: no-repeat;*/
    /*background-size: cover;*/
    /*background-position: center;*/
    color: var(--main_font_color);
    font-family: var(--secondary_font_family);
    font-size: var(--font_size_desktop);
}

a {
    color: var(--link_color);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: var(--link_hover_color);
}

/* ------------------------------------------------------- */
/* ------------- ссылка - иконка с текстом --------------- */
/* ------------------------------------------------------- */
.link-icon-txt {
    display: flex;
    align-items: center;
    height: 100%;
}

.link-icon-txt img{
    display: inline-block;
    height: 100%;
    margin: 0 5px;
}

.link-icon-txt div{
    display: inline-block;
    margin: auto 5px;
}

/* ------------------------------------------------------- */
/* ----------------------- header -------------------------*/
/* ------------------------------------------------------- */

.header-title-wrapper {
    background-image: url("../img/main_line.jpeg");
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-top-wrapper  {
    width: 100%;
    background-color: var(--main_font_color);
}

.header-top  {
    display: flex;
    justify-content: space-around;
    height: 50px;
    width: 1600px;
    margin: auto;
    font-size: var(--font_size_desktop);
}

.header-top-item{
    display: inline-block;
    margin: auto 10px;
    height: 80%;
    padding: 5px 10px;
    border-radius: var(--radius);
    color: var(--link_color);
    text-align: center;
    font-family:  var(--primary_font_family);
    font-size: 18px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2); /* Затемнение фона */
}

.header-main  {
    display: flex;
    justify-content: space-between;
    height: 100px;
    width: 1600px;
    margin: 0px auto 0px auto;
    background: var(--dark_bg_color);
    box-shadow: 7px 7px 25px rgba(0,0,0,0.6); /* Тень */
    border-radius: 60px;
    position: fixed; /* Фиксированное позиционирование */
    top: 50px;    /* 20px от низа */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;   /* Поверх всех элементов */
}

.header-menu {
    display: flex;
    justify-content: space-around;
    width: 90%;
    margin: 0px auto 10px auto;
    }

.header-menu-item{
    margin: 0px auto;
    padding: 20px 10px 0px 10px;
    color: var(--link_color);
    text-align: center;
    text-decoration: none;
    font-family:  var(--primary_font_family);
    font-size: 22px;
    cursor: pointer;
}

.header-menu-item:hover {
    color: var(--link_hover_color);
    border-bottom: 5px solid var(--link_hover_color);
}


.header-logo {
    text-align: center;
    height: 100%;
    margin: 0px 0px 0px 10px;
}

.header-logo img {
    height: 100%;
}

.header-title  {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 230px;
    width: 1600px;
    margin: 100px auto 0px auto;
    font-size: var(--font_size_menu_mobile);
    color: var(--link_color);
    font-weight: bold;
    text-shadow: -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
}

.header-title  p {
    text-align: center;
}

.header-title-mobile {
    position: relative;
    display: none;
    height: 100%;
    margin: 0px 100px 0px 0px;
    font-size: var(--font_size_menu_mobile);
    color: var(--link_color);
    font-weight: bold;
}



*/
/* -------------- */
/* Гамбургер-меню */
/* -------------- */
.header-hamburger-menu {
    position: relative;
    display: none;
    width: 85%;
    height: 100%;
    margin: 0px 60px 0px 0px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin: auto 10px auto 0px;
    padding: 15px;
    /*display: flex;*/
    flex-direction: column;
    justify-content: space-between;
    width: 80px;
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.hamburger-btn:hover {
    background-color: #e0e0e0;
}

/* Три полоски */
.bar {
    height: 4px;
    width: 100%;
    background-color: black;
    border-radius: 2px;
    transition: 0.3s;
}

/* Анимация кнопки при открытии (превращения в крестик)*/
.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

/* Выпадающее меню */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color_menu_bg);
    width: 100%;
    border-radius: 4px;
    z-index: 100;
}

/* Показываем меню */
.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.6s;
}

/* Стили пунктов меню */
.header-hamburger-menu-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--main_font_color);
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
    font-size: var(--font_size_desktop);
}

.dropdown-menu a:hover {
    background: var(--color_menu_bg_invert);
    color: #332b00;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* -------------- */
/* - Меню  связь -*/
/* -------------- */

/* Основной контейнер */
.contact-menu {
    position: fixed; /* Фиксированное позиционирование */
    bottom: 20px;    /* 20px от низа */
    right: 20px;     /* 20px справа */
    z-index: 1000;   /* Поверх всех элементов */
}

/* Главная круглая кнопка */
.contact-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    width: 60px;
    height: 60px;
}

.contact-btn:hover {
    transform: scale(1.3);
}

.contact-btn:active {
    transform: scale(0.95);
}

/* Выпадающее меню */
.contact-menu-list {
    position: absolute;
    bottom: 70px; /* Выше кнопки */
    right: 0;
    min-width: 200px;
    padding: 10px 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    background: transparent;
}

/* Показываем меню */
.contact-menu-list.show {
    visibility: visible;
    transform: translateY(0);
}

/* Элементы меню */
.contact-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    background: var(--color_menu_bg_invert);
    border-radius: 30px;
    margin: 10px 0px 0px 0px;
    transition: background 0.2s;
    height: 60px;
}

.contact-menu-item:hover {
    background: var(--color_menu_bg);
    color: var(--main_font_color);
}


/* кнопка "ВВЕРХ сайта" */
.btn-up {
    position: fixed;
    background: var(--color_menu_bg_invert);
    right: 20px;
    bottom: 50%;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.btn-up::before {
    content: "";
    width: 80%;
    height: 80%;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
    background-image: url("../img/UpArrowAlt.svg");
}

.btn-up_hide {
    display: none;
}

/* ------------------------------------------------------- */
/* ----------------------- content ------------------------*/
/* ------------------------------------------------------- */
.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 250px auto 20px auto;
    padding: 0px 0px 0px 0px;
    width: 100%;
    font-size: var(--font_size_title_desktop);
    font-weight: bold;
}

.advantages {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 1600px;
    margin: 10px auto 10px auto;
}

.advantages-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-align: center;
    box-shadow: 7px 7px 25px rgba(0,0,0,0.6); /* Тень */
    border-radius: var(--radius);
    width: 300px;
    height: 300px;
    margin: 60px 10px 20px 10px;
    padding: 20px 20px 10px 20px;
    transition: background 0.3s linear;
    font-size: var(--font_size_desktop);
    background: var(--main_bg_color);
}

.advantages-item:hover {
    background: var(--color_services_main);
}

.advantages-item img {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
}


.services {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 1600px;
    margin: 10px auto 10px auto;
}

.services-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-align: center;
    background: var(--color_services_main);
    box-shadow: 7px 7px 25px rgba(0,0,0,0.6); /* Тень */
    width: 400px;
    height: 300px;
    margin: 80px 10px 20px 10px;
    padding: 20px 20px 10px 20px;
    border-radius: 0px 30px 30px 30px;
    font-size: var(--font_services_size_desktop);
    transition: all 0.3s linear;
}

.services-item:hover {
    background: var(--color_services_hover);
    transform: scale(1.2);
}

.services-item-img {
    position: absolute;
    width: 120px;
    height: 120px;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1.0;
}

.request {
    display: flex;
    justify-content: space-around;
    width: 1600px;
    margin: 10px auto 10px auto;
}

.request-info-wrapper {
    flex: 1 1 0%
}

.request-info-title {
    text-align: center;
    font-size: var(--font_services_size_desktop);
    font-weight: bold;
    margin: 20px 0px 20px 0px;
}

.request-info-text {
    text-align: center;
    font-size: var(--font_services_size_desktop);
    margin: 10px 20px 10px 20px;
}

.request-info-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    background: var(--color_services_main);
    border-radius: 30px;
    width: 80%;
    margin: 10px auto 0px auto;
    transition: background 0.2s;
    height: 50px;
    color: var(--main_font_color);
}

.request-info-link:hover {
    background: var(--color_services_hover);
}

.request-form-wrapper {
    flex: 1 1 0%
}

.request-form {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 20px auto 20px auto;
}

.name, .telephone, .message, .form-button {
    height: 60px;
    border-radius: 30px;
    border: 2px solid var(--color_services_main);
    padding: 10px 30px 10px 30px;
    font-size: var(--font_services_size_desktop);
    margin: 10px 0px 10px 0px;
}

.message {
    height: 240px;
}

.form-button {
    width: 80%;
    margin: 10px auto 10px auto;
    background: var(--color_services_main);
}

.form-button:hover {
    background: var(--color_services_hover);
    transform: scale(1.1);
    cursor: pointer;
}

.alert-success {
    color: blue;
}

.alert-error {
    color: red;
}

.capture {
    display: flex;
    justify-content: center;
    margin: 0px auto 0px auto;
    height: 50px;
}

.capture-label {
 }

.capture-refresh {
    height: 100%;
}

.capture-refresh img{
    height: 100%;
}

.capture-img {
    height: 100%;
}

.capture-img img{
    height: 100%;
}

.capture-input {
    width: 30%;
    height: 100%;
}

.capture-input input{
    height: 100%;
    width: 100%;

    border-radius: 10px;
    text-align: center;
    padding: 10px auto 10px auto;
    font-size: var(--font_services_size_desktop);
    margin: 0px 0px 0px 0px;
    border: 2px solid var(--color_services_main);
}

/* ------------------------------------------------------- */
/* ----------------------- footer -------------------------*/
/* ------------------------------------------------------- */
.footer-wrapper {
    width: 100%;
    background: var(--dark_bg_color);
}

.footer {
    display: flex;
    flex-wrap: wrap;
    width: 1600px;
    padding: 10px 10px 10px 10px;
    margin: 10px auto 0px auto;
}

.footer-block {
    min-width: 300px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
}

.footer-text {
    color: var(--link_color);
    margin: 5px 5px 5px 5px;
}

.footer-link-txt {
    color: var(--link_color);
    margin: 5px 5px 5px 5px;
    cursor: pointer;
}


.footer-link-txt:hover {
    color: var(--link_hover_color);
}

.footer-link-block {
    display: flex;
    flex-wrap: wrap;
    margin: 5px 5px 5px 5px;
}

.footer-link-img {
    width: 30px;
    height: 30px;
    margin: 5px 10px 5px 10px;
}

.footer-link-img img{
    width: 100%;
}

.footer-bottom-wrapper {
    width: 100%;
    background: black;
    color: whitesmoke;
}

.footer-bottom {
    width: 1600px;
    margin: 0px auto 0px auto;
    padding: 5px 20px 15px 0px;
    text-align: left;
}


/* ------------------------------------------------------- */
/* ---------------------- adaptive ------------------------*/
/* ------------------------------------------------------- */

@media (max-width: 1600px) {
    .header-top, .header-main, .header-title, .services, .advantages, .request, .footer, .footer-bottom {
        width: 1200px;
    }
}

@media (max-width: 1200px) {
    .header-top, .header-main, .header-title, .services, .advantages, .request, .footer, .footer-bottom {
        width: 1000px;
    }

    .header-top .link-icon-txt  {
        font-size: var(--font_size_desktop_small);
    }
}

@media (max-width: 1000px) {
    .header-top, .header-main, .header-title, .services, .advantages, .request, .footer, .footer-bottom {
        width: 768px;
    }

    .header-top  {
        height: 30px;
    }
    
    .header-top-item  {
        font-size: 14px;
    }

    .header-menu {
        display: none;
    }

    .header-hamburger-menu {
        display: flex;
        justify-content: end;
    }
}

@media (max-width: 768px) {
    .header-main, .header-title, .services, .advantages, .request, .footer, .footer-bottom {
        width: 100%;
    }

    .header-top  {
        display: none;
    }

    .header-menu {
        display: none;
    }

    .services-item {
        width: 80%;
    }

}


/* Стили для мобильных устройств */
/* Комплексный медиа-запрос для мобильных */
/*@media (max-width: 767px) and (orientation: portrait), 
       (max-width: 1023px) and (orientation: landscape) and (max-height: 767px) {*/
@media (orientation: portrait) {
    .header-title, .services, .advantages, .request, .footer, .footer-bottom {
        width: 100%;
    }

    .header-top  {
        display: none;
    }

    .header-main  {
        width: 90%;
        height: 200px;
        border-radius: 100px;
    }

    .header-menu {
        display: none;
    }


    .header-title-wrapper {
        height: 800px;
    }

    .header-title  {
        height: 600px;
        font-size: 80px;
    }

    .section-title {
        font-size: var(--font_size_title_mobile);
    }

    .header-title-mobile {
        display: flex;
        align-items: center;
    }

    .header-hamburger-menu {
        display: flex;
        justify-content: end;
        padding: 0px 60px 0px 0px;;
    }

    .hamburger-btn {
        display: flex;
    }

    .header-hamburger-menu-item {
        font-size: var(--font_size_menu_mobile);
        padding: 30px 10px 30px 50px;
    }

    .contact-menu {
        bottom: 40px;    /* 20px от низа */
        right: 40px;     /* 20px справа */
    }

    /* Главная круглая кнопка */
    .contact-btn {
        width: 200px;
        height: 200px;
    }

    /* Выпадающее меню */
    .contact-menu-list {
        bottom: 220px; /* Выше кнопки */
    }

    /* Элементы меню */
    .contact-menu-item {
        height: 100px;
        margin: 20px 0px 0px 0px;
    }
    .services-item {
        width: 80%;
        font-size: var(--font_services_size_mobile);
    }

    .advantages-item {
        font-size: var(--font_size_mobile);
        width: 80%;
    }

    .advantages-item img {
        width: 80px;
        height: 80px;
        bottom: 40px;
        right: 40px;
    }

    .link-icon-txt {
        font-size: var(--font_size_menu_mobile);
    }

    .footer  {
        width: 100%;
        flex-direction: column;
        font-size: var(--font_size_mobile);
    }

    .footer-link-txt {
        margin: 20px 5px 20px 5px;
    }

    .footer-link-img {
        width: 100px;
        height: 100px;
        margin: 10px 30px 50px 30px;
    }

    .footer-bottom {
        padding: 15px 20px 40px 0px;
        width: 100%;
        font-size: var(--font_size_mobile);
    }

    .request {
        flex-direction: column;
    }

    .request-info-link {
        height: 100px;
        margin: 20px auto 0px auto;
    }

    .request-info-link .link-icon-txt {
        font-size: var(--font_size_mobile);
    }

    .request-info-text {
        font-size: var(--font_size_mobile);
    }

    .request-info-title {
        font-size: var(--font_size_mobile);
    }

    .btn-up {
        width: 100px;
        height: 100px;
    }

    .name, .telephone, .message, .form-button {
        height: 120px;
        border-radius: 60px;
        padding: 20px 50px 20px 50px;
        font-size: var(--font_size_menu_mobile);
        margin: 20px 0px 20px 0px;
    }

    .message {
        height: 400px;
    }

    .form-button {
        width: 100%;
    }

    .capture {
        height: 120px;
    }

    .capture-input {
        width: 50%;
    }
    .capture-input input{
        border-radius: 20px;
        padding: 20px auto 20px auto;
        font-size: var(--font_size_menu_mobile);
    }
}

