:root {
	--header-height: 70px;
	--bg-color: #87ce96;
	--bg-color-light: #826953;
	--bg-dark: #2c2118;
	--accent-color: #bf3f3f;

	--text-color: #f2e6d9;

	--faq-bg: #64594f;
	--faq-text: #d9a441;
	--faq-accent: #b06a3e;
	--faq-border: #cc8e35;
	--faq-radius: 1.5rem;
	--faq-shadow: rgba(191, 63, 63, 0.3);

	--bg-gradient-dark: linear-gradient(135deg, #4a3f35 0%, #826953 50%, #2c2118 100%);

	--color-primary: #bf3f3f;
	--color-accent: #b06a3e;
	--color-light: #d9a441;
	--color-text: #f2e6d9;

	--border-radius: 1rem;
	--shadow: 0 15px 30px rgba(255, 184, 0, 0.25);

	/* Анимации */
	--transition: all 0.3s ease-in-out;

	--font-main: 'Montserrat', sans-serif;
	--font-second: 'Merriweather', sans-serif;
}

/* Reset and base styles  */
* {
	padding: 0px;
	margin: 0px;
	border: none;
}

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

/* Links */

a,
a:link,
a:visited {
	text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	font-size: inherit;
	font-weight: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-second);
}

ul,
ul li {
	list-style: none;
	font-family: var(--font-second);
}

img {
	vertical-align: top;
}

img {
	max-width: 100%;
	width: 100%;
	height: auto;
}

address {
	font-style: normal;
}

/* Form */

input,
textarea,
button,
select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	background-color: transparent;
}

input::-ms-clear {
	display: none;
}

button,
input[type='submit'] {
	display: inline-block;
	box-shadow: none;
	background-color: transparent;
	background: none;
	cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
	outline: none;
}

button::-moz-focus-inner {
	padding: 0;
	border: 0;
}

label {
	cursor: pointer;
}

legend {
	display: block;
}

input[type='file'] {
	max-width: 100%;
}

html,
body {
	height: 100%;
	font-family: Arial, sans-serif;
	background-color: var(--bg-color-light);
}
html {
	scroll-behavior: smooth;
}
body {
	font-family: var(--font-main);
}

.wrapper {
	min-height: 100vh; /* минимум высота экрана */
	display: flex;
	flex-direction: column;
	padding-top: 70px; /* чтобы контент не ушел под фиксированный header */
}

/* main занимает всё свободное пространство */
.main {
	flex: 1 0 auto; /* растягиваем main, чтобы footer ушел вниз */
}

.container {
	max-width: 1280px;
	padding: 0 10px;
	margin: 0 auto;
	height: 100%;
}

/* HEADER */

.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: var(--bg-color);
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.header__inner {
	display: flex;
	justify-content: center;
	flex-direction: row-reverse;
	align-items: center;
	height: 70px;
	width: 100%;
}

/* Навигация */
.nav {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
}

.nav-list {
	display: flex;
	justify-content: space-evenly;
	gap: 30px;
	list-style: none;
}

.nav-link {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	position: relative;
	transition: var(--transition);
	display: block;
	padding: 5px;
	border-radius: 5px;
}

.nav-link:hover {
	background: var(--color-light);
}
.nav-link.active {
	background: var(--bg-color);
	color: var(--color-accent);
}
/* Бургер меню */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	border-radius: 3px;
	transition: var(--transition);
}

/* Адаптивность */
@media (max-width: 768px) {
	.menu-toggle {
		display: flex;
	}

	.nav-list {
		position: absolute;
		top: var(--header-height);
		right: 0;
		background-color: var(--bg-color);
		flex-direction: column;
		width: 100%;
		padding: 20px;
		gap: 20px;
		transform: translateX(100%);
		opacity: 0;
		pointer-events: none;
		transition: var(--transition);
	}

	.nav-list.active {
		transform: translateX(0%);
		opacity: 1;
		pointer-events: all;
	}
}

/* Footer */

/* Футер */
.footer {
	background-color: #0a0f1a;
	color: #fff;
	flex-shrink: 0; /* не сжимается */
}

.footer .container {
	display: flex;
	justify-content: space-between;
	padding: 20px;
}

.footer-links ul {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.footer-links a {
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: #2454f1;
}

.footer-bottom {
	margin-top: 10px;
	font-size: 14px;
	color: #eec5c5;
	text-align: center;
}

@media (max-width: 768px) {
	.footer .container {
		display: flex;
		flex-direction: column;
	}
}

/* ==================================================== FAQ */
.faq {
	background-color: #f9f9f9;
	padding: 60px 20px;
}

.faq-title {
	font-size: 32px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 40px;
	color: #111;
}

.faq__item {
	margin-bottom: 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	background-color: #fff;
	transition: box-shadow 0.3s ease;
}

.faq__item[open] {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq__question {
	padding: 16px 20px;
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	background-color: #f1f1f1;
	color: #222;
	position: relative;
}

.faq__question::after {
	content: '+';
	font-size: 22px;
	position: absolute;
	right: 20px;
	top: 16px;
	transition: transform 0.3s ease;
}

.faq__item[open] .faq__question::after {
	transform: rotate(45deg);
}

.faq__answer {
	padding: 16px 20px;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
	.faq__title {
		font-size: 26px;
		margin-bottom: 30px;
	}

	.faq__question {
		font-size: 16px;
		padding: 14px 16px;
	}

	.faq__answer {
		font-size: 15px;
		padding: 14px 16px;
	}
}

@media (max-width: 480px) {
	.faq__title {
		font-size: 22px;
	}

	.faq__question {
		font-size: 15px;
		padding: 12px 14px;
	}

	.faq__answer {
		font-size: 14px;
		padding: 12px 14px;
	}
}
.site-nav {
	text-align: center;
	padding: 20px 30px;
	background-color: #e6ebf8;
	color: #3a3a3a;
	border-radius: 30px;
	max-width: 540px;
	margin: 1.5rem auto;
	box-shadow: 0 8px 24px rgba(58, 58, 58, 0.1);
	font-weight: 600;
	letter-spacing: 0.1em;
	font-size: 18px;
	border: 1px solid #b0c4f9;
}

.nav-list-faq {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.site-nav .nav-list-faq a {
	color: #536dfe;
	text-decoration: none;
	padding: 8px 18px;
	border-radius: 14px;
	transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
	font-size: 16px;
	font-weight: 700;
	box-shadow: inset 0 0 0 2px #536dfe;
}

.site-nav .nav-list-faq a:hover,
.site-nav .nav-list-faq a:focus {
	background-color: #536dfe;
	color: #fff;
	outline: none;
	box-shadow: 0 4px 15px rgba(83, 109, 254, 0.7);
}

.flex-end {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	font-size: 16px;
	margin: 24px 0;
	color: #536dfecc;
	font-weight: 700;
	font-style: italic;
}

@media (max-width: 768px) {
	.site-nav {
		padding: 16px 22px;
		font-size: 16px;
		max-width: 100%;
		border-radius: 22px;
	}
	.flex-end {
		font-size: 14px;
		justify-content: center;
		margin: 18px 0;
	}
	.nav-list-faq {
		justify-content: center;
		gap: 22px;
	}
	.faq-title {
		font-size: 1.4rem;
	}
}

/* PRIVaCY */
.privacy {
	color: #222;
	padding: 3rem 2rem;
	background: linear-gradient(135deg, #1e3c50, #39687e);
	border-radius: 16px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.privacy__header {
	background: #ffffffdd;
	padding: 1.5rem 1.2rem;
	text-align: center;
	border-radius: 14px;
	margin-bottom: 2.5rem;
	box-shadow: 0 4px 10px rgba(57, 104, 126, 0.25);
	backdrop-filter: blur(8px);
}

.privacy__title {
	font-size: 2rem;
	font-weight: 700;
	color: #2a475e;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.privacy__intro {
	font-size: 1.3rem;
	color: #4a6f8c;
	margin-top: 0.5rem;
	font-weight: 500;
	line-height: 1.5;
}

.privacy__container {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

.privacy__sidebar {
	flex: 1 1 280px;
	background: #fefefe;
	border: 1px solid #b0c7db;
	padding: 1.5rem 1.25rem;
	border-radius: 14px;
	position: sticky;
	top: 80px;
	max-height: calc(100vh - 150px);
	overflow-y: auto;
	box-shadow: 0 4px 12px rgba(57, 104, 126, 0.15);
}

section[id] {
	scroll-margin-top: 90px;
}

.privacy__nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.privacy__nav li {
	margin-bottom: 1rem;
}

.privacy__nav a {
	color: #2a475e;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease, transform 0.2s ease;
	border-bottom: 2px solid transparent;
	padding-bottom: 2px;
	display: inline-block;
}

.privacy__nav a:hover,
.privacy__nav a:focus {
	color: #1b2f43;
	border-color: #39687e;
	transform: translateX(4px);
	outline: none;
}

.privacy__content {
	flex: 3 1 640px;
	background: #fff;
	padding: 2rem 2.5rem;
	border-radius: 18px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.privacy__content section {
	margin-bottom: 2rem;
}

.privacy__content h2 {
	font-size: 1.8rem;
	margin-bottom: 1.25rem;
	color: #2a475e;
	font-weight: 700;
	border-left: 4px solid #39687e;
	padding-left: 1rem;
}

.privacy__content h3 {
	font-size: 1.3rem;
	margin-top: 1.5rem;
	color: #4a6f8c;
	font-weight: 600;
}

.privacy__content ul {
	margin-left: 2rem;
	padding-left: 0;
	list-style-type: disc;
	color: #555;
	line-height: 1.6;
}

.privacy__content address {
	font-style: normal;
	color: #666;
	margin: 1.5rem 0 0 0;
	font-weight: 500;
}

@media (max-width: 768px) {
	.privacy {
		padding: 2rem 1rem;
		border-radius: 12px;
	}

	.privacy__header {
		padding: 1rem;
		margin-bottom: 1.5rem;
	}

	.privacy__title {
		font-size: 1.5rem;
	}

	.privacy__intro {
		font-size: 1.1rem;
	}

	.privacy__container {
		flex-direction: column;
		gap: 1.5rem;
	}

	.privacy__sidebar {
		position: static;
		max-height: none;
		box-shadow: none;
		padding: 1rem;
		border-radius: 12px;
	}

	.privacy__content {
		padding: 1.5rem 1.5rem;
		border-radius: 12px;
	}

	.privacy__content h2 {
		font-size: 1.4rem;
		padding-left: 0.8rem;
	}

	.privacy__content h3 {
		font-size: 1.1rem;
	}
}

/* Enhanced Contacts Section =====================================================*/

.contact-section {
	padding: 5rem 2rem;
	background-color: #f8fafc;
	min-height: 70vh;
	display: grid;
	place-items: center;
	color: #1e293b;
}

.contact-section__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	max-width: 1000px;
	width: 100%;
}

.contact-section__card {
	background: #ffffff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	display: grid;
	gap: 1.5rem;
	transition: box-shadow 0.3s ease;
}

.contact-section__card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.contact-section__image-wrapper {
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
}

.contact-section__image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 10px;
	transition: transform 0.4s ease;
}

.contact-section__image:hover {
	transform: scale(1.05);
}

.contact-section__heading {
	font-size: 1.75rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #0f172a;
}

.contact-section__description {
	font-size: 1rem;
	line-height: 1.7;
	color: #475569;
}

.contact-section__subtitle {
	font-size: 1.05rem;
	font-weight: 500;
	color: #334155;
}

.contact-section__block {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #64748b;
}

.contact-section__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1rem;
}

.contact-section__socials a {
	display: inline-block;
	padding: 0.6rem 1.2rem;
	background-color: #e2e8f0;
	color: #1e293b;
	border-radius: 8px;
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-section__socials a:hover {
	background-color: #cbd5e1;
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	.contact-section__card {
		padding: 1.5rem;
	}

	.contact-section__heading {
		font-size: 1.5rem;
	}

	.contact-section__description {
		font-size: 0.95rem;
	}

	.contact-section__subtitle {
		font-size: 1rem;
	}
}

.link-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}
.link-page {
	background-color: var(--bg-dark);
	border-radius: 12px;
	padding: 15px;
	display: inline-block;
	color: var(--text-color);
	transition: var(--transition);
}
.link-page:hover {
	color: var(--faq-text);
	transition: var(--transition);
}

/* ================================================================================= SECTIONS */
.tradingview,
.tradingview-login,
.tv-mobile,
.tv-login {
	max-width: 900px;
	margin: 2rem auto;
	padding: 20px 30px;
	background: linear-gradient(145deg, #d6e8d7 0%, #b1c9a5 100%);
	border: 3px solid #576c49;
	border-radius: 15px;
	box-shadow: inset 0 0 10px #9bbf7f, 6px 6px 15px rgba(0, 0, 0, 0.15);
	color: #2e3b20;
	line-height: 1.6;
	transform: rotate(-2deg);
	transition: transform 0.3s ease;
}

.tradingview:hover,
.tradingview-login:hover,
.tv-mobile:hover,
.tv-login:hover {
	transform: rotate(0deg) scale(1.02);
	box-shadow: inset 0 0 12px #b4d18c, 8px 8px 20px rgba(0, 0, 0, 0.25);
}

.tradingview__title,
.tradingview-login__title,
.tv-mobile__title,
.tv-login__title {
	font-weight: 900;
	font-size: 2.2rem;
	margin-bottom: 1.2rem;
	color: #2f4f2f;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-shadow: 1px 1px 0 #c2d9b3, 2px 2px 3px #7a8c6e;
}

.tradingview__subtitle,
.tradingview-login__subtitle,
.tv-mobile__subtitle,
.tv-login__subtitle {
	font-weight: 700;
	font-size: 1.6rem;
	margin-top: 1.8rem;
	margin-bottom: 1rem;
	color: #3a4a29;
	border-bottom: 3px solid #869e68;
	padding-bottom: 0.4rem;
	letter-spacing: 0.03em;
}

.tradingview__subsubtitle,
.tradingview-login__subsubtitle {
	font-weight: 600;
	font-size: 1.25rem;
	margin-top: 1.2rem;
	margin-bottom: 0.8rem;
	color: #556633;
	text-shadow: 0 1px 0 #c9dcb0;
}

.tradingview__paragraph,
.tradingview-login__paragraph,
.tv-mobile__text,
.tv-login__text {
	font-size: 1rem;
	color: #3b4b22;
	margin-bottom: 1.4rem;
	text-shadow: 0 0 1px #d4e4a5;
}

.tradingview__image,
.tradingview-login__image,
.tv-mobile__image,
.tv-login__image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1.2rem auto 1.8rem;
	border-radius: 12px;
	border: 3px solid #758b4b;
	box-shadow: inset 2px 2px 5px #d0dca3, 4px 4px 10px rgba(68, 84, 26, 0.5);
	filter: contrast(1.1) brightness(1.1);
}

/* Расположение в стиле купюр — горизонтально с небольшим наклоном */

.tradingview__block,
.tradingview-login__block,
.tv-mobile__block,
.tv-login__block {
	margin-bottom: 2.5rem;
	padding: 20px 25px;
	background: linear-gradient(135deg, #c7d9b9 0%, #a2b57f 100%);
	border-radius: 12px;
	border: 2px solid #5b6d34;
	box-shadow: 0 4px 8px rgba(89, 103, 44, 0.3), inset 0 0 12px #d4e3a2;
	transform: rotate(1deg);
	transition: transform 0.25s ease;
}

.tradingview__block:hover,
.tradingview-login__block:hover,
.tv-mobile__block:hover,
.tv-login__block:hover {
	transform: rotate(0deg) scale(1.03);
	box-shadow: 0 6px 14px rgba(89, 103, 44, 0.5), inset 0 0 14px #e1f1b3;
}

/* Адаптивные изменения без изменений шрифтов */

@media (max-width: 767px) {
	.tradingview,
	.tradingview-login,
	.tv-mobile,
	.tv-login {
		padding: 15px 20px;
		transform: rotate(0deg);
	}
	.tradingview__title,
	.tradingview-login__title,
	.tv-mobile__title,
	.tv-login__title {
		font-size: 1.6rem;
		letter-spacing: 0.05em;
	}
	.tradingview__subtitle,
	.tradingview-login__subtitle,
	.tv-mobile__subtitle,
	.tv-login__subtitle {
		font-size: 1.2rem;
		border-bottom-width: 2px;
	}
	.tradingview__paragraph,
	.tradingview-login__paragraph,
	.tv-mobile__text,
	.tv-login__text {
		font-size: 0.95rem;
	}
}

@media (max-width: 480px) {
	.tradingview,
	.tradingview-login,
	.tv-mobile,
	.tv-login {
		padding: 12px 15px;
	}
	.tradingview__title,
	.tradingview-login__title,
	.tv-mobile__title,
	.tv-login__title {
		font-size: 1.3rem;
	}
	.tradingview__subtitle,
	.tradingview-login__subtitle,
	.tv-mobile__subtitle,
	.tv-login__subtitle {
		font-size: 1rem;
	}
	.tradingview__paragraph,
	.tradingview-login__paragraph,
	.tv-mobile__text,
	.tv-login__text {
		font-size: 0.85rem;
	}
	.tradingview__block,
	.tradingview-login__block,
	.tv-mobile__block,
	.tv-login__block {
		margin-bottom: 1.8rem;
		padding: 15px 20px;
	}
}
