/* Home sections after the hero (front page only). Motion uses transform/opacity only. */

.site-main--home > section + section {
	margin-top: clamp(64px, 6.25vw, 82px);
}

.site-main--home > .home-services {
	margin-top: clamp(48px, 4.4vw, 80px);
}

/* ---------- Shared section head ---------- */
.at-section-head {
	max-width: 690px;
	margin: 0 auto 48px;
	text-align: center;
}

.at-section-head__title {
	margin: 0;
	color: var(--at-body);
	font-size: clamp(22px, 1.4vw + 4px, 26px);
	font-weight: 600;
	line-height: 1.6;
}

.at-section-head__text {
	margin: 12px 0 0;
	color: var(--at-muted);
	font-size: 16px;
	line-height: 2;
}

/* White pill badge overlapping an image edge (about, FAQ). */
.at-badge {
	position: absolute;
	display: inline-flex;
	align-items: center;
	min-height: 72px;
	margin: 0;
	padding: 12px 32px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 14px 36px -18px rgba(2, 2, 2, 0.25);
	color: var(--at-body);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	transition: transform 0.35s var(--at-ease);
}

.at-badge h2 {
	margin: 0;
	font: inherit;
}

/* ---------- 2. Services ---------- */
.home-services__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.svc-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 290px;
	padding: 28px 40px 28px 40px;
	overflow: hidden;
	border: 1px solid var(--at-line);
	border-radius: 40px;
	background: #fff;
	transition: transform 0.35s var(--at-ease), box-shadow 0.35s var(--at-ease), border-color 0.35s ease;
}

.svc-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../images/home/card-swoosh.svg") left top / 100% auto no-repeat;
	opacity: 0.16;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(105deg, #000 10%, transparent 70%);
	mask-image: linear-gradient(105deg, #000 10%, transparent 70%);
	transition: opacity 0.35s ease, transform 0.6s var(--at-ease);
}

.svc-card__icon {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: 80px;
	height: 93px;
	color: var(--at-teal);
	transition: transform 0.45s var(--at-ease);
}

.svc-card__icon .at-icon {
	width: auto;
	max-width: 80px;
	height: auto;
	max-height: 93px;
}

.svc-card--software .at-icon { width: 59px; }
.svc-card--render .at-icon { width: 76px; }
.svc-card--security .at-icon { width: 64px; }

.svc-card__body {
	position: relative;
	min-width: 0;
}

.svc-card__title {
	margin: 0 0 12px;
	color: var(--at-body);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.6;
	transition: color 0.3s ease;
}

.svc-card__text {
	margin: 0;
	color: var(--at-muted);
	font-size: 16px;
	line-height: 2;
	text-align: justify;
}

.svc-card:hover {
	border-color: rgba(87, 179, 183, 0.25);
	box-shadow: 0 24px 48px -28px rgba(37, 37, 37, 0.35);
}

.svc-card:hover .svc-card__title {
	color: var(--at-teal);
}

.svc-card:hover {
	transform: translateY(-6px);
}

.svc-card:hover::before {
	opacity: 0.28;
	transform: translateX(-12px);
}

.svc-card:hover .svc-card__icon {
	transform: translateY(-4px) scale(1.06);
}

/* Outline icons fill solid on hover/focus. */
.svc-card .at-icon__body {
	fill: currentColor;
	fill-opacity: 0;
	transition: fill-opacity 0.35s var(--at-ease);
}

.svc-card .at-icon__detail {
	transition: stroke 0.35s var(--at-ease);
}

.svc-card:hover .at-icon__body,
.svc-card:focus-within .at-icon__body {
	fill-opacity: 1;
}

.svc-card:hover .at-icon__detail,
.svc-card:focus-within .at-icon__detail {
	stroke: #fff;
}

/* ---------- 3. About ---------- */
.home-about__inner {
	display: grid;
	grid-template-columns: minmax(0, 717fr) minmax(0, 690fr);
	gap: 33px;
	align-items: center;
}

.home-about__content {
	color: var(--at-muted);
	font-size: 16px;
	line-height: 2;
}

.home-about__eyebrow {
	margin: 0 0 4px;
	color: var(--at-teal);
	font-size: 16px;
}

.home-about__content .at-section-head__title {
	margin-bottom: 16px;
}

.home-about__content p {
	margin: 0;
	text-align: justify;
}

.home-about__list {
	margin: 4px 0;
	padding: 0 20px 0 0;
}

.home-about__list li::marker {
	color: var(--at-teal);
}

.home-about__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center; /* both CTAs share .at-btn's 48px min-height + 1.5px border, so they are the same height */
	justify-content: flex-start; /* RTL start = right edge, at all widths */
	gap: 16px;
	margin-top: 20px;
}

