/* ========== Mobile & Tablet Adaptive ========== */

/* Tablet */
@media (max-width: 992px) {
	.container-wrap {
		width: 88vw;
	}

	#first {
		height: auto;
		min-height: 50vw;
		padding: 6vw 0;
	}

	#first .container-wrap .offer-wrap {
		flex-wrap: wrap;
		gap: var(--gap-m);
		justify-content: center;
	}

	#first .container-wrap .offer-item-wrap {
		min-width: 40%;
	}

	#advantages .container-wrap {
		flex-wrap: wrap;
		justify-content: center;
		gap: var(--gap-m);
	}

	#advantages .advantage-wrap {
		width: 45%;
		min-width: 200px;
	}

	#advantages .advantage-img-wrap {
		height: 10vw;
	}

	#download .download-wrap {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	#download .download-present-wrap {
		align-items: center;
	}

	#download .download-ill-wrap {
		width: 35vw;
		height: 42vw;
		margin-right: 0;
	}

	#download .spec-wrap {
		flex-wrap: wrap;
		justify-content: center;
	}

	#download .spec-item-wrap {
		width: 45%;
		min-width: 200px;
	}

	#faq .container-wrap {
		width: 88vw;
	}

	#about .about-text br {
		display: none;
	}

	#tariffs .tariffs-wrap {
		flex-wrap: wrap;
		justify-content: center;
		gap: var(--gap-m);
	}

	#tariffs .tariff-wrap {
		width: 30%;
		min-width: 220px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	:root {
		--font-size-xs: 3.2vw;
		--font-size-s: 3.6vw;
		--font-size-m: 4vw;
		--font-size-l: 4.5vw;
		--font-size-xl: 7vw;
		--radius-xs: 2px;
		--radius-s: 3px;
		--radius-m: 4px;
		--radius-l: 6px;
		--padding-xs: 2vw;
		--padding-s: 3vw;
		--padding-m: 4vw;
		--padding-l: 5vw;
		--gap-xs: 2vw;
		--gap-s: 3vw;
		--gap-m: 4vw;
		--gap-l: 5vw;
		--gap-xl: 6vw;
	}

	body {
		gap: var(--gap-l);
		overflow-x: hidden;
	}

	.container-wrap {
		width: 92vw;
		gap: var(--gap-m);
	}

	.container-wrap .section-title {
		font-size: var(--font-size-l);
		line-height: 1.2;
	}

	a {
		font-size: 3.2vw;
		line-height: 1.3;
	}

	p {
		font-size: 3vw;
	}

	/* Header mobile: burger + full-screen overlay menu (no overlap with content) */
	#header {
		padding: 3vw 4vw;
		position: relative;
		z-index: 100;
	}

	#header .container-wrap {
		flex-wrap: nowrap;
		gap: 2vw;
		width: 100%;
		max-width: 100%;
	}

	#header .menu-wrap {
		display: none;
		position: fixed;
		inset: 0;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		min-height: 100vh;
		min-height: 100dvh;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		background: #010005;
		padding: 0;
		gap: 0;
		z-index: 999;
		margin: 0;
		box-shadow: none;
		overflow-y: auto;
	}

	#header .menu-wrap.is-open {
		display: flex;
	}

	#header .menu-wrap .menu-panel {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100%;
		max-width: 320px;
		padding: 80px 24px 40px;
		gap: 0;
		box-sizing: border-box;
	}

	#header .menu-wrap .menu-item {
		font-size: 18px;
		padding: 16px 0;
		color: var(--color-3);
		width: 100%;
		text-align: center;
		letter-spacing: 0.02em;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
		box-sizing: border-box;
	}

	#header .menu-wrap .menu-panel > .menu-item:nth-last-child(2) {
		border-bottom: none;
	}

	#header .menu-wrap .menu-item:hover {
		color: var(--color-8);
	}

	#header .menu-wrap .menu-cta {
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 24px;
		width: 100%;
		padding: 14px 20px;
		font-size: 15px;
		text-align: center;
		border-radius: 6px;
		background: var(--color-2);
		border: none;
		min-height: 48px;
		box-sizing: border-box;
	}

	#header .menu-wrap .menu-cta:hover {
		opacity: 0.95;
	}

	body.menu-open {
		overflow: hidden;
		position: fixed;
		width: 100%;
	}

	#header .btn-wrap {
		display: none;
	}

	#header .btn-wrap.header-btn-mob {
		display: flex;
		margin-left: auto;
	}

	.burger-btn {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 40px;
		height: 40px;
		padding: 8px;
		background: var(--color-5);
		border: 1px solid var(--color-6);
		border-radius: var(--radius-s);
		cursor: pointer;
		margin-left: auto;
		transition: 0.2s;
		position: relative;
		z-index: 1001;
	}

	.burger-btn span {
		display: block;
		width: 100%;
		height: 2px;
		background: var(--color-3);
		border-radius: 1px;
		transition: 0.3s;
	}

	.burger-btn.is-active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	.burger-btn.is-active span:nth-child(2) {
		opacity: 0;
	}

	.burger-btn.is-active span:nth-child(3) {
		transform: rotate(-45deg) translate(5px, -5px);
	}

	.logo-wrap {
		width: 35vw;
		max-width: 140px;
		height: auto;
		min-height: 28px;
	}

	/* First section */
	#first {
		height: auto;
		min-height: auto;
		padding: 6rem 0 10vw;
	}

	#first::before,
	#first::after {
		width: 20vw;
		height: 20vw;
		opacity: 0.5;
	}

	#first .container-wrap .preview-wrap .btn-wrap {
		flex-direction: column;
		width: 100%;
		max-width: 320px;
		gap: 12px;
	}

	#first .container-wrap .preview-wrap .btn-wrap .btn {
		width: 100%;
		text-align: center;
		padding: 14px 20px;
		font-size: 15px;
		min-height: 48px;
		line-height: 1.3;
		box-sizing: border-box;
	}

	#first .container-wrap .utp-wrap {
		font-size: var(--font-size-xl);
		line-height: 1.2;
		margin-bottom: 0.5rem;
	}

	#first .container-wrap .desc-wrap {
		font-size: 14px;
		line-height: 1.5;
		max-width: 320px;
		margin: 0 auto 1.5rem;
	}

	#first .container-wrap .desc-wrap br {
		display: none;
	}

	#first .container-wrap .offer-wrap {
		flex-direction: column;
		gap: var(--gap-s);
		padding: 4vw;
	}

	#first .container-wrap .offer-item-wrap {
		flex-direction: row;
		align-items: center;
		gap: 3vw;
		width: 100%;
	}

	#first .container-wrap .offer-item-num {
		font-size: var(--font-size-m);
		white-space: nowrap;
	}

	#first .container-wrap .offer-item-text {
		font-size: 3vw;
		line-height: 1.3;
		text-align: right;
	}

	/* Advantages */
	#advantages .container-wrap {
		flex-direction: column;
		align-items: stretch;
	}

	#advantages .advantage-wrap {
		width: 100%;
		min-width: unset;
		display: grid;
		grid-template-columns: 48px 1fr;
		grid-template-rows: auto auto;
		gap: 6px 14px;
		align-items: start;
	}

	#advantages .advantage-img-wrap {
		grid-column: 1;
		grid-row: 1 / -1;
		width: 48px;
		height: 48px;
		min-width: 48px;
		min-height: 48px;
	}

	#advantages .advantage-img-wrap img {
		object-fit: contain;
	}

	#advantages .advantage-title {
		grid-column: 2;
		grid-row: 1;
		font-size: var(--font-size-m);
		margin: 0;
	}

	#advantages .advantage-desc {
		grid-column: 2;
		grid-row: 2;
		font-size: 3.2vw;
		line-height: 1.4;
		margin: 0;
	}

	#advantages .advantage-desc br {
		display: none;
	}

	/* Download */
	#download .download-wrap {
		gap: var(--gap-m);
		flex-direction: column;
		align-items: center;
	}

	#download .download-block {
		width: 100%;
		box-sizing: border-box;
		padding: 5vw 4vw;
		border-radius: 12px;
		border: 1px solid rgba(255, 255, 255, 0.12);
		background: linear-gradient(165deg, rgba(105, 31, 234, 0.18) 0%, rgba(23, 8, 45, 0.4) 50%, rgba(1, 0, 5, 0.6) 100%);
		backdrop-filter: blur(20px);
		display: flex;
		flex-direction: column-reverse;
		align-items: center;
		gap: var(--gap-m);
	}

	#download .download-present-wrap {
		width: 100%;
		align-items: center;
		text-align: center;
	}

	#download .download-title {
		font-size: var(--font-size-l);
		line-height: 1.2;
		text-align: center;
	}

	#download .download-desc {
		font-size: 3.2vw;
		text-align: center;
	}

	#download .download-desc br {
		display: none;
	}

	#download .download-present-wrap .btn-wrap .btn,
	#download .download-present-wrap .btn-wrap .btn-download {
		width: 100%;
		text-align: center;
		padding: 14px 20px;
		font-size: 15px;
		min-height: 48px;
		line-height: 1.3;
		background: linear-gradient(90deg, #7157FF 0%, #6413D8 100%);
		border: none;
		box-shadow: 0 4px 20px rgba(113, 87, 255, 0.4);
	}

	#download .download-ill-wrap {
		width: 50vw;
		height: 60vw;
		max-width: 240px;
	}

	#download .download-choice-wrap {
		justify-content: center;
		flex-wrap: nowrap;
		gap: 4vw;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	#download .download-choice-wrap::-webkit-scrollbar {
		display: none;
	}

	#download .download-choice-item-wrap {
		flex-shrink: 0;
		text-decoration: none;
		color: inherit;
		min-width: 64px;
	}

	#download .download-choice-item-active .download-choice-img-wrap,
	#download .download-choice-item-wrap:active .download-choice-img-wrap {
		background: linear-gradient(135deg, rgba(113, 87, 255, 0.5) 0%, rgba(100, 19, 216, 0.5) 100%);
		border-color: rgba(255, 255, 255, 0.25);
	}

	#download .download-choice-item-active .download-choice-img-wrap img,
	#download .download-choice-item-wrap:active .download-choice-img-wrap img {
		opacity: 1;
	}

	#download .download-choice-item-active .download-choice-name,
	#download .download-choice-item-wrap:active .download-choice-name {
		color: #fff;
	}

	#download .spec-wrap {
		flex-direction: column;
	}

	#download .spec-item-wrap {
		width: 100%;
		min-width: unset;
		display: grid;
		grid-template-columns: 44px 1fr;
		grid-template-rows: auto auto;
		gap: 4px 12px;
		align-items: start;
	}

	#download .spec-item-img-wrap {
		grid-column: 1;
		grid-row: 1 / -1;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}

	#download .spec-item-title {
		grid-column: 2;
		grid-row: 1;
		font-size: 3.8vw;
		margin: 0;
	}

	#download .spec-item-desc {
		grid-column: 2;
		grid-row: 2;
		font-size: 3.2vw;
		margin: 0;
	}

	/* Tariffs */
	#tariffs .tariffs-wrap {
		flex-direction: column;
		align-items: stretch;
		gap: var(--gap-m);
	}

	#tariffs .tariff-wrap {
		width: 100%;
		min-width: unset;
		padding: 5vw 4vw;
	}

	#tariffs .tariff-icon-wrap {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}

	#tariffs .tariff-title {
		font-size: 5vw;
	}

	#tariffs .tariff-subtitle {
		font-size: 3.5vw;
	}

	#tariffs .tariff-features li {
		padding-left: 24px;
		font-size: 3.8vw;
	}

	#tariffs .tariff-features li::before {
		min-width: 8px;
		min-height: 8px;
	}

	#tariffs .tariff-price {
		font-size: 4vw;
	}

	#tariffs .tariff-btn {
		padding: 14px 20px;
		font-size: 15px;
		min-height: 48px;
	}

	#tariffs .tariff-discount {
		font-size: 3.2vw;
	}

	/* About */
	#about .about-wrap {
		align-items: center;
		text-align: center;
	}

	#about .section-title {
		text-align: center;
		font-size: var(--font-size-l);
	}

	#about .about-text-wrap {
		padding-left: 0;
		border-left: none;
		padding-top: 2vw;
		border-top: 1px solid var(--color-4);
	}

	#about .about-text::before {
		display: none;
	}

	#about .about-text {
		font-size: 3.2vw;
		line-height: 1.5;
		text-align: center;
	}

	#about .about-text br {
		display: none;
	}

	#about .btn-wrap .btn {
		width: 100%;
		max-width: 280px;
		text-align: center;
		padding: 3.5vw 5vw;
		font-size: 3.5vw;
	}

	/* FAQ */
	#faq .container-wrap {
		width: 92vw;
	}

	#faq .section-title {
		font-size: var(--font-size-m);
		line-height: 1.3;
	}

	#faq .section-title br {
		display: none;
	}

	#faq .question {
		font-size: 3.2vw;
		padding: 3.5vw 10vw 3.5vw 4vw;
	}

	#faq .question .question-btn {
		width: 6vw;
		height: 6vw;
		min-width: 24px;
		min-height: 24px;
		top: 3.5vw;
		right: 3vw;
		background-size: 60%;
	}

	#faq .answer {
		font-size: 3vw;
		padding: 3vw;
	}

	/* Support */
	#support .support-wrap {
		padding: 6vw 4vw;
	}

	#support .section-title {
		font-size: var(--font-size-l);
		line-height: 1.2;
	}

	#support .section-title br {
		display: none;
	}

	#support .support-desc {
		font-size: 3.2vw;
	}

	#support .support-desc br {
		display: none;
	}

	#support .support-btn {
		padding: 3.5vw 6vw;
		font-size: 3.5vw;
	}

	#support .support-btn .icon {
		width: 5vw;
		height: 5vw;
		min-width: 20px;
		min-height: 20px;
	}

	/* Footer */
	#footer {
		margin-bottom: 8vw;
	}

	#footer .container-wrap {
		flex-direction: column;
		gap: 6vw;
	}

	#footer .footer-row {
		flex-direction: column;
		gap: 4vw;
		text-align: center;
		align-items: center;
	}

	#footer .menu-wrap {
		flex-direction: column;
		gap: 2vw;
	}

	#footer .menu-wrap .menu-item {
		font-size: 3.5vw;
	}

	#footer .footer-col {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	#footer .footer-text {
		font-size: 2.8vw;
		line-height: 1.4;
		text-align: center;
	}

	#footer .footer-text br {
		display: none;
	}

	#footer .payments-img {
		width: 50vw;
		max-width: 200px;
		height: auto;
		min-height: 28px;
		/* align-self: flex-end; */
	}

	/* @media (max-width: 760px) {
		#footer .payments-img {
			align-self: center;
		}
	} */

	#footer .footer-link {
		font-size: 3.2vw;
	}

	.btn {
		padding: 12px 20px;
		font-size: 14px;
		min-height: 44px;
		line-height: 1.3;
		box-sizing: border-box;
	}
}

/* Desktop: hide burger */
@media (min-width: 769px) {
	.burger-btn {
		display: none !important;
	}
}
