/* ==========================================================================
   Foreytor — стили по макету Figma (Desktop 1280)
   ========================================================================== */

:root {
	--fr-ink: #262626;
	--fr-black: #000;
	--fr-turq-light: #dbf3f3;
	--fr-turq: #4bc2c1;
	--fr-turq-dark: #226464;
	--fr-violet-light: #e3d1f1;
	--fr-violet-dark: #381850;
	--fr-grey: #d9d9d9;
	--fr-shadow: 0 4px 4px rgba(0, 0, 0, .25);
	--fr-border: 4px solid var(--fr-ink);
	--fr-radius: 6px;
	--fr-pad: clamp(16px, 2.6vw, 36px);
	--fr-h-main: clamp(36px, 5.4vw, 69px);
	--fr-h2: clamp(24px, 2.5vw, 32px);
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

/* Reset WP flow-layout gaps inside our sections: spacing is set explicitly below. */
.fr-landing .wp-block-group > *,
.fr-landing .wp-block-post-content > * {
	margin-block: 0;
}
.fr-landing p { margin: 0; }

.fr-landing .wp-block-post-content { max-width: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.fr-btn .wp-block-button__link,
a.fr-btn,
span.fr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: var(--fr-radius);
	box-shadow: var(--fr-shadow);
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .15s ease, box-shadow .15s ease;
}
.fr-btn .wp-block-button__link:hover,
a.fr-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(0, 0, 0, .25);
}

.fr-btn--dark .wp-block-button__link,
a.fr-btn--dark {
	min-width: 168px;
	height: 44px;
	padding: 6px 20px;
	background: var(--fr-turq-dark);
	color: #fff;
}

.fr-btn--violet .wp-block-button__link,
a.fr-btn--violet,
span.fr-btn--violet {
	padding: 19px 29px;
	background: var(--fr-violet-light);
	border: var(--fr-border);
	color: var(--fr-black);
}

.fr-btn--light .wp-block-button__link {
	padding: 19px 29px;
	background: var(--fr-turq-light);
	border: var(--fr-border);
	color: var(--fr-black);
}

.fr-btn--big .wp-block-button__link {
	font-size: var(--fr-h2);
	font-weight: 500;
}

.fr-nav-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.fr-nav-buttons.wp-block-buttons { gap: 8px; }

.fr-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 63px;
	height: 44px;
	border-radius: 10px;
	background: var(--fr-turq);
	flex: none;
}
.fr-search img { display: block; width: 27px; height: auto; }

.fr-lang {
	display: inline-flex;
	gap: 8px;
}
.fr-lang__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	box-sizing: border-box;
	padding: 0 10px;
	border: 2px solid var(--fr-ink);
	border-radius: var(--fr-radius);
	color: var(--fr-ink);
	font-size: 16px;
	text-decoration: none;
}
.fr-lang__item:hover { background: rgba(255, 255, 255, .5); }
.fr-lang__item.is-current {
	background: var(--fr-turq-dark);
	border-color: var(--fr-turq-dark);
	color: #fff;
}

/* Arrow link: "читать больше →" / "подробнее →" */
.fr-more {
	display: flex;
	justify-content: flex-end;
}
.fr-more a {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--fr-violet-dark);
	text-decoration: none;
}
.fr-more a::after {
	content: "";
	width: 26px;
	height: 15px;
	background: url(../img/arrow.svg) center / contain no-repeat;
	transition: transform .15s ease;
}
.fr-more a:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.fr-card {
	box-sizing: border-box;
	border: var(--fr-border);
	border-radius: var(--fr-radius);
	box-shadow: var(--fr-shadow);
	overflow: hidden;
}
.fr-card--turquoise { background: var(--fr-turq-light); }
.fr-card--violet { background: var(--fr-violet-light); border-color: var(--fr-black); }
.fr-card--outline { border-color: var(--fr-black); box-shadow: none; }

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

/* --------------------------------------------------------------------------
   Hero (первый экран)
   -------------------------------------------------------------------------- */

.fr-hero {
	position: relative;
	padding: 10px var(--fr-pad) 190px clamp(16px, 2.3vw, 30px);
	background: linear-gradient(-56deg, #e6f1f1 5.48%, #dbf3f3 20.33%, #89e4e3 49.67%, #4bc2c1 75.38%);
	border-radius: 0 0 10px 10px;
	overflow: hidden;
}
.fr-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: clamp(60px, 10.2vw, 130px);
	background: url(../img/graph.svg) center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.fr-hero__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	padding: 48px 0 0 6px;
}
.fr-landing .fr-logo { margin: 0; }
.fr-logo img { display: block; width: 150px; height: auto; }

.fr-hero__definition {
	max-width: 498px;
	margin-right: 20px !important;
	font-size: 16px;
	line-height: 1.3;
}

.fr-landing .fr-hero__title {
	margin-top: clamp(32px, 5.6vw, 72px);
	padding-left: 6px;
	font-size: var(--fr-h-main);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.fr-hero__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-left: 6px;
	margin-top: 8px !important;
}
.fr-hero__since {
	font-size: var(--fr-h2);
	font-weight: 500;
	color: var(--fr-black);
}
.fr-hero__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.fr-cards--lead {
	gap: 27px;
	margin-top: clamp(48px, 8.9vw, 114px) !important;
}
.fr-cards--lead .fr-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	padding: 41px 23px;
}
.fr-card__lead {
	font-size: var(--fr-h2);
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
}