.home-about__media {
	position: relative;
	margin: 0;
}

.home-about__media img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.6s var(--at-ease);
}

.home-about__media .at-badge {
	left: 0;
	bottom: 15%;
	border-radius: 0 999px 999px 0; /* flush with the image's straight left edge (design) */
}

.home-about__media img {
	transform-origin: 0 50%; /* keep the left edge fixed so the badge stays flush */
}

.home-about__media:hover img {
	transform: scale(1.02);
}

.home-about__media:hover .at-badge {
	box-shadow: 0 18px 40px -16px rgba(2, 2, 2, 0.35);
}

/* ---------- 4. Clients ---------- */
.home-clients .at-section-head {
	margin-bottom: 40px;
}

.home-clients__list {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0;
	padding: 0 44px;
	list-style: none;
}

.home-clients__item {
	display: grid;
	place-items: center;
	min-height: 80px;
}

.home-clients__item img {
	display: block;
	width: auto;
	max-width: min(100%, 128px); /* logos uploaded in admin may be larger than the design's 128 x 76 box */
	height: auto;
	max-height: 76px;
	object-fit: contain;
	filter: grayscale(0.15);
	transition: transform 0.35s var(--at-ease), filter 0.35s ease;
}

.home-clients__item:hover img {
	filter: none;
	transform: translateY(-4px) scale(1.08);
}

/* ---------- 5. Consult ---------- */
.home-consult__box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 661px);
	gap: 48px;
	align-items: center;
	min-height: 448px;
	padding: 40px 56px;
	overflow: hidden;
	border-radius: 40px;
	background: #2a3034;
	color: #fff;
	isolation: isolate;
}

.home-consult__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-consult__box::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.6);
}

.home-consult__title {
	margin: 0 0 12px;
	font-size: clamp(20px, 1.4vw + 4px, 26px);
	font-weight: 600;
	line-height: 1.6;
}

.home-consult__text p {
	margin: 0;
	font-size: clamp(17px, 0.9vw + 6px, 22px);
	line-height: 1.75;
}

.home-consult__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
}

.at-field {
	display: grid;
	gap: 8px;
}

.at-field--full,
.home-consult__submit {
	grid-column: 1 / -1;
}

