/* start base */
:root {
	/* colors */
	--none-color: transparent;
	--text-color: #193c63;
	--dark-color: #000;
	--bg-color: #193c63;
	--white-color: #fff;
	--primary-color: #1a84c3;
}

.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 */

/* start form */
.form-item label.custom-checkbox {
    position: relative;
    top: auto;
    left: auto;
    z-index: 0;
    display: flex;
    padding: 0;
    font-family: Lato, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    pointer-events: auto;
}

.form-item .custom-checkbox input {
    padding: 0;
    width: 0;
    height: 0;
    background-color: transparent;
    border: none;
    font-weight: 700;
    font-size: 0;
    line-height: 0;
    color: transparent;
}

.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;
	padding-left: 24px;
	color: var(--white-color);
	transition: color .2s linear;
}

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

.custom-checkbox__text::after {
	content: '';
	position: absolute;
    top: 3px;
    left: 3px;
    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;
}

.form-callback__checkbox {
    max-width: 300px;
}
/* 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;
    border-radius: 4px;
    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%;
    }
    
    .form-callback__checkbox {
        margin-bottom: 20px;
        max-width: 100%;
    }
}

/* 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);
    }
}