/* ======================================================
   Responsive portrait-first — Protect Nuisibles 0.7.3
   Loaded last to provide safe layout overrides.
====================================================== */

/* Tablet and small laptop */
@media (max-width: 900px) {
	.container {
		width: min(100% - 40px, 760px);
		max-width: none;
	}

	section,
	.section {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.header-wrapper {
		flex-wrap: wrap;
		gap: 16px 24px;
		padding: 14px 0;
	}

	.header-wrapper nav {
		order: 3;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.header-wrapper nav ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px 20px;
		list-style: none;
	}

	.hero,
	.hero.section {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.hero-grid,
	.services-grid,
	.why-grid,
	.contact-premium-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-grid {
		gap: 44px;
	}

	.hero-content {
		max-width: 720px;
	}

	.hero h1 {
		font-size: clamp(2.35rem, 7vw, 3.25rem);
	}

	.hero-actions,
	.hero-buttons {
		flex-wrap: wrap;
	}

	.hero-stats {
		flex-wrap: wrap;
		gap: 22px 32px;
	}

	.hero-media {
		max-width: 720px;
		margin-inline: auto;
	}

	.trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.section-title {
		margin-bottom: 48px;
	}

	.section-title h2 {
		font-size: clamp(2rem, 6vw, 2.65rem);
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile portrait */
@media (max-width: 600px) {
	html {
		overflow-x: hidden;
	}

	body {
		font-size: 16px;
		line-height: 1.65;
		overflow-wrap: anywhere;
	}

	.container {
		width: min(100% - 30px, 560px);
	}

	section,
	.section {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.site-header {
		position: relative;
	}

	.header-wrapper {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 14px 0 16px;
	}

	.logo {
		text-align: center;
	}

	.logo img {
		max-height: 58px;
		width: auto;
	}

	.header-wrapper nav {
		order: initial;
	}

	.header-wrapper nav ul,
	.header-wrapper .menu {
		justify-content: center;
		gap: 8px 14px;
		font-size: .94rem;
	}

	.header-phone .btn,
	.header-wrapper > .header-phone,
	.header-wrapper > .header-phone a {
		width: 100%;
	}

	.btn {
		min-height: 48px;
		padding: 13px 20px;
		text-align: center;
	}

	.hero,
	.hero.section {
		padding-top: 48px;
		padding-bottom: 56px;
		text-align: center;
	}

	.hero-grid {
		gap: 34px;
	}

	.hero-badge {
		margin-bottom: 16px;
		padding: 7px 14px;
		font-size: .88rem;
	}

	.hero h1 {
		font-size: clamp(2rem, 10vw, 2.65rem);
		line-height: 1.12;
		margin-bottom: 18px;
	}

	.hero-description,
	.hero-text {
		font-size: 1.06rem;
		margin-bottom: 24px;
	}

	.hero-actions,
	.hero-buttons {
		display: grid;
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 24px;
	}

	.hero-actions .btn,
	.hero-buttons .btn {
		width: 100%;
	}

	.hero-intervention {
		margin-bottom: 22px;
	}

	.hero-stats {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
		text-align: center;
	}

	.hero-stats .stat {
		min-width: 0;
		padding: 12px 6px;
	}

	.hero-stats .stat strong {
		font-size: clamp(1.35rem, 7vw, 1.75rem);
	}

	.hero-stats .stat span {
		font-size: .75rem;
		line-height: 1.35;
	}

	.hero-image {
		width: 100%;
		border-radius: 14px;
	}

	.trust-bar {
		padding: 22px 0;
	}

	.trust-grid {
		grid-template-columns: 1fr;
		gap: 10px;
		font-size: .95rem;
	}

	.section-title {
		margin-bottom: 36px;
	}

	.section-title span {
		margin-bottom: 10px;
		font-size: .78rem;
		letter-spacing: 1.4px;
	}

	.section-title h2 {
		font-size: clamp(1.75rem, 8vw, 2.15rem);
		line-height: 1.2;
		margin-bottom: 14px;
	}

	.section-title p {
		font-size: 1rem;
	}

	.services-grid,
	.why-grid,
	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.card,
	.service-card,
	.why-card {
		padding: 24px 20px;
	}

	.contact-premium-grid {
		gap: 30px;
	}

	.contact-premium-form-wrap,
	.contact-premium-card,
	.faq-item,
	.testimonial-card {
		border-radius: 14px;
	}

	.contact-premium-field-row {
		grid-template-columns: 1fr;
	}

	.contact-premium-form input,
	.contact-premium-form select,
	.contact-premium-form textarea {
		font-size: 16px;
	}

	.contact-premium-submit {
		width: 100%;
		min-height: 50px;
	}

	.testimonials-controls {
		gap: 12px;
	}

	.testimonials-arrow {
		width: 44px;
		height: 44px;
	}

	.faq-item summary {
		padding-right: 44px;
	}
}

/* Very narrow phones */
@media (max-width: 390px) {
	.container {
		width: min(100% - 22px, 368px);
	}

	.hero h1 {
		font-size: 1.9rem;
	}

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

	.hero-stats .stat {
		padding: 8px;
	}

	.header-wrapper nav ul,
	.header-wrapper .menu {
		gap: 7px 11px;
		font-size: .88rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