.at-field label {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.at-field__req {
	margin-inline-start: 2px;
	color: #ff8a8a;
}

.at-field input,
.at-field textarea {
	width: 100%;
	min-height: 54px;
	padding: 12px 16px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	background: #fff;
	color: var(--at-body);
	font: inherit;
	font-size: 15px;
	line-height: 1.6;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.at-field textarea {
	min-height: 138px;
	resize: vertical;
}

.at-field input::placeholder,
.at-field textarea::placeholder {
	color: #8a8a8a;
	font-size: 14px;
}

.at-field input:hover,
.at-field textarea:hover {
	border-color: rgba(87, 179, 183, 0.6);
}

.at-field input:focus,
.at-field textarea:focus {
	border-color: var(--at-teal);
	outline: none;
	box-shadow: 0 0 0 4px rgba(87, 179, 183, 0.35);
}

.at-field input[aria-invalid="true"] {
	border-color: #e05a5a;
}

.at-field__error {
	color: #ffb4b4;
	font-size: 13px;
}

.home-consult__submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.home-consult__submit .at-btn {
	order: -1; /* design: button sits at the start (right in RTL) */
	min-width: 160px;
	margin-inline: 0 auto;
}

/* Chrome's UA sheet forces tel inputs to LTR, which pushes the Persian placeholder to the left. */
.at-field input[type="tel"] {
	direction: rtl;
	text-align: right;
}

.home-consult__status {
	margin: 0;
	font-size: 14px;
}

.home-consult__status:empty {
	display: none;
}

.home-consult__notice {
	grid-column: 1 / -1;
	margin: 0;
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	border-inline-start: 4px solid #ffb4b4;
	color: #fff;
	font-size: 15px;
	line-height: 1.8;
}

.home-consult__notice--success {
	border-inline-start-color: var(--at-teal);
	background: rgba(87, 179, 183, 0.2);
}

.home-consult__notice:focus {
	outline: none; /* focused programmatically after the redirect so screen readers announce it; not interactive */
}

/* ---------- 6. Projects ---------- */
.home-projects__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.prj-card {
	--prj-accent: var(--at-teal);
	--prj-tint: #eef7f7;
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--at-line);
	border-top: 4px solid var(--prj-accent);
	border-radius: 24px;
	background: #fff;
	transition: transform 0.35s var(--at-ease), box-shadow 0.35s var(--at-ease), border-color 0.35s ease;
}

.prj-card--momzi { --prj-accent: #ef6725; --prj-tint: #fdeee6; }
.prj-card--cms { --prj-accent: #056bf6; --prj-tint: #e3eefd; }
.prj-card--jaryan { --prj-accent: #e8b800; --prj-tint: #fbf6e2; }
.prj-card--fastfarm { --prj-accent: #fe5623; --prj-tint: #feebe6; }

/* Accent glow: a thin inset line under the top border that thickens on hover. */
.prj-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: 2;
	height: 0;
	background: var(--prj-accent);
	pointer-events: none;
	transition: height 0.3s var(--at-ease);
}

.prj-card__media {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	aspect-ratio: 320 / 290;
	background: var(--prj-tint);
}

.prj-card__media > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* The mockup exports have a light grey backdrop: lift it to white and multiply so the card tint shows through. */
	filter: brightness(1.08);
	mix-blend-mode: multiply;
	transition: transform 0.6s var(--at-ease);
}

.prj-card__logo {
	position: relative;
	z-index: 1;
	display: grid;
	align-self: flex-end; /* RTL column: flex-end = left, as in the design */
	place-items: center;
	min-width: 88px;
	height: 52px;
	margin: -44px 0 14px; /* overlaps the bottom of the media */
	padding: 8px 14px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 20px -10px rgba(37, 37, 37, 0.28);
	transition: transform 0.35s var(--at-ease), box-shadow 0.35s var(--at-ease);
}

.prj-card__logo img {
	display: block;
	max-width: 100%;
	height: auto;
}

.prj-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 0 22px 18px;
}

.prj-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.prj-card__tags li {
	padding: 3px 12px;
	border-radius: 999px;
	background: #f2f4f6;
	color: #4b5563;
	font-size: 12.5px;
	line-height: 1.8;
}

.prj-card__title {
	margin: 0 0 8px;
	color: var(--at-body);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.6;
	transition: color 0.3s ease;
}

.prj-card__text {
	margin: 0 0 18px;
	color: var(--at-muted);
	font-size: 14.5px;
	line-height: 2;
}

.prj-card__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto; /* footer sticks to the bottom, so footers align across a row */
	padding-top: 16px;
	border-top: 1px dashed #e3e8ee;
	color: var(--at-body);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

/* The whole card is clickable through the footer link (one link per card). */
.prj-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
}

.prj-card__arrow {
	display: grid;
	flex: none;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid #edf0f3;
	border-radius: 50%;
	background: #f5f7f9;
	color: var(--at-body);
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.35s var(--at-ease);
}

.prj-card:hover,
.prj-card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 28px 48px -30px rgba(37, 37, 37, 0.4);
	border-color: rgba(87, 179, 183, 0.25);
	border-top-color: var(--prj-accent);
}

