/* start base */
:root {
	/* colors */
	--none-color: transparent;
	--text-color: #0E0F0F;
	--dark-color: #000;
	--bg-color: #1A385B;
	--white-color: #fff;
	--primary-color: #D59B77;
}

.header a, .header span {
    white-space: nowrap;
}

.text-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
/* end base */
.copyright .container {
    display: flex;
    flex-direction: column;
}
.copyright__terms {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
}

@media only screen and (max-width: 767px) {
    .copyright .copyright__terms {
        margin-bottom: 20px;
        flex-direction: column;
        text-align: center;
        align-items: center;
        margin: 0 auto;
    }
}

.copyright .copyright__terms a {
    margin: 0;
    width: max-content;
}
.form-desc .block-right {
    padding-bottom: 134px;
}

.gallery__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 20px;
}

.gallery__wrapper a {
    margin-bottom: 0;
    overflow: hidden;
}

.gallery__wrapper .gallery__item_image {
    display: flex;
    width: 100%;
}

.gallery__wrapper img {
    width: 100%;
}

@media only screen and (max-width: 991px) {
    .form-desc .block-right {
        padding-bottom: 30px;
    }
    
    .gallery__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}


.heroimage {
    margin-bottom: 80px;
}

.main-contacts .map {
    width: 100%;
    height: 670px;
}

.copyright .copyright__terms a:hover {
    color: var(--text-color);
}

/* start form */
.custom-checkbox {
	display: flex;
	flex-direction: column;
	user-select: none;
	cursor: pointer;
}

.custom-checkbox.custom-checkbox_inv .custom-checkbox__text {
	color: var(--text-color);
}

.custom-checkbox.custom-checkbox_inv .custom-checkbox__text::before {
	border-color: var(--primary-color);
}

.custom-checkbox.custom-checkbox_inv .custom-checkbox__text::after {
	background-color: var(--primary-color);
}

.custom-checkbox__input {
    position: absolute;
	appearance: none;
}

.custom-checkbox__input:checked + .custom-checkbox__text::after {
    opacity: 1;
}

.custom-checkbox__input:focus + .custom-checkbox__text {
    color: var(--primary-color);
}

.custom-checkbox__text {
	position: relative;
	font-size: 14px;
	padding-left: 24px;
	color: var(--white-color);
	transition: color .2s linear;
}

.custom-checkbox__text::before {
	content: '';
	position: absolute;
	top: 6px;
	left: 0;
	border: 1px solid var(--white-color);
	border-radius: 4px;
	width: 16px;
	height: 16px;
}

.custom-checkbox__text::after {
	content: '';
	position: absolute;
    top: 10px;
    left: 4px;
    border-radius: 2px;
	width: 10px;
	height: 10px;
	opacity: 0;
	background-color: var(--white-color);
	transition: opacity .2s linear;
}

.custom-checkbox__link {
	display: inline;
	border-bottom: 1px solid var(--primary-color);
	color: var(--primary-color);
	transition: border-color .2s linear, color .2s linear;
}
	
.label {
	max-width: max-content;
	width: 100%;
	line-height: 100%;
	font-size: 16px;
	letter-spacing: .09em;
	color: var(--white-color);
	cursor: pointer;
}
/* end form */

/* start cookies */
.cookies {
    position: fixed;
    z-index: 10000;
    right: 0;
    bottom: 15px;
    display: flex;
    justify-content: flex-end;
    padding: 0px 25px;
    max-width: max-content;
}

.cookies__content-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 512px;
    width: 100%;
    color: var(--white-color);
    font-size: 16px;
    background-color: var(--bg-color);
}

.cookies__text-link {
    display: inline;
    text-decoration: underline;
    color: var(--primary-color);
}
/* end cookies */

/* start phone */
@media (max-width:767px) {
    .cookies {
        padding: 0px 10px;
    }
    
    .cookies__content-wrap {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 10px;
      font-size: 14px;
    }
    
    .cookies__btn {
        max-width: 100%;
        width: 100%;
    }
    
    .main-contacts .map {
        height: 450px;
    }
    
    .gallery__wrapper {
        grid-template-columns: 1fr;
    }
}

/* end phone */
@media (hover:hover) {
    .cookies__text-link:hover {
        text-decoration: none;
    }
    
    .custom-checkbox__link:hover {
		border-color: var(--none-color);
		color: var(--white-color);
    }
}