/* CSS остается тот же + новые стили для лэндинга */
:root {
	--bg: #000000;
	--text: #ffffff;
	--accent: #0071e3;
	--accent-hover: #0077ED;
	--gray: #cccccc;
	--input-bg: #1d1d1f;
	--input-border: #cccccc;
	--section-bg: #0a0a0a;
	--card-bg: #222222;
	--border-color: #666666;
}

/* .button:hover,.button:focus {
	background: #0077ED;
	color: #fff;
	border-color: transparent
} */

[data-theme="light"] {
	--bg: #ffffff;
	--text: #1d1d1f;
	--accent: #0071e3;
	--accent-hover: #0077ED;
	--gray: #555555;
	--input-bg: #f5f5f5;
	--input-border: #0071e3;
	--section-bg: #f8f9fa;
	--card-bg: #ffffff;
	--border-color: #e0e0e0;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}



html,
body {
	height: 100%;
	overflow-x: hidden;
	/* font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif; */
	font-size: 106.25%;
	quotes: "“" "”";
	--sk-link-disabled-opacity: .42;
}

body {
	background: var(--bg);
	color: var(--text);
	/* font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; */
	/* font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif; */
	font-family: -apple-system, BlinkMacSystemFont, sans-serif;

	/* "SF Pro Display","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif */

	font-size: 16px;
	line-height: 1.6;

	font-synthesis: none;
	-moz-font-feature-settings: 'kern';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	font-size: 17px;
	line-height: 1.47059;
	font-weight: 300;
	letter-spacing: -.022em;
	/* font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif; */
	/* color: #1d1d1f; */
	font-style: normal;


	font-synthesis: none;
	-moz-font-feature-settings: 'kern';
	-webkit-font-smoothing: antialiased;


}

/* Navigation */
.nav-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding: 15px 0;
	transition: all 0.3s ease;
	transform: translateY(-100%);
}

[data-theme="light"] .nav-bar {
	background: rgba(255, 255, 255, 0.95);
}

.nav-bar.visible {
	transform: translateY(0);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-logo a {
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
}

.nav-menu {
	display: flex;
	gap: 30px;
	align-items: center;
}

.nav-menu a {
	color: var(--text);
	text-decoration: none;
	font-weight: 400;
	transition: color 0.2s;
	cursor: pointer;
}

.nav-menu a:hover {
	color: var(--accent);
}

.nav-link-external {
	opacity: 0.8;
}

/* Container для диалога */
.container {
	height: -webkit-fill-available;
}

.dialogue-section {
	height: -webkit-fill-available;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 20px;
	max-width: 800px;
	margin: 0 auto;
	transition: all 0.6s ease;
}

.dialogue-section.minimized {
	height: auto;
	min-height: 200px;
	padding: 40px 20px;
}

.dialogue-box {
	width: 100%;
	text-align: center;
	position: relative;
	margin-bottom: 35px;
	transition: all 1.6s ease;
}

.message {
	font-size: clamp(20px, 8vw, 35px);
	line-height: 1.5;
	margin-bottom: 40px;
	opacity: 0;
	animation: fadeIn 0.6s forwards;
	margin: 0px auto;
	width: fit-content;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	transition: all 2.6s ease;
	animation: fadeIn 1.6s forwards;
	animation-delay: 1.3s;
}

@keyframes fadeIn {
	to {
		opacity: 1;
	}
}

.typing-container {
	position: relative;
	display: inline-block;
}

.typing-text {
	white-space: normal;
	/* word-wrap: break-word; */
	/* overflow-wrap: anywhere; */
	/* word-break: keep-all; */
	letter-spacing: -.022em;
	font-weight: 300;
}

.cursor {
	display: inline-block;
	width: 2px;
	height: 1.15em;
	background: var(--text);
	margin-left: 3px;
	animation: blink 1.35s infinite;
	vertical-align: text-bottom;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.actions {
	margin-top: 40px;
	opacity: 0;
	animation: fadeIn 0.6s forwards;
	animation-delay: 0.3s;
	margin: 0px auto;
	width: fit-content;
}

.action-buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 20px;
}

button {
	background: var(--accent);
	color: white;
	border: none;
	/* padding: 12px 32px;
	font-size: 18px;
	font-weight: 400;
	border-radius: 8px;
	cursor: pointer;
	 */
	white-space: nowrap;
	font-family: inherit;
	transition: all 0.2s;

	cursor: pointer;
	display: inline-block;
	text-align: center;
	white-space: nowrap;
	font-size: 17px;
	line-height: 1.17648;
	font-weight: 400;
	/* letter-spacing: -.022em; */
	/* border-style: solid; */
	/* border-width: 1px; */

	border-radius: 980px;
	/* background:  var(--accent-hover); */
	color: #fff;
	letter-spacing: -.022em;
	min-width: 28px;
	padding-left: 21px;
	padding-right: 21px;
	padding-top: 11px;
	padding-bottom: 11px;
}



button:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
	color: #fff;
}