.prj-card:hover::before,
.prj-card:focus-within::before {
	height: 2px;
}

.prj-card:hover .prj-card__media > img,
.prj-card:focus-within .prj-card__media > img {
	transform: translateY(-4px) scale(1.04);
}

.prj-card:hover .prj-card__logo,
.prj-card:focus-within .prj-card__logo {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px -12px rgba(37, 37, 37, 0.32);
}

.prj-card:hover .prj-card__title,
.prj-card:focus-within .prj-card__title {
	color: var(--at-teal);
}

.prj-card:hover .prj-card__arrow,
.prj-card:focus-within .prj-card__arrow {
	border-color: var(--at-teal);
	background: var(--at-teal);
	color: #fff;
	transform: translateX(-4px); /* RTL: nudge toward the reading direction */
}

.prj-card__link:focus-visible {
	outline: none;
}

.prj-card:has(.prj-card__link:focus-visible) {
	outline: 2px solid var(--at-ink);
	outline-offset: 3px;
}

/* ---------- 7. FAQ ---------- */
.home-faq__inner {
	display: grid;
	grid-template-columns: minmax(0, 690fr) minmax(0, 704fr);
	gap: 46px;
	align-items: center;
}

.home-faq__media {
	position: relative;
	margin: 0;
}

.home-faq__media img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.6s var(--at-ease);
}

.home-faq__media .at-badge {
	right: 0;
	top: 26%;
	border-radius: 999px 0 0 999px; /* flush with the image's straight right edge (design) */
}

.home-faq__media:hover .at-badge {
	box-shadow: 0 18px 40px -16px rgba(2, 2, 2, 0.35);
}

.home-faq__list {
	display: grid;
	gap: 12px;
	padding-inline-start: 18px; /* room for the number badges overhanging the start edge */
}

.faq-item {
	border: 1px solid var(--at-line);
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
	border-color: rgba(87, 179, 183, 0.5);
	box-shadow: 0 12px 28px -22px rgba(37, 37, 37, 0.4);
}

.faq-item__q {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 52px;
	padding: 10px 28px 10px 20px;
	border-radius: 11px;
	color: var(--at-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
	list-style: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-item__q::-webkit-details-marker {
	display: none;
}

.faq-item__q:focus-visible {
	outline: 2px solid var(--at-ink);
	outline-offset: 2px;
}

.faq-item__num {
	position: absolute;
	inset-inline-start: -18px;
	top: 50%;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--at-btn);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	transition: transform 0.3s var(--at-ease), background-color 0.25s ease, color 0.25s ease;
}

.faq-item__text {
	flex: 1;
}

.faq-item__chevron {
	flex: none;
	width: 9px;
	height: 9px;
	margin-top: -4px;
	border-right: 1.5px solid currentColor; /* physical on purpose: forms a down chevron after rotate(45deg) */
	border-bottom: 1.5px solid currentColor;
	color: var(--at-teal);
	transform: rotate(45deg);
	transition: transform 0.3s var(--at-ease), color 0.25s ease;
}

.faq-item[open] {
	border-color: var(--at-btn);
}

.faq-item[open] .faq-item__q {
	border-radius: 11px 11px 0 0;
	background: var(--at-btn);
	color: #fff;
}

.faq-item[open] .faq-item__num {
	background: #fff;
	border-color: var(--at-btn);
	color: var(--at-btn);
}

.faq-item[open] .faq-item__chevron {
	margin-top: 4px;
	color: #fff;
	transform: rotate(225deg);
}

.faq-item:hover .faq-item__num {
	transform: scale(1.08);
}

.faq-item__a {
	padding: 14px 28px 18px 20px;
	color: var(--at-muted);
	font-size: 14px;
	line-height: 2;
}

.faq-item__a p {
	margin: 0;
	text-align: justify;
}

.faq-item[open] .faq-item__a {
	animation: at-faq-in 0.4s var(--at-ease);
}

@keyframes at-faq-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* ---------- 8. Latest posts ---------- */
.home-blog__grid {
	display: grid;
	grid-template-columns: minmax(0, 464fr) minmax(0, 464fr) minmax(0, 488fr);
	gap: 24px;
	align-items: stretch;
}

.home-blog__grid--few {
	grid-template-columns: repeat(2, minmax(0, 464px));
	justify-content: center;
}

.post-card {
	position: relative;
	min-height: 342px;
	overflow: hidden;
	border-radius: 32px;
	background: #e9eaee;
	isolation: isolate;
}

.post-card__media,
.post-card__media img,
.post-card__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.post-card__media img {
	object-fit: cover;
	transition: transform 0.7s var(--at-ease);
}

.post-card__placeholder,
.post-row__media .post-card__placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #eff0f2, #e1f1f2);
}