.fr-cases {
	display: flex;
	flex-direction: column;
	gap: 47px;
	margin-top: 44px !important;
	padding-right: 6px;
	color: var(--fr-black);
}
.fr-case {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.fr-cases .wp-block-buttons { margin-top: -11px !important; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.fr-services {
	position: relative;
	padding: 48px clamp(16px, 2.2vw, 28px) 110px;
	background: linear-gradient(53.5deg, #e3d1f1 2.32%, rgba(227, 209, 241, .7) 32.23%, rgba(213, 180, 239, .95) 59.22%, #45265c 91.43%);
	border-radius: var(--fr-radius);
	overflow: hidden;
	scroll-margin-top: 16px;
}
.fr-services::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: clamp(80px, 20vw, 257px);
	background: url(../img/div-line.svg) center bottom / 100% 100% no-repeat;
	pointer-events: none;
}
.fr-services > * { position: relative; z-index: 1; }

.fr-landing h2.wp-block-heading {
	font-size: var(--fr-h-main);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	color: var(--fr-ink);
}

.fr-cards--services {
	gap: 30px;
	margin-top: clamp(40px, 7.3vw, 93px) !important;
}
.fr-cards--services .fr-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	min-height: 511px;
	padding: 23px 28px;
}
.fr-cards--services h3 {
	margin: 0;
	font-size: var(--fr-h2);
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	color: var(--fr-ink);
}
.fr-cards--services p:not(.fr-more) {
	color: var(--fr-black);
	font-size: 18px;
}
.fr-cards--services .fr-more { font-size: 16px; }

.fr-services__cta {
	justify-content: center;
	margin-top: 73px !important;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.fr-about {
	padding: 25px clamp(16px, 2.3vw, 30px) 96px;
	scroll-margin-top: 16px;
}
.fr-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 356px) minmax(0, 1fr);
	gap: 61px;
	margin-top: clamp(40px, 6.6vw, 84px) !important;
	align-items: start;
}
.fr-stat {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 18px 23px;
	box-shadow: none;
}
.fr-stat__number {
	font-size: clamp(80px, 11.3vw, 145px);
	font-weight: 600;
	line-height: .97;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}
.fr-stat__unit {
	font-size: .7em;
	line-height: 1.04;
}
.fr-stat__text,
.fr-about__text {
	font-size: var(--fr-h2);
	font-weight: 500;
	line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */

.fr-topbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 16px var(--fr-pad);
	background: linear-gradient(-56deg, #e6f1f1 5.48%, #dbf3f3 20.33%, #89e4e3 49.67%, #4bc2c1 75.38%);
	border-radius: 0 0 10px 10px;
}
.fr-topbar__logo img { display: block; width: 150px; height: auto; }
.fr-topbar__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.fr-page {
	padding-top: 48px;
	padding-bottom: 96px;
}
.fr-page__title.wp-block-post-title,
.fr-page__title.wp-block-heading,
.fr-page__title.wp-block-query-title {
	font-size: clamp(32px, 4.4vw, 56px);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}
.fr-page__date { font-size: 16px; color: var(--fr-violet-dark); }
.fr-page img { max-width: 100%; height: auto; }
.fr-page a { color: var(--fr-violet-dark); }
.fr-list { list-style: none; padding: 0; }
.fr-list__item {
	padding: 24px 0;
	border-bottom: 2px solid var(--fr-ink);
}
.fr-list__item .wp-block-post-title a { color: var(--fr-ink); text-decoration: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.fr-footer {
	padding: 56px var(--fr-pad) 32px;
	background: var(--fr-turq-light);
	border-top: var(--fr-border);
	color: var(--fr-ink);
}
.fr-footer p { margin: 0; }
.fr-footer a { color: var(--fr-ink); text-decoration: none; }
.fr-footer a:hover { text-decoration: underline; }

.fr-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 48px;
}
.fr-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.fr-footer__brand img { display: block; width: 150px; height: auto; }
.fr-footer__tagline { max-width: 300px; font-size: 16px; }
.fr-footer__since { font-size: 16px; font-weight: 500; }

.fr-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 18px;
}
.fr-footer__title {
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
}
.fr-footer__hours { font-size: 16px; }

.fr-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--fr-radius);
	background: var(--fr-turq-dark);
	box-shadow: var(--fr-shadow);
	color: #fff !important;
	font-size: 20px;
	font-weight: 700;
	text-decoration: none !important;
}

.fr-footer__cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}
.fr-footer__cta-title {
	font-size: var(--fr-h2);
	font-weight: 500;
}
.fr-footer__cta .fr-btn { font-size: 18px; }
.fr-footer .fr-btn:hover { text-decoration: none; }

.fr-footer__divider {
	height: 2px;
	margin: 40px 0;
	border: 0;
	background: var(--fr-ink);
}

.fr-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px 32px;
	font-size: 16px;
}
.fr-footer__legal,
.fr-footer__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.fr-footer__links a,
.fr-footer__links span {
	color: var(--fr-violet-dark);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.fr-cards--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.fr-cards { grid-template-columns: minmax(0, 1fr); }
	.fr-cards--lead .fr-card { min-height: 180px; }
	.fr-cards--services .fr-card { min-height: 0; }
	.fr-hero__head { flex-direction: column; }
	.fr-hero__definition { margin-right: 0 !important; }
	.fr-about__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.fr-footer__top { flex-direction: column; gap: 32px; }
}

@media (max-width: 600px) {
	.fr-btn--dark .wp-block-button__link,
	a.fr-btn--dark { min-width: 0; }
	.fr-btn .wp-block-button__link,
	a.fr-btn,
	span.fr-btn { white-space: normal; }
	.fr-hero { padding-bottom: 120px; }
	.fr-topbar__actions { width: 100%; }
}
