/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url(/assets/fonts/Inter-cyrillic.woff2) format('woff2');
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url(/assets/fonts/Inter-latin.woff2) format('woff2');
}

:root {
  --font-family: 'Inter', sans-serif;
  --base-font-size: 17px;
}

body {
  font-family: var(--font-family);
  font-size: var(--base-font-size);	
  padding: 0px;
  margin: 0px;
}

section {
  display: flex;
  justify-content: center;
}

input,
select,
button {	
  font-family: var(--font-family);
  font-size: 100%;  
}

.container {
  width: 100%;
  max-width: 700px;
  min-height: calc(100vh);  
  padding: 0 30px;
}

.paragraph {
	padding-bottom: 2em;
	text-align: justify;
}
.paragraph p {
	text-indent: 20px;
	margin-block-end: 0.4em;
	margin-block-start: 0.4em;	
}


h2 {
  font-size: 180%;	
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}


.group {
  position: relative;
  margin-bottom: 30px;
}

form .group input,
form .group select {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: transparent;
  box-sizing: border-box;
}

form .group input:focus,
form .group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

form .group label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  background: white;
  color: #999;
  transition: all 0.3s ease;
  pointer-events: none;
  width: calc(100% - 40px);
}

/* Анимация placeholder вверх */
form .group input:focus + label,
form .group input:not(:placeholder-shown) + label,
form .group select:focus + label,
form .group select:not([value=""]):valid + label {
  top: 0;
  font-size: 80%;
  color: #667eea;
  font-weight: 500;
  width: auto;
  padding: 0 3px;  
}

/* Чекбокс */
.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  cursor: pointer;
  user-select: none;
}

.checkbox-group input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom {
  background: #667eea;
  border-color: #667eea;
}

.checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Кнопка */
.button {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  padding: 16px;
  background: linear-gradient(135deg, #86b5e5 0%, #456f9b 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 110%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.button:hover {
  box-shadow: 0 0 10px 4px rgb(74 112 151 / 65%);
}
.button:active {
  transform: translateY(-1px);
}

.button.dark {    
	background: linear-gradient(135deg, #c58763 0%, #793b16 100%);
}
.button.dark:hover {
	box-shadow: 0 0 10px 4px rgb(121 59 22 / 65%);
}


.main {
    background: url(/assets/imgs/background.webp) no-repeat;
    background-size: cover;
    background-position: center;
}
.main .container {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.main .header {
	padding-top: 30px; 
	font-size: 130%;
	color: #4f4a48;
}
.main .footer {
	padding-bottom: 40px; 
}


.thanks {
	background: url(/assets/imgs/tnx-background.webp) no-repeat;
    background-size: 70vh;
    background-position: right bottom;
}
@media screen and (max-width: 1024px) {
	.thanks {
		background-size: contain;
	}
}


@media screen and (max-width: 480px) {
	body {
	  font-size: 90%;
	}
	.main .header {
		padding-top: 10px; 
		font-size: 110%;
		color: #4f4a48;
	}
}
