/* ============================================================
   Responsive Styles
   ============================================================ */

/* --- Tablet (768-1024px) --- */
@media (max-width: 1024px) {
	:root {
		--header-height: 56px;
	}


	.section {
		padding: 60px 0;
	}

	.section-title {
		font-size: 30px;
		margin-bottom: 36px;
	}

	/* Header */
	.header-phone {
		display: none;
	}

	.header-cta {
		display: inline-flex;
	}

	/* Services */
	.services-header {
		margin-bottom: 36px;
	}

	.services-title {
		font-size: 30px;
		max-width: 100%;
	}

	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.service-card {
		padding: 28px 24px;
	}

	.service-icon {
		width: 56px;
		height: 56px;
	}

	.service-title {
		font-size: 18px;
	}

	/* Stages — Tablet */
	.stages-header {
		margin-bottom: 32px;
	}

	.stages-title {
		font-size: 30px;
		max-width: 100%;
	}

	.stages-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.stage-card {
		padding: 18px 20px;
		min-height: 90px;
	}

	.stage-num {
		font-size: 30px;
	}

	.stage-title {
		font-size: 15px;
	}

	.stage-desc {
		font-size: 12px;
	}

	/* Hide arrows on tablet */
	.stage-card[data-connector="right"]::after,
	.stage-card[data-connector="left"]::after,
	.stage-card[data-connector="down"]::before,
	.stage-card[data-connector="down"]::after {
		display: none;
	}

	/* Third card spans full width on tablet */
	.stage-card:nth-child(3) {
		grid-column: 1 / -1;
		max-width: 400px;
		justify-self: center;
	}

	/* Footer */
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}

	/* Hero — Tablet */
	.hero-container {
		padding-top: calc(var(--header-height) + 24px);
		padding-bottom: 24px;
	}

	.hero-title {
		font-size: 42px;
	}

	.hero-orb {
		display: none;
	}

	.hero-scroll-indicator {
		display: none;
	}

	.hero-stats {
		padding: 14px 0;
	}

	.hero-stat {
		padding: 6px 28px 6px 0;
	}

	.hero-stat-number {
		font-size: 24px;
	}

	.hero-stat-divider {
		margin-right: 28px;
	}


	/* CTA */
	.cta-wrapper {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.cta-title {
		font-size: 30px;
	}
}