button:active {
	transform: translateY(0);
}

button.secondary {
	background: transparent;
	color: var(--input-border);
	border: 1px solid var(--input-border);
}

button.secondary:hover {
	background-color: var(--accent-hover) !important;
	color: #fff;
	/* border-color: var(--input-border); */
	border: none;
	background: transparent;
}


.button {
	background: var(--accent);
	color: white;
	border: none;
	/* padding: 12px 32px;
	font-size: 18px;
	font-weight: 400;
	border-radius: 8px;
	cursor: pointer;
	 */
	white-space: nowrap;
	font-family: inherit;
	transition: all 0.2s;

	cursor: pointer;
	display: inline-block;
	text-align: center;
	white-space: nowrap;
	font-size: 17px;
	line-height: 1.17648;
	font-weight: 400;
	/* letter-spacing: -.022em; */
	/* border-style: solid; */
	/* border-width: 1px; */

	border-radius: 980px;
	/* background:  var(--accent-hover); */
	color: #fff;
	letter-spacing: -.022em;
	min-width: 28px;
	padding-left: 21px;
	padding-right: 21px;
	padding-top: 11px;
	padding-bottom: 11px;
}

.button:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
	color: #fff;
}

.button:active {
	transform: translateY(0);
}

.button.secondary {
	background: transparent;
	color: var(--input-border);
	border: 1px solid var(--input-border);
}

.button.secondary:hover {
	background-color: var(--accent-hover) !important;
	color: #fff;
	/* border-color: var(--input-border); */
	border: none;
	background: transparent;
}

.input-group {
	margin-top: 40px;
	width: 100%;
	max-width: 500px;
	opacity: 0;
	animation: fadeIn 0.6s forwards;
	animation-delay: 0.3s;
	margin-left: auto;
	margin-right: auto;
}

input,
textarea {
	width: 100%;
	padding: 16px 20px;
	font-size: 18px;
	background: var(--input-bg);
	border: 2px solid var(--input-border);
	border-radius: 8px;
	color: var(--text);
	font-family: inherit;
	transition: border-color 0.2s;
	resize: vertical;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
	color: var(--gray);
}

.submit-button {
	margin-top: 20px;
	width: 100%;
}

.progress {
	margin-top: 40px;
	opacity: 0;
	animation: fadeIn 0.6s forwards;
}

.progress-bar {
	width: 200px;
	height: 4px;
	background: var(--input-border);
	border-radius: 2px;
	overflow: hidden;
	margin: 20px auto;
}

.progress-fill {
	height: 100%;
	background: var(--accent);
	width: 0;
	animation: progress 3s ease-out forwards;
}

@keyframes progress {
	to {
		width: 100%;
	}
}

.stats {
	font-size: 72px;
	font-weight: 700;
	color: var(--accent);
	margin: 20px 0;
	text-align: center;
}

.hidden {
	display: none;
}

.fade-out {
	animation: fadeOut 0.4s forwards;
}

@keyframes fadeOut {
	to {
		opacity: 0;
	}
}

/* Landing Page Styles */
.landing-content {
	opacity: 0;
	transition: opacity 0.6s ease;
}

.landing-content.visible {
	opacity: 1;
}

.section-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Hero Section */
.hero-section {
	padding: 80px 0 40px;
	text-align: center;
}

.hero-container {
	max-width: 800px;
	margin: 0 auto;
}

.hero-title {
	font-size: clamp(39px, 6vw, 54px);
	font-weight: 600;
	margin-bottom: 20px;
	line-height: 1.2;
}

.hero-subtitle {
	font-size: clamp(18px, 3vw, 24px);
	color: var(--gray);
	margin-bottom: 40px;
	line-height: 1.5;
}