.post-card__placeholder img {
	position: static;
	width: 40%;
	max-width: 140px;
	height: auto;
	opacity: 0.55;
	object-fit: contain;
}

.post-card::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	z-index: 0;
	background: linear-gradient(to top, rgba(2, 2, 2, 0.78), transparent);
	pointer-events: none;
}

.post-card__title {
	position: absolute;
	inset-inline: 32px;
	bottom: 24px;
	z-index: 1;
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 2;
	transition: transform 0.35s var(--at-ease);
}

.post-card__title a,
.post-row__title a {
	color: inherit;
	text-decoration: none;
}

.post-card__title a::after,
.post-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card__title a::after {
	inset: -1000px;
}

.post-card:hover .post-card__media img {
	transform: scale(1.06);
}

.post-card:hover .post-card__title {
	transform: translateY(-6px);
}

.post-card:focus-within {
	outline: 2px solid var(--at-ink);
	outline-offset: 3px;
}

.post-card a:focus-visible,
.post-row a:focus-visible {
	outline: none;
}

.home-blog__list {
	display: grid;
	align-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	border-radius: 16px;
	transition: transform 0.3s var(--at-ease);
}

.post-row__media {
	position: relative;
	flex: none;
	width: 148px;
	height: 98px;
	overflow: hidden;
	border-radius: 16px;
	background: #eff0f2;
}

.post-row__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--at-ease);
}

.post-row__media .post-card__placeholder img {
	width: 56%;
	height: auto;
}

.post-row__title {
	margin: 0 0 6px;
	color: var(--at-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 2;
	transition: color 0.25s ease;
}

.post-row__date {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--at-muted);
	font-size: 12px;
}

.post-row__date .at-icon {
	width: 13px;
	height: 14px;
}

.post-row:hover {
	transform: translateX(-4px);
}

.post-row:hover .post-row__title {
	color: var(--at-teal-hover);
}

.post-row:hover .post-row__media img {
	transform: scale(1.08);
}

.post-row:focus-within {
	outline: 2px solid var(--at-ink);
	outline-offset: 4px;
}

.home-blog__empty {
	margin: 0;
	padding: 32px;
	border: 1px dashed #d5d5de;
	border-radius: 24px;
	color: var(--at-muted);
	text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1439.98px) {
	.svc-card {
		padding-inline: 32px;
		gap: 24px;
	}

	.svc-card__text {
		font-size: 15px;
		line-height: 1.9;
	}
}