/* --- Mobile (320-767px) --- */
@media (max-width: 767px) {
	:root {
		--header-height: 54px;

		--container-padding: 16px;
	}

	/* Mobile sections: normal flow (JS section-scroll handles desktop only) */
	.section,
	.scroll-section {
		min-height: auto;
		display: block;
	}

	.hero-section {
	}

	.section {
		padding: 50px 0;
	}


	.section-title {
		font-size: 26px;
		margin-bottom: 30px;
	}

	/* Header */
	.logo-text {
		font-size: 18px;
		letter-spacing: 1.5px;
	}

	.header-phone {
		display: none;
	}

	.header-email {
		display: none;
	}

	.header-social {
		display: none;
	}

	.header-cta {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}

	.header-menu {
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		flex-direction: column;
		background: rgba(12, 12, 26, 0.95);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		padding: 20px;
		gap: 6px;
		box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
		transform: translateY(-100%);
		opacity: 0;
		pointer-events: none;
		transition: all 0.35s ease;
		border-bottom: 1px solid rgba(255, 94, 20, 0.15);
	}

	.header-menu.active {
		transform: translateY(0);
		opacity: 1;
		pointer-events: all;
	}

	.header-menu li {
		width: 100%;
	}

	.header-menu a {
		display: flex;
		padding: 12px 16px;
		font-size: 15px;
		font-weight: 500;
		color: rgba(255, 255, 255, 0.85);
		background: rgba(255, 255, 255, 0.04);
		border: 1px solid rgba(255, 255, 255, 0.06);
		border-radius: 10px;
		transition: all 0.3s ease;
		justify-content: center;
	}

	.header-menu a:hover {
		background: rgba(255, 255, 255, 0.08);
		border-color: rgba(255, 94, 20, 0.3);
		color: #ffffff;
	}

	.header-menu li:last-child a {
		border-bottom: none;
	}

	/* Hero */
	.hero-section {
		min-height: 100dvh;
	}

	.hero-container {
		padding-top: calc(var(--header-height) + 20px);
		padding-bottom: 20px;
	}

	.hero-content {
		padding: 0;
	}

	.hero-title {
		font-size: 30px;
	}

	.hero-title br {
		display: none;
	}

	.hero-tags {
		gap: 8px;
		margin-bottom: 18px;
	}

	.hero-tag {
		padding: 6px 13px 6px 11px;
		font-size: 12px;
	}

	.hero-subtitle {
		font-size: 15px;
		margin-bottom: 24px;
		max-width: 100%;
	}

	.hero-cta-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.hero-btn {
		width: 100%;
		justify-content: center;
		padding: 14px 24px;
		font-size: 15px;
	}

	.hero-expert {
		max-width: 100%;
	}

	.hero-stats {
		padding: 12px 0;
	}

	.hero-stat {
		padding: 4px 16px 4px 0;
	}

	.hero-stat-number {
		font-size: 22px;
	}

	.hero-stat-label {
		font-size: 10px;
	}

	.hero-stat-divider {
		margin-right: 16px;
	}

	.hero-scroll-indicator {
		display: none;
	}

	/* Pains */
	.pains-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 32px;
	}

	.pains-title {
		font-size: 26px;
	}

	.pains-counter {
		flex-direction: row;
		align-items: center;
		gap: 8px;
		padding-bottom: 0;
	}

	.pains-counter-number {
		font-size: 22px;
	}

	.pains-counter-label {
		font-size: 10px;
	}

	.accordion-trigger {
		padding: 14px 16px;
		font-size: 15px;
		gap: 12px;
	}

	.accordion-icon {
		width: 36px;
		height: 36px;
	}

	.accordion-icon svg {
		width: 18px;
		height: 18px;
	}

	.accordion-title {
		font-size: 14px;
	}

	.accordion-body {
		padding: 0 16px 16px 62px;
		font-size: 14px;
	}

	/* Services */
	.services-header {
		margin-bottom: 28px;
	}

	.services-title {
		font-size: 26px;
		max-width: 100%;
	}

	.services-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.service-card {
		padding: 24px 20px;
	}

	.service-icon {
		width: 52px;
		height: 52px;
	}

	.service-icon svg {
		width: 26px;
		height: 26px;
	}

	.service-title {
		font-size: 17px;
	}

	/* Stages */
	.stages-header {
		margin-bottom: 28px;
	}

	.stages-title {
		font-size: 28px;
		max-width: 100%;
	}

	.stages-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.stage-card {
		padding: 16px 18px;
		min-height: 80px;
	}

	.stage-num {
		font-size: 28px;
	}

	.stage-title {
		font-size: 15px;
	}

	.stage-desc {
		font-size: 12px;
	}

	/* Hide arrows on tablet */
	.stage-card[data-connector="right"]::after,
	.stage-card[data-connector="left"]::after,
	.stage-card[data-connector="down"]::before,
	.stage-card[data-connector="down"]::after {
		display: none;
	}

	/* Third card (step 3) spans full width on tablet to make room for arrow down */
	.stage-card:nth-child(3) {
		grid-column: 1 / -1;
		max-width: 400px;
		justify-self: center;
	}

	.review-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 20px;
	}

	/* About */
	.team-grid {
		gap: 24px;
	}

	.team-photo-placeholder {
		width: 100px;
		height: 100px;
	}

	.company-timeline {
		gap: 16px;
	}

	.company-milestone {
		width: calc(50% - 8px);
		padding: 14px;
	}

	.milestone-year {
		font-size: 22px;
	}

	/* FAQ */
	.faq-question {
		padding: 14px 16px;
		font-size: 15px;
	}

	.faq-answer > div {
		padding: 0 16px 14px;
		font-size: 14px;
	}

	/* CTA */
	.cta-section {
		padding: 50px 0;
	}

	.cta-title {
		font-size: 26px;
		text-align: center;
	}

	.cta-text {
		text-align: center;
	}

	.cta-contacts {
		text-align: center;
	}

	.cta-phone {
		font-size: 22px;
	}

	.cta-social {
		justify-content: center;
	}

	.cta-form {
		padding: 24px 20px;
	}

	/* Footer */
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 30px;
		text-align: center;
	}

	.footer-description {
		margin: 0 auto;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}

	/* Chat Widget */
	.chat-widget {
		bottom: 80px;
		right: 16px;
	}

	.chat-window {
		width: calc(100vw - 32px);
		right: 0;
	}

	/* Floating Panel (Mobile) */
	.floating-panel {
		display: flex !important;
	}
}

/* --- Desktop only (1025px+) --- */
@media (min-width: 1025px) {
	.header-cta {
		display: inline-flex;
	}

	.floating-panel {
		display: none !important;
	}
}

/* --- Floating Panel --- */
.floating-panel {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	display: flex;
	background: var(--color-white);
	border-top: 1px solid var(--color-border);
	padding: 8px 16px;
	padding-bottom: calc(8px + env(safe-area-inset-bottom));
	justify-content: space-around;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.floating-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	font-size: 11px;
	font-weight: 500;
	text-decoration: none;
	transition: background var(--transition-speed) var(--transition-ease);
}

.floating-call {
	color: var(--color-success);
}

.floating-wa {
	color: #25d366;
}

.floating-tg {
	color: #0088cc;
}

.floating-max {
	color: var(--color-primary);
}

.floating-btn:hover {
	background: var(--color-bg-light);
}

.floating-panel .social-max-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	font-size: 9px;
	font-weight: 800;
	color: #fff;
	background: currentColor;
	border-radius: 4px;
	line-height: 1;
}