.hero-cta {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

.cta-primary {
	background: var(--accent);
	color: white;
	padding: 16px 32px;
	font-size: 14px;
	font-weight: 500;
}

.cta-secondary {
	background: transparent;
	color: var(--input-border);
	border: 2px solid var(--input-border);
	padding: 16px 32px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

/* Features Section */
.features-section {
	padding: 20px 0;
	background: var(--section-bg);
}

.section-title {
	font-size: clamp(38px, 4vw, 48px);
	font-weight: 600;
	text-align: center;
	margin-bottom: 40px;
	line-height: 1.4;
}

.features-grid {
	display: flex;
	/* grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); */
	gap: 30px;
	padding-bottom: 20px;
	/* flex-direction: column; */
}

.features-grid-partner {
	display: flex;
	gap: 30px;
	padding-bottom: 20px;
	flex-direction: column;
}

.feature-card {
	background: var(--card-bg);
	padding: 30px 30px 40px 30px;
	border-radius: 12px;
	/* text-align: center; */
	border: 1px solid var(--border-color);
	transition: transform 0.2s;
	margin-bottom: 20px;
}

.feature-card:hover {
	transform: translateY(-5px);
}

.feature-icon {
	font-size: 48px;
	margin-bottom: 20px;
}

.feature-card h3 {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 15px;
}

.feature-card p {
	color: var(--gray);
	line-height: 1.5;
	font-size: 18px;
}

/* Stats Section */
.stats-section {
	padding: 30px 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	text-align: center;
}

.stat-number {
	font-size: 88px;
	font-weight: 700;
	color: var(--accent);
	/* margin-bottom: 10px; */
}

.stat-label {
	color: var(--gray);
	font-size: 18px;
}

/* Pricing Section */
.pricing-section {
	padding: 80px 0;
	background: var(--section-bg);
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	margin-top: 60px;
}

.pricing-card {
	background: var(--card-bg);
	padding: 30px 20px;
	border-radius: 12px;
	text-align: center;
	border: 1px solid var(--border-color);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	align-content: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.pricing-card.featured {
	border: 2px solid var(--accent);
	transform: scale(1.05);
}

.pricing-card.featured::before {
	content: '★ ★ ★ ★ ★';
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent);
	color: white;
	padding: 6px 20px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
}

.pricing-card h3 {
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 15px;
}

.price {
	font-size: 38px;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 10px;
}

.price-desc {
	color: var(--gray);
	margin-bottom: 30px;
}

.features-list {
	list-style: none;
	margin-bottom: 20px;
}

.features-list li {
	padding: 4px 0;
	position: relative;
	padding-left: 25px;
	text-align: left;
}

.features-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: bold;
}

/* FAQ Section */
.faq-section {
	padding: 80px 0;
}

.faq-list {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 20px;
}

.faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	cursor: pointer;
	transition: color 0.2s;
}

.faq-question:hover {
	color: var(--accent);
}

.faq-question h3 {
	font-size: 20px;
	font-weight: 500;
}

.faq-toggle {
	font-size: 24px;
	font-weight: bold;
	transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
	max-height: 200px;
	padding-bottom: 20px;
}

.faq-answer p {
	color: var(--gray);
	line-height: 1.6;
	font-size: 18px;
}

/* Contact Section */
.contact-section {
	padding: 80px 0;
	background: var(--section-bg);
}

.contact-form-container {
	max-width: 600px;
	margin: 0 auto;
}

.contact-form {
	background: var(--card-bg);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
}

.form-group {
	margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
	font-size: 16px;
	padding: 14px 18px;
}

.form-group textarea {
	min-height: 120px;
	resize: vertical;
}

/* Footer */
.footer {
	padding: 50px 0;
	/* border-top: 1px solid var(--border-color); */
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.footer-links a {
	color: var(--gray);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--text);
}

.footer-copy {
	color: var(--gray);
	font-size: 14px;
}

/* Loading dots animation */
.loading-dots {
	display: inline-block;
}

/* .loading-dots::after {
	content: '';
	animation: dots 1.5s steps(4, end) infinite;
} */

