@font-face {
	font-family: "Gotham Pro";
	src: url("../fonts/GothamPro.woff") format("woff");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Gotham Pro";
	src: url("../fonts/GothamPro-Medium.woff") format("woff");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "Gotham Pro";
	src: url("../fonts/GothamPro-Bold.woff") format("woff");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Roboto";
	src: url("../fonts/roboto-regular-webfont.woff2") format("woff2"),
	     url("../fonts/roboto-regular-webfont.woff") format("woff");
	font-weight: 400;
	font-display: swap;
}

:root {
	--blue: #1b95dc;
	--blue-active: #1279b8;
	--text: #1a1a1a;
	--muted: #707070;
	--border: #d0d0d0;
	--accent: #e4373a;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Roboto", "Open Sans", Arial, Helvetica, sans-serif;
	color: var(--text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 1520px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Кнопка ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 68px;
	padding: 0 34px;
	border: 0;
	border-radius: 3px;
	background: var(--blue);
	color: #fff;
	font: 500 16px/1.2 "Gotham Pro", Arial, sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--blue-active); }
.btn--block { width: 100%; }

/* ---------- Верхний блок ---------- */
.stub {
	padding: 84px 0 40px;
	text-align: center;
	border-bottom: 1px solid #eee;
}

.stub__logo {
	display: inline-block;
	width: 176px;
	color: var(--blue);
	margin-bottom: 18px;
}
.stub__logo svg { display: block; width: 100%; height: auto; }
.stub__logo text {
	fill: currentColor;
	font-family: "Gotham Pro", "Arial Black", Arial, sans-serif;
	font-weight: 700;
}
.stub__logo-top { font-size: 23px; }
.stub__logo-bottom { font-size: 46px; }

.stub__message {
	font: 500 20px/1.3 "Gotham Pro", Arial, sans-serif;
	letter-spacing: .01em;
	margin-bottom: 22px;
}
.stub__message p { margin: 0 0 26px; }
.stub__message p:last-child { margin-bottom: 0; }

.stub__contacts { margin-bottom: 42px; }
.stub__phone {
	display: inline-block;
	font-size: 22px;
	color: var(--text);
	text-decoration: none;
	margin-bottom: 8px;
}
.stub__phone:hover { color: var(--blue); }
.stub__worktime {
	display: block;
	font-size: 15px;
}

/* ---------- Форма ---------- */
.feedback { padding: 72px 0 80px; }

.feedback__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	padding-left: 98px;
	padding-right: 98px;
}

.feedback__head { padding-top: 32px; flex-shrink: 0; }
.feedback__head h2 {
	margin: 0 0 12px;
	font: 700 33px/1.2 "Gotham Pro", Arial, sans-serif;
}
.feedback__head p {
	margin: 0;
	font-size: 15px;
	color: var(--muted);
}

.feedback-form { flex: 0 1 874px; }

.feedback-form__row {
	display: flex;
	align-items: flex-end;
	gap: 20px;
}
.feedback-form__field { flex: 1 1 0; display: block; }
.feedback-form__label {
	display: block;
	margin-bottom: 12px;
	font-size: 15px;
	color: var(--muted);
}

.form-control {
	width: 100%;
	height: 70px;
	padding: 0 18px;
	border: 1px solid var(--border);
	border-radius: 3px;
	font: inherit;
	font-size: 16px;
	color: var(--text);
	background: #fff;
	transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--blue); }
.form-control.is-error { border-color: var(--accent); }

.feedback-form__hint {
	margin: 20px 0 0;
	font-size: 14px;
	color: var(--muted);
}
.feedback-form__hint a { color: var(--accent); text-decoration: none; }
.feedback-form__hint a:hover { text-decoration: underline; }

.feedback-form__success {
	margin: 16px 0 0;
	font-size: 16px;
	color: #3d9a12;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
	.feedback__inner { flex-direction: column; padding-left: 24px; padding-right: 24px; }
	.feedback__head { padding-top: 0; }
	.feedback-form { flex-basis: auto; width: 100%; }
}

@media (max-width: 749px) {
	.stub { padding: 48px 0 32px; }
	.stub__logo { width: 140px; }
	.stub__message { font-size: 17px; }
	.stub__message br { display: none; }
	.stub__phone { font-size: 20px; }
	.btn { min-height: 56px; }

	.feedback { padding: 44px 0 52px; }
	.feedback__inner { gap: 24px; }
	.feedback__head h2 { font-size: 26px; }
	.feedback-form__row { flex-direction: column; align-items: stretch; gap: 16px; }
	.feedback-form__label { margin-bottom: 8px; }
	.form-control { height: 56px; }
}


/* ---------- Страница согласия ---------- */
.legal {
	padding: 36px 0 80px;
}
.legal__header {
	text-align: center;
	margin-bottom: 36px;
}
.legal__header .stub__logo {
	margin-bottom: 0;
}
.legal__content {
	max-width: 820px;
	margin: 0 auto;
}
.legal__content h1 {
	margin: 0 0 24px;
	font: 700 33px/1.25 "Gotham Pro", Arial, sans-serif;
}
.legal__content h2 {
	margin: 28px 0 12px;
	font: 700 20px/1.3 "Gotham Pro", Arial, sans-serif;
}
.legal__content p,
.legal__content li {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.65;
}
.legal__content ol,
.legal__content ul {
	margin: 0 0 12px;
	padding-left: 22px;
}
.legal__content a {
	color: var(--blue);
}
.legal__back {
	display: inline-block;
	margin-top: 28px;
	color: var(--blue);
	text-decoration: none;
	font: 500 16px/1.2 "Gotham Pro", Arial, sans-serif;
}
.legal__back:hover {
	text-decoration: underline;
}

@media (max-width: 749px) {
	.legal { padding: 24px 0 56px; }
	.legal__content h1 { font-size: 26px; }
}


/* ---------- Скрытое поле от ботов ---------- */
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.feedback-form__error {
	margin: 16px 0 0;
	font-size: 15px;
	color: var(--accent);
}

/* ---------- Модальное окно ---------- */
body.modal-open { overflow: hidden; }

.modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.modal.is-open { display: flex; }

.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
}

.modal__dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	padding: 36px 32px 28px;
	background: #fff;
	border-radius: 6px;
	text-align: center;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
}

.modal__text {
	margin: 0 0 24px;
	font: 500 20px/1.4 "Gotham Pro", Arial, sans-serif;
}

.modal__close { min-width: 180px; }

@media (max-width: 749px) {
	.modal__dialog { padding: 28px 20px 22px; }
	.modal__text { font-size: 18px; }
}