@media (max-width: 1279.98px) {
	.home-services__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.svc-card {
		min-height: 0;
	}

	.home-clients__list {
		padding-inline: 0;
	}

	.home-consult__box {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		gap: 32px;
		padding: 40px;
	}

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

	.home-blog__list {
		grid-column: 1 / -1;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.post-row {
		flex-direction: column;
		align-items: stretch;
	}

	.post-row__media {
		width: 100%;
		height: auto;
		aspect-ratio: 148 / 98;
	}
}

@media (max-width: 991.98px) {
	.home-about__inner,
	.home-faq__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.home-about__media {
		order: -1;
		max-width: 690px;
		margin-inline: auto 0; /* RTL: stays flush with the box's left edge when narrower than the column */
	}

	.home-faq__media {
		max-width: 690px;
		width: 100%;
		margin-inline: 0 auto; /* RTL: flush with the right edge, where its badge sits */
	}

	.home-clients__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px 16px;
	}

	.home-consult__box {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		padding: 40px 32px;
		border-radius: 32px;
	}
}

@media (max-width: 767.98px) {
	.at-section-head {
		margin-bottom: 32px;
	}

	.at-section-head__text {
		font-size: 15px;
		line-height: 1.9;
	}

	.svc-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 24px 20px;
		border-radius: 28px;
	}

	.svc-card__icon {
		width: 64px;
		height: 64px;
	}

	.svc-card__icon .at-icon {
		max-width: 60px;
		max-height: 64px;
	}

	.svc-card__title {
		font-size: 18px;
	}

	.svc-card__text {
		text-align: start;
	}

	.home-about__content p,
	.faq-item__a p {
		text-align: start;
	}

	.at-badge {
		min-height: 52px;
		padding: 8px 20px;
		font-size: 16px;
	}

	.home-consult__box {
		padding: 28px 20px;
		border-radius: 28px;
	}

	.home-consult__form {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-consult__submit {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.home-consult__submit .at-btn {
		width: 100%;
		margin-inline-start: 0;
	}

	.home-blog__grid,
	.home-blog__grid--few {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-card {
		min-height: 0;
		aspect-ratio: 464 / 342;
	}

	.post-card__title {
		inset-inline: 20px;
		bottom: 16px;
		font-size: 15px;
		line-height: 1.8;
	}

	.home-blog__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-row {
		flex-direction: row;
		align-items: center;
	}

	.post-row__media {
		width: 112px;
		height: 76px;
		aspect-ratio: auto;
	}

	.post-row__title {
		font-size: 15px;
		line-height: 1.8;
	}
}

@media (max-width: 599.98px) {
	.home-clients__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-clients__item img {
		max-width: 110px;
	}

	.faq-item__q {
		padding-inline: 26px 14px;
	}

	.faq-item__a {
		padding-inline: 26px 14px;
	}
}

@media (max-width: 1199.98px) {
	.home-projects__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.home-projects__grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 420px;
		margin-inline: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.svc-card,
	.svc-card::before,
	.svc-card__icon,
	.home-about__media img,
	.home-faq__media img,
	.at-badge,
	.home-clients__item img,
	.prj-card,
	.prj-card::before,
	.prj-card__media > img,
	.prj-card__logo,
	.prj-card__arrow,
	.post-card__media img,
	.post-card__title,
	.post-row,
	.post-row__media img,
	.faq-item__num,
	.faq-item__chevron {
		transition: none;
	}

	.svc-card:hover,
	.svc-card:hover .svc-card__icon,
	.home-clients__item:hover img,
	.prj-card:hover,
	.prj-card:focus-within,
	.prj-card:hover .prj-card__media > img,
	.prj-card:focus-within .prj-card__media > img,
	.prj-card:hover .prj-card__logo,
	.prj-card:focus-within .prj-card__logo,
	.prj-card:hover .prj-card__arrow,
	.prj-card:focus-within .prj-card__arrow,
	.post-card:hover .post-card__media img,
	.post-row:hover,
	.post-row:hover .post-row__media img {
		transform: none;
	}

	.faq-item[open] .faq-item__a {
		animation: none;
	}
}