@keyframes dots {
	0% {
		content: '';
	}

	25% {
		content: '.';
	}

	50% {
		content: '..';
	}

	75% {
		content: '...';
	}

	100% {
		content: '';
	}
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
	.nav-menu {
		display: none;
		/* Simple mobile approach - можно добавить гамбургер меню позже */
	}

	.hero-cta {
		flex-direction: column;
		align-items: center;
	}

	.cta-primary,
	.cta-secondary {
		width: 100%;
		max-width: 280px;
	}



	.features-grid {
		display: flex;
		/* grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); */
		gap: 30px;
		padding-bottom: 20px;
		flex-direction: column;
		padding-bottom: 20px;
	}

	.pricing-grid {
		grid-template-columns: 1fr;
	}

	.pricing-card.featured {
		transform: none;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}

	.footer-links {
		/* flex-direction: column; */
		gap: 15px;
	}

	.message {
		font-size: clamp(20px, 8vw, 36px);
		/* word-break: normal; */
		/* overflow-wrap: break-word; */
	}

	.action-buttons {
		gap: 15px;
	}

	button {
		font-size: 16px;
		padding: 10px 24px;
		white-space: normal;
		min-width: 80px;
	}

	input,
	textarea {
		font-size: 16px;
		padding: 14px 18px;
	}

	.stats {
		font-size: 56px;
	}

	.contact-form {
		padding: 30px 20px;
	}
}

@media (max-width: 600px) {
	.section-container {
		padding: 0 15px;
	}

	.hero-section {
		padding: 80px 20px 20px 20px;
	}

	.features-section,
	.pricing-section,
	.faq-section,
	.contact-section {
		padding: 30px 0;
	}

	.feature-card,
	.pricing-card {
		/* padding: 30px 40px; */
	}
}

/* Добавить в конец файла inter.css */

/* Dialogue hide animation */
.dialogue-section.hide {
	opacity: 0;
	transform: translateY(-20px);
	pointer-events: none;
}

/* Ensure landing shows properly when dialogue is hidden */
body.landing-mode .dialogue-section {
	display: none;
}

body.landing-mode .landing-content {
	padding-top: 0;
}

/* Debug button for testing (remove in production) */
.debug-reset {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #ff0000;
	color: white;
	border: none;
	padding: 10px 15px;
	border-radius: 5px;
	cursor: pointer;
	z-index: 9999;
	font-size: 12px;
	display: none;
	/* Hide by default */
}

/* Show debug button only when Ctrl+Shift is held */
body.debug-mode .debug-reset {
	display: block;
}


/* Form loading states */
.loading-spinner {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid #ffffff40;
	border-top: 2px solid #ffffff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-right: 8px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Success message styles */
.form-success-message {
	text-align: center;
	padding: 40px 20px;
	background: linear-gradient(135deg, #4CAF50, #45a049);
	border-radius: 12px;
	color: white;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.4s ease;
}

.form-success-message.visible {
	opacity: 1;
	transform: translateY(0);
}

.success-icon {
	font-size: 48px;
	margin-bottom: 16px;
	animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
	0% {
		transform: scale(0);
	}

	50% {
		transform: scale(1.2);
	}

	100% {
		transform: scale(1);
	}
}

.form-success-message h3 {
	margin: 0 0 12px 0;
	font-size: 24px;
	font-weight: 600;
}

.form-success-message p {
	margin: 0 0 20px 0;
	opacity: 0.9;
	line-height: 1.5;
}

.success-loading {
	display: flex;
	justify-content: center;
	align-items: center;
}

.loading-dots {
	display: flex;
	gap: 4px;
}

.loading-dots span {
	width: 8px;
	height: 8px;
	background-color: white;
	border-radius: 50%;
	animation: loadingBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
	animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes loadingBounce {

	0%,
	80%,
	100% {
		transform: scale(0);
		opacity: 0.5;
	}

	40% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Error message styles */
.form-error-message {
	background: #ff5252;
	color: white;
	padding: 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	animation: errorSlideIn 0.3s ease-out;
}

@keyframes errorSlideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.error-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.form-error-message p {
	margin: 0 0 4px 0;
	font-weight: 500;
}

.form-error-message small {
	opacity: 0.8;
	font-size: 12px;
	line-height: 1.3;
}

/* Form transition states */
.contact-form {
	transition: all 0.3s ease;
}

.contact-form.loading {
	pointer-events: none;
	opacity: 0.7;
}

/* Button disabled state */
button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

button:disabled:hover {
	transform: none !important;
	box-shadow: none !important;
}