@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&family=Raleway&display=swap');

:root {
    --play-state: running;
}

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

@keyframes fast-rise {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes medium-rise {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes long-rise {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    75% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes back-rise {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes border-rise {

    0% {
        border-bottom: 2px solid rgba(0, 0, 0, .01);
    }

    100% {
        border-bottom: 2px solid rgba(0, 0, 0);
    }
}

@keyframes border-hide {

    0% {
        border-bottom: 2px solid rgba(0, 0, 0);
    }

    100% {
        border-bottom: 2px solid rgba(0, 0, 0, .01);
    }
}

.first-wave-rise-1s {
    animation: fast-rise 1s;
}

.first-wave-rise-1-3s {
    animation: fast-rise 1.3s var(--play-state);
}

.first-wave-rise-1-6s {
    animation: fast-rise 1.6s var(--play-state);
}

.first-wave-rise-1-9s {
    animation: fast-rise 1.9s var(--play-state);
}

.first-wave-rise-2-2s {
    animation: fast-rise 2.2s var(--play-state);
}

.first-wave-rise-2-5s {
    animation: fast-rise 2.5s var(--play-state);
}

.first-wave-rise-2-8s {
    animation: fast-rise 2.8s var(--play-state);
}

.rise-img {
    animation: fast-rise 1s var(--play-state);
}

.rise-nav {
    animation: long-rise 3s var(--play-state);
}

.rise-h {
    animation: fast-rise 1.2s var(--play-state);
}

.rise-p {
    animation: long-rise 2s var(--play-state);
}

body.loading {
    animation-play-state: paused;
}

body.loaded {
    animation-play-state: var(--play-state);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F6F5F1;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    font-family: 'Raleway', sans-serif;
}

h1 {
    font-family: 'Playfair Display';
}

h2 {
    font-family: 'Playfair Display';
}

a {
    text-decoration: none;
    color: black;
}

a:visited {
    text-decoration: none;
    color: black;
}

.raleway {
    font-family: 'Raleway', sans-serif;
}

nav {
    text-align: center;
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 50px;
    padding: 0 16px;

}

.logo {
    width: 100px;
}

nav {
    text-align: center;
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 50px;

}

.logo {
    width: 100px;
}

.ul-nav {
    display: inline-flex;
    list-style-type: none;
    align-items: center;
    flex-flow: row nowrap;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ul-nav>li {
    margin: 10px;
    width: 20%;
    padding-top: 35px;
}

.ul-nav>li>a:hover {
    animation: border-rise 1s;
    animation-fill-mode: forwards;
    padding-top: 37px;
}

.ul-nav>li:first-child {
    margin: 10px 10% 10px 10px;
    padding-top: 0;
}

.ul-nav li:nth-child(2) {
    width: 267px;
}

.center {
    text-align: center;
    font-size: 40px;
    margin: 55px;
}

main {
    width: min(1200px, calc(100% - 48px));
    margin: auto;
}

.main-picture {
    text-align: center;
    margin-bottom: 50px;
}

.main-picture>img {
    width: 100%;
    max-width: 1200px;

}

.main-text {
    display: inline-flex;
    flex-flow: row nowrap;
    width: 100%;
    gap: 32px;
    align-items: center;
    margin-bottom: 50px;
}

.main-text>img {
    width: 600px;
    display: inline-block;
    margin-right: 50px;
}

.main-text>div {
    display: inline-block;
}

.main-text>div>h1 {
    padding-bottom: 10px;
    font-size: 40px;
}

.main-text>div>p,
.text {
    font-size: 24px;
}

.whatwedo {
    display: inline-flex;
    flex-flow: column nowrap;
    max-width: 1200px;
}

.whatwedo>h1 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 40px;
}

.wedo {
    display: inline-flex;
    flex-flow: row wrap;
    gap: 20px;
}

.wedo>div {
    display: inline-flex;
    flex-flow: column nowrap;
    width: 380px;
    margin-bottom: 20px;
    margin-right: 0;
    flex: 1 1 320px;
}

.wedo-h1,
.icon {
    text-align: center;
    margin-bottom: 5px;
}

.icon {
    font-size: 30px;
}

.wedo-h1 {
    font-size: 24px;
}

.wedo-p {
    font-size: 20px;
}

.whywe {
    display: inline-flex;
    flex-flow: column nowrap;
    width: 1200px;
}

.grey {
    background-color: #D9D9D9;
}

.whywe>h1 {
    text-align: center;
    font-size: 40px;
    padding: 20px;
}

.whywe>div,
.summer-how,
.coutries-cont>div {
    display: inline-flex;
    flex-flow: row wrap;
    width: 100%;
}

.coutries-cont>div>div>img {
    width: 290px;
}

.coutries-cont>div>div>h3 {
    text-align: center;
    margin: 20px;
}

.cc-img {
    margin: 5px;
}

.whywe>div>div,
.summer-how>div,
.summer-how-add {
    width: 550px;
    padding: 17px;
    margin-right: 0;
    margin-bottom: 20px;
    flex: 1 1 320px;
}

.cont-how-add {
    display: flex;
    justify-content: space-evenly;
}

.whywe>div>div>p,
.summer-how>div>p,
.summer-how-add>p {
    font-size: 20px;
}

.partners {
    text-align: center;
    margin-bottom: 30px;
}

.partners>h1 {
    font-size: 40px;
    padding: 20px;
}

.imgs>img {
    height: 50px;
    padding: 0;
}

.imgs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

footer {
    display: inline-flex;
    flex-flow: row nowrap;
    justify-content: center;
    width: 100%;
    background-color: black;
    color: aliceblue;
}

footer>div {
    width: 400px;
    padding: 20px;
}

footer>div>h1 {
    font-size: 26px;
    padding: 10px;
}

footer>div>h2 {
    padding: 10px;
    font-size: 18px;
    text-align: left;
}

footer>div>p {
    padding: 5px;
}

footer>div:nth-child(2)>h2>a {
    color: aliceblue;
}

footer>div:nth-child(2)>h2>a:hover {
    color: aliceblue;
    cursor: pointer;
}

footer>div:nth-child(2)>h2>a:visited {
    color: aliceblue;
    cursor: pointer;
}

.call-back-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.call-back-button:hover {
    background-color: #3e8e41;
}

/* Скрытие модального окна при загрузке страницы */
.modal-container {
    display: none;
}

/* Тусклый фон при открытии модального окна */
.call-back-button:active {
    opacity: 0.5;
}

.modal-container {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    margin: 10% auto;
    padding: 30px;
    max-width: 500px;
    width: 90%;
}

.modal-close {
    background: transparent;
    border: none;
    color: #000;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.modal-close:hover {
    color: #888;
}

h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
textarea {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    margin-bottom: 20px;
}

button[type="submit"] {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #FF6B6B;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

button[type="submit"]:hover {
    background-color: #F54747;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-close:disabled,
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

table {
    border-collapse: collapse;
    width: 100%;
    border-spacing: 0;
    margin-top: 50px;
    margin-bottom: 50px;
}

td,
th {
    border: 1px solid #4e4e4e;
    padding: 4px;
    font-family: 'Raleway', sans-serif;
}

.bigp {
    font-size: 30px;
    text-align: center;
}

.abzats {
    padding-left: 30px;
}

.summer-about {
    font-size: 24px;
    background-color: #c8e0ba;
    padding: 20px;
    border-radius: 40px;
}

.green {
    background-color: #c8e0ba;
    border-radius: 20px;
    margin: 1px;
}

.big-green {
    padding: 20px;
    font-size: 20px;
    margin-top: 20px;
}

.big-green:last-child {
    margin-bottom: 20px;
}

#open-menu {
    display: none;
}

.comp-name {
    display: none;
}

.mob {
    display: none;
}

.pc {
    display: block;
}


@media screen and (max-width: 767px) {
    main {
        width: calc(100% - 24px);
    }

    .center {
        font-size: 30px;
        margin: 28px 0 20px;
    }

    .ul-nav {
        display: none;
    }

    .comp-name {
        display: block;
        max-width: calc(100% - 92px);
        padding: 12px 14px;
        background-color: white;
        border: 1px solid antiquewhite;
        border-radius: 20px;
    }

    #open-menu {
        display: block;
        position: fixed;
        right: 12px;
        top: 16px;
        width: 52px;
        height: 52px;
        background-color: antiquewhite;
        border: 0px solid black;
        border-radius: 10px;
        z-index: 1001;
    }

    #open-menu:active {
        background-color: rgb(226, 210, 190);
    }

    .Visible {
        display: flex !important;
    }

    .Invisible {
        display: none !important;
        opacity: 0;
    }

    nav {
        position: sticky;
        top: 0;
        min-height: 84px;
        margin-bottom: 24px;
        padding: 16px 12px 0;
        background-color: #F6F5F1;
        z-index: 1000;
    }

    nav>h4 {
        position: fixed;
        left: 12px;
        top: 22px;
        max-width: calc(100% - 92px);
    }

    .ul-nav {
        margin-top: 0;
        flex-flow: column nowrap;
        opacity: 1;
        transition: opacity 1s;
    }

    .ul-nav.Visible {
        position: fixed;
        top: 84px;
        left: 12px;
        right: 12px;
        padding: 16px;
        align-items: stretch;
        gap: 6px;
        background-color: rgba(246, 245, 241, 0.98);
        border: 1px solid #ddd3c6;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }

    .ul-nav>li {
        width: 100%;
        margin: 0;
        padding-top: 0;
    }

    .ul-nav>li:first-child,
    .ul-nav li:nth-child(2) {
        width: 100%;
        margin: 0;
    }

    .ul-nav>li>a {
        display: block;
        padding: 10px 12px;
        background-color: white;
        border-radius: 12px;
    }

    .ul-nav>li>a:hover {
        animation: none;
        padding-top: 10px;
    }

    .nav-logo {
        display: none;
    }

    .main-picture>img {
        width: 100%;

    }

    .main-text {
        width: 100%;
        margin-bottom: 50px;
    }

    .whywe,
    .summer-how,
    .whatwedo,
    .whywe>div,
    .coutries-cont>div {
        width: 100%;
    }

    .wedo {
        justify-content: center;
        gap: 16px;
    }

    .wedo>div {
        width: 100%;
        margin: 0;
        padding: 0 4px;
    }
    
    .summer-how>div {
        width: 100%;
        margin: 0 0 16px;
    }

    .coutries-cont>div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        overflow-x: visible;
        white-space: normal;
        width: 100%;
    }

    .cc-img {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .main-picture>img {
        max-width: 100%;
    }

    .main-text {
        display: block;
        width: 100%;
        margin-bottom: 30px;
    }

    .main-text>img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .main-text>div {
        width: 100%;
    }

    .main-text>div>h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .main-text>div>p,
    .text {
        font-size: 18px;
    }

    .whatwedo>h1,
    .whywe>h1,
    .partners>h1 {
        font-size: 30px;
        margin-bottom: 24px;
        padding: 12px 0;
    }

    .wedo-p,
    .whywe>div>div>p,
    .summer-how>div>p,
    .summer-how-add>p,
    .summer-about,
    .big-green,
    .bigp {
        font-size: 18px;
    }

    .whywe>div>div,
    .summer-how>div,
    .summer-how-add,
    .big-green {
        width: 100%;
        flex: 1 1 100%;
        margin-bottom: 16px;
        padding: 16px;
    }

    .cont-how-add {
        flex-direction: column;
        gap: 16px;
    }

    .summer-about {
        padding: 18px;
        border-radius: 24px;
    }

    .abzats {
        padding-left: 0;
    }

    .coutries-cont>div>div>img {
        width: 100%;
        border-radius: 16px;
    }

    .coutries-cont>div>div>h3 {
        margin: 12px 8px 0;
        font-size: 16px;
    }

    .imgs {
        gap: 12px;
    }

    .imgs>img {
        width: calc(50% - 6px);
        max-width: 140px;
        height: auto;
    }

    footer {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    footer>div {
        width: 100%;
        padding: 12px 0;
        text-align: center;
    }

    footer>div>h1 {
        font-size: 22px;
        padding: 5px;
    }

    footer>div>h2 {
        padding: 5px;
        font-size: 16px;
        text-align: center;
    }

    footer>div>p {
        padding: 5px;
        font-size: 16px;
    }

    footer>div:nth-child(2)>h2>a {
        font-size: 18px;
    }

    .call-back-button {
        width: 100%;
        max-width: 320px;
    }

    .modal-container {
        padding: 12px;
    }

    .modal-content {
        width: 100%;
        margin: 24px auto;
        padding: 44px 18px 20px;
    }

    .modal-close {
        top: 8px;
        right: 12px;
    }

    button[type="submit"] {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -12px;
        padding: 0 12px 8px;
    }

    table {
        display: block;
        width: auto;
        min-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .mob-pad {
        padding: 8px 0;
    }

    .mob {
        display: block;
    }

    .pc {
        display: none;
    }

}
