*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'PT Sans', sans-serif;
    color: #31405B;
}
input {
    font-family: 'PT Sans', sans-serif;    
}
label {
    cursor: pointer;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.container {
    width: 1170px;
    margin: 0 auto;
}


.none {
    display: none;
}

.bgcolor {
    background-color: #F2F8F6;
}

.main-header {
    font-weight: bold;
    font-size: 54px;
    color: #31405B;
}

.inner-page {
    padding-top: 60px;
    padding-bottom: 100px;
}

.button {
    display: inline-block;
    height: 50px;
    box-shadow: 0px 8px 20px rgba(24, 219, 148, 0.35);
    padding-left: 40px;
    padding-right: 40px;
    background-color: #0AC883;
    border-radius: 50px;
    border: none;
    font-size: 20px;
    font-weight: bold;
    line-height: 50px;
    text-align: center;
    color: #FFF;
    text-decoration: none;
    cursor: pointer;
}


/* Header  */

.header {
    position: relative;
    height: 800px;
    padding-top: 50px;
    background-color: #265847;
    color: #FFFFFF;
    background-image: url('./../img/header/header1.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100px;
    background-color: #265847;
    background-image: url('./../img/header/header-tour.jpg');
    background-position: center;
    background-size: cover;
    color: #FFFFFF;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 1170px;
}

.logo {
    font-family: 'Lobster', cursive;
    font-weight: normal;
    font-size: 40px;
}

.header-nav {
    font-size: 22px;
}

.header-nav-list {
    display: flex;
}

.header-nav-list-item {
    margin-right: 50px;
}

.header-nav-list-item:last-child {
    margin-right: 0;
}

.header-nav-link {
    color: #FFFFFF;
    text-decoration: none;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1170px;
    text-align: center;
}

.header-title {
    margin-bottom: 20px;
    font-size: 60px;
}

.header-content p {
    font-size: 24px;
}

.header-scroll {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding-bottom: 34px;
    font-size: 16px;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
}

.header-scroll::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-image: url(../img/header/5.svg);
}

/* Main */

.main {
    padding-top: 120px;
    padding-bottom: 120px;
}

.main-row {
    margin-bottom: 120px;
    display: flex;
    justify-content: space-between;
}

.main-row:last-child {
    margin-bottom: 0;
}

.main-row:nth-child(even) {
    flex-direction: row-reverse;
}

.main-content {
    width: 470px;
}

.main-content-header {
    margin-bottom: 20px;
}

.main-content-text {
    margin-bottom: 40px;
    font-size: 20px;
    line-height: 1.6;
    color: #31405B;
}

.main-content-text a {
    color: #138ECE;
}

.main-content-text p {
    margin-top: 0;
    margin-bottom: 15px;
}

.main-img {
    width: 570px;
}

/* footer */

.footer {
    padding-top: 70px;
    padding-bottom: 90px;
    background-color: #265847;
    color: #FFF;
}

.footer a {
    color: #FFF;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-row {
    display: flex;
    justify-content: space-between;
}

.footer-widgets-wrapper {
    display: flex;
    padding-top: 10px;
}

.footer-copyright {
    width: 270px;
}

.footer-logo {
    margin-bottom: 26px;
}

.footer-copyright p {
    font-size: 16px;
    line-height: 1.6;
}

.footer-widget {
    font-size: 18px;
}

.footer-widget-info {
    width: 170px;
}

.footer-widget-services,
.footer-widget-contacts {
    width: 270px;
}

.footer-widget+.footer-widget {
    margin-left: 30px;
}

.footer-widget p {
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-widget-title {
    margin-bottom: 30px;
    font-size: 24px;
}

.footer-widget-list {
    font-size: 18px;
}

.footer-widget-list li {
    margin-bottom: 15px;
}

/* Inner-page-tours */

.inner-page-tours-header {
    margin-bottom: 60px;
    text-align: center;
}

/* Cards */

.cards-first-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.cards-second-row {
    display: flex;
    justify-content: space-between;
}

.cards-second-row-column>*+* {
    margin-top: 30px;
}

/* Card */

.card-link-wrapper {
    text-decoration: none;
    display: block;
}

.card-link-wrapper:hover {
    opacity: 0.9;
}

.card {
    width: 570px;
}

.card.bigger {
    width: 670px;
}

.card.small {
    width: 470px;
}

.card-title-wrapper {
    display: flex;
    align-items: center;
    height: 80px;
    padding-left: 30px;
    padding-right: 30px;
    background-color: #A6A6A6;
    color: #FFF;
}

.card.extreme-color .card-title-wrapper {
    background-color: #C1B19B;
}

.card.adventures-color .card-title-wrapper {
    background-color: #66B0BE;
}

.card.tracking-color .card-title-wrapper {
    background-color: #876F56;
}

.card.jungle-color .card-title-wrapper {
    background-color: #27695E;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
}

/* article page */

.row-article-page {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}

.article-page-nav {
    width: 270px;
    flex-shrink: 0;
    flex-grow: 0;
}

.article-page-nav-title {
    margin-bottom: 34px;
    font-weight: 700;
    font-size: 28px;
    color: #31405B;
}

.article-page-nav-list {
    font-size: 20px;
    border-top: 1px solid #D6D9D8;
}

.article-page-nav-list li {
    border-bottom: 1px solid #D6D9D8;
}

.article-page-nav-list a {
    display: block;
    padding-top: 14px;
    padding-bottom: 14px;
    color: #138ECE;
    text-decoration: none;
}

.article-page-nav-list a.active {
    font-weight: 700;
    color: #E04E4E;
}

.article-page-nav-list a:hover {
    text-decoration: underline;
}

/* article-page-article */

.article-page-article {
    width: 770px;
    flex-shrink: 0;
    flex-grow: 0;
    color: #31405B;
    font-size: 20px;
    line-height: 1.6;
}

.article-page-article h1,
.article-page-article h2,
.article-page-article h3,
.article-page-article h4,
.article-page-article h5,
.article-page-article h6 {
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.article-page-article h1 {
    margin-top: -6px;
    margin-bottom: 40px;
    font-size: 54px;
}

.article-page-article h2 {
    font-size: 32px;
    margin-top: 27px;
}

.article-page-article h3 {
    font-size: 26px;
    margin-top: 25px;
}

.article-page-article h4 {
    font-size: 22px;
    margin-top: 23px;
}

.article-page-article h5 {
    font-size: 20px;
}

.article-page-article h6 {
    font-size: 18px;
}

.article-page-article P {
    margin-bottom: 15px;
}

.article-page-article img {
    margin-top: 40px;
    margin-bottom: 40px;
}

.article-page-article a {
    color: #138ECE;
}

.article-page-article>*:last-child {
    margin-bottom: 0;
}

/* contacts */

.contacts-header {
    margin-bottom: 40px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info {
    width: 470px;
}

.contact-block+.contact-block {
    margin-bottom: 40px;
}

.contact-block-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-block-body {
    font-size: 20px;
}

.contact-block li {
    margin-bottom: 15px;
}

.contact-block li:last-child {
    margin-bottom: 40px;
}

.contact-block a {
    color: #138ECE;
    text-decoration: none;
}

.contact-list-icon {
    position: relative;
    padding-left: 39px;
}

.contact-list-icon::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
}

.contact-list-icon.phone::before {
    background-image: url(./../img/icons/phone.svg);
}

.contact-list-icon.mail::before {
    background-image: url(./../img/icons/mail.svg);
}

.contact-list-icon.address::before {
    background-image: url(./../img/icons/map-pin.svg);
}

/* contact-form  */

.form {
    padding: 40px;
    width: 630px;
    background-color: #FFFFFF;
    box-shadow: 0px 10px 20px rgba(211, 211, 211, 0.25);
}

.form-title {
    margin-bottom: 20px;
    font-size: 28px; 
    font-weight: 700;
}

.form-group {
    margin-bottom: 30px;
}

.form-group:last-of-type {
    margin-bottom: 35px;
}

.form-group-title {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.form-group-row {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.form-group-row > .input + .input {
    margin-left: 10px;
}

.input {
    width: 100%;
    height: 50px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #EEEEEE;
    border: 1px solid #C0C0C0;
    border-radius: 6px;
    font-family: 'PT Sans', sans-serif;
    font-size: 18px;
    color: #31405B;
}

.input::placeholder {
    color: rgba(49, 64, 91, 0.5);
}

.radio-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.real-radio {
    width: 0;
    height: 0;
    position: absolute;
    opacity: 0;
    z-index: -1;
    appearance: none;
}

.custom-radio {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: bottom;
    margin-right: 10px;
    width: 20px;
    height: 20px;
    border: 1px solid #C0C0C0;
    border-radius: 50%;
}

.real-radio:focus + .custom-radio {
    box-shadow: 0 0 0px 2px #333; 
}

.custom-radio::before {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    content: "";
    width: 12px;
    height: 12px;
    background-color: #2AB698;
    border-radius: 50%;
    transition: transform 0.2s ease-in;
}

.real-radio:checked + .custom-radio::before {
    transform: translate(-50%, -50%) scale(1);
}
 
.checkbox-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.real-checkbox {
    width: 0;
    height: 0;
    position: absolute;
    opacity: 0;
    z-index: -1;
    appearance: none;
}

.custom-checkbox {
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    margin-right: 10px;
    width: 20px;
    height: 20px;
    border: 1px solid #C0C0C0;
    border-radius: 2px;
}
.real-checkbox:focus + .custom-checkbox {
    box-shadow: 0 0 0px 2px #333; 
}

.custom-checkbox::before {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    content: "";
    width: 17px;
    height: 17px;
    background-image: url(../img/icons/checkmark.svg);

    transition: transform 0.2s ease-in;
}

.real-checkbox:checked + .custom-checkbox::before {
    transform: translate(-50%, -50%) scale(1);

}