/*
Theme Name: Refreol
Description: Сайт Refreol. Концепція F («Форма»): блакитний перший екран, арки й кола, кнопки-пігулки. Сторінки складаються з блоків Gutenberg.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: refreol
*/

:root {
	--navy: #0b2233;
	--blue: #04a4cc;
	--pale: #e2f4fa;
	--mute: #4b5f6f;
	--deep: #036a85;
	--sky: #5fd0ee;
	--line: rgba(11, 34, 51, 0.16);
	--u: 'Unbounded', sans-serif;
	--g: 'Golos Text', sans-serif;
	--pad: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.6 var(--g); color: var(--navy); background: #fff; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:where(h1, h2, h3, h4, p, figure, ul, ol) { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.rf-dark :focus-visible, .rf-contact :focus-visible, .rf-hero :focus-visible { outline-color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rf-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip-path: none; padding: 12px 18px; background: #fff; border-radius: 999px; }

.rf-wrap { max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Type ---------- */
.rf-eyebrow, .is-style-rf-eyebrow { font: 500 13px/1.4 var(--u); letter-spacing: 0.08em; text-transform: uppercase; }
.rf-eyebrow a { text-decoration: none; border-bottom: 2px solid currentColor; padding: 12px 0 3px; }
.rf-eyebrow--deep { color: var(--deep); }
.rf-h2, .rf-main h2.wp-block-heading { font: 700 48px/1.08 var(--u); letter-spacing: -0.02em; }
.rf-main h2.rf-h2--md { font-size: 38px; }
.rf-main h2.rf-sub { font: 700 20px/1.2 var(--u); letter-spacing: 0; color: var(--deep); margin: 36px 0 16px; }
.rf-main h3.wp-block-heading { font: 700 23px/1.25 var(--u); letter-spacing: -0.01em; }
.rf-main h3 a { text-decoration: none; }
.rf-statement { font: 500 27px/1.4 var(--u); letter-spacing: -0.01em; }
.rf-mute { color: var(--mute); }
.rf-strong { font-size: 20px; line-height: 1.5; font-weight: 500; }
mark.has-inline-color { background: none; }
.has-white-color { color: #fff; }

.rf-todo, .is-style-rf-todo { display: inline-block; padding: 10px 16px; background: #fff4c2; color: #4d3b00; border: 1px dashed #8a6d00; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.rf-todo-inline { background: #fff4c2; color: #4d3b00; padding: 2px 8px; border-radius: 8px; font: 400 15px/1.4 var(--g); white-space: nowrap; }
.rf-todos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rf-todos--1 { grid-template-columns: minmax(0, 1fr); }
.rf-todos > .rf-todo, .rf-todos > .is-style-rf-todo { display: block; padding: 20px 22px; }

/* ---------- Buttons ---------- */
.rf-btn, .rf-main .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 34px;
	border: 0; border-radius: 999px; background: var(--navy); color: #fff;
	font: 500 14px/1.2 var(--u); text-decoration: none; white-space: nowrap; cursor: pointer; transition: opacity 0.15s;
}
.rf-btn:hover, .rf-main .wp-block-button__link:hover { opacity: 0.86; }
.rf-btn--sm { min-height: 50px; padding: 0 24px; font-size: 12px; }
.rf-btn--white, .rf-main .is-style-rf-white .wp-block-button__link { background: #fff; color: var(--navy); }
.rf-main .is-style-rf-link .wp-block-button__link, .rf-link {
	display: inline-flex; min-height: 44px; padding: 0; border-radius: 0; background: none; color: inherit;
	font: 500 13px/1.2 var(--u); text-decoration: none; border-bottom: 3px solid var(--blue);
}
.rf-main .wp-block-buttons { gap: 16px; }

/* ---------- Header ---------- */
.rf-header { display: flex; align-items: center; gap: 32px; min-height: 92px; }
.rf-logo { display: flex; align-items: center; min-height: 44px; flex: none; }
.rf-logo img { width: 170px; max-width: none; height: auto; display: block; }
.rf-nav { margin-left: auto; order: 1; }
.rf-header__tel { order: 2; }
.rf-header__cta { order: 3; }
.rf-burger, .rf-nav__extra { display: none; }
.rf-menu { display: flex; gap: 28px; list-style: none; padding: 0; font: 500 16px var(--g); white-space: nowrap; }
.rf-menu a { display: block; padding: 12px 0; text-decoration: none; border-bottom: 3px solid transparent; }
.rf-menu a:hover, .rf-menu .current-menu-item > a, .rf-menu .current-menu-ancestor > a, .rf-menu .current_page_parent > a, .rf-menu .current-page-ancestor > a { border-bottom-color: var(--blue); }
.rf-header .rf-btn { flex: none; white-space: nowrap; }
.rf-header__tel { font: 500 16px var(--u); text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Hero ---------- */
.rf-hero { background: var(--blue); overflow: hidden; }
.rf-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; padding-top: 72px; }
.rf-hero__text { padding-bottom: 80px; }
.rf-hero h1 { margin: 26px 0 28px; font: 700 58px/1.1 var(--u); letter-spacing: -0.02em; overflow-wrap: break-word; }
.rf-hero h1.rf-h1--xl { font-size: 72px; }
.rf-hero h1.rf-h1--sm { font-size: 46px; }
.rf-lead { max-width: 560px; font-size: 20px; line-height: 1.5; }
.rf-hero .rf-lead { margin-bottom: 36px; }
.rf-hero__media { position: relative; align-self: end; }
.rf-hero__media .is-style-rf-arch img, .rf-hero__arch { width: 100%; height: 460px; object-fit: cover; display: block; border-radius: 300px 300px 0 0; }
.rf-hero__media .rf-hero__disc { position: absolute; left: -110px; bottom: 60px; width: 230px; }
/* The disc hangs 110px left of the photo, 62px past the column gap: keep the text clear of it. */
@media (min-width: 1001px) { .rf-hero__grid:has(.rf-hero__disc) .rf-hero__text > :not(h1):not(.rf-eyebrow) { margin-right: 76px; } }
.rf-hero__disc img { width: 230px; height: 230px; object-fit: cover; display: block; border-radius: 50%; border: 10px solid var(--blue); }
.rf-hero--home .rf-hero__grid { padding-top: 88px; }
.rf-hero--home .rf-hero__text { padding-bottom: 96px; }
.rf-hero--home h1 { margin: 28px 0 30px; font-size: 66px; line-height: 1.08; }
.rf-hero--home .rf-lead { max-width: 540px; margin-bottom: 40px; }
.rf-hero--home .rf-hero__media .is-style-rf-arch img { height: 600px; }
.rf-hero .rf-detail--big { display: block; margin: 0 0 32px; font: 700 50px/1.1 var(--u); letter-spacing: -0.02em; color: #fff; text-decoration: none; white-space: nowrap; }

/* ---------- Image styles ---------- */
.wp-block-image img { display: block; }
.is-style-rf-arch img { width: 100%; object-fit: cover; border-radius: 300px 300px 36px 36px; }
.is-style-rf-circle img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.is-style-rf-rounded img { width: 100%; object-fit: cover; border-radius: 36px; }
.is-style-rf-pill-right img { width: 100%; height: 700px; object-fit: cover; border-radius: 0 350px 350px 0; }
.is-style-rf-pill-left img { width: 100%; height: 720px; object-fit: cover; border-radius: 360px 0 0 360px; }
.wp-block-image figcaption, .rf-figcap { margin: 12px 0 0; font-size: 14px; color: var(--mute); text-align: left; }

/* ---------- Strip ---------- */
.rf-strip { background: var(--navy); color: #fff; }
.rf-strip__in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding-top: 30px; padding-bottom: 30px; }
.rf-strip__label { font-size: 15px; color: #a9bdca; }
.rf-strip__item { display: inline-flex; align-items: center; gap: 28px; font: 500 21px var(--u); }
.rf-strip__item::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }

/* ---------- Sections and grids ---------- */
.rf-section { padding-top: 112px; padding-bottom: 112px; }
.rf-section--sm { padding-top: 96px; padding-bottom: 96px; }
.rf-pale { background: var(--pale); }
.rf-dark { background: var(--navy); color: #fff; }
.rf-dark .rf-eyebrow { color: var(--sky); }
.rf-dark .rf-soft { font-size: 19px; color: #dbe7ee; }
.rf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; }
.rf-head > :last-child:not(:first-child) { max-width: 480px; }
.rf-head h2.wp-block-heading { font-size: 56px; line-height: 1.05; }
.rf-head p { color: var(--mute); }
.rf-head p + .wp-block-buttons { margin-top: 14px; }
.rf-grid-2, .rf-grid-3, .rf-grid-4 { display: grid; gap: 24px; }
.rf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rf-gap-lg { gap: 48px; }
.rf-gap-xl { gap: 72px; }
.rf-mt { margin-top: 32px; }
.rf-mt-lg { margin-top: 64px; }
.rf-mb { margin-bottom: 14px; }
.rf-stack > * + * { margin-top: 14px; }

/* Services */
.rf-disc { position: relative; width: 100%; max-width: 340px; }
.rf-disc--lg { max-width: 460px; }
.rf-num { position: absolute; top: 0; left: 0; width: 84px; height: 84px; border-radius: 50%; background: var(--blue); color: var(--navy); display: flex; align-items: center; justify-content: center; font: 700 22px var(--u); }
.rf-disc--lg .rf-num { width: 104px; height: 104px; font-size: 26px; }
.rf-stagger > :nth-child(2) { margin-top: 64px; }
.rf-stagger > :nth-child(3) { margin-top: 128px; }
.rf-service h3 { margin: 32px 0 12px; font-size: 25px !important; line-height: 1.2 !important; }
.rf-service p { color: var(--mute); max-width: 360px; }
.rf-service .wp-block-buttons { margin-top: 12px; }
.rf-service .is-style-rf-link .wp-block-button__link { border-bottom: 0; color: var(--deep); }
.rf-rows { display: grid; gap: 104px; }
.rf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.rf-row--flip > .rf-disc { order: 2; justify-self: end; }
.rf-row h2.wp-block-heading { font-size: 40px; }
.rf-row .rf-strong { margin: 24px 0 16px; font-size: 21px; line-height: 1.45; max-width: 580px; }
.rf-row .rf-mute { max-width: 580px; margin-bottom: 14px; }
.rf-row .wp-block-buttons { margin-top: 22px; }

/* Split with half-pill photo */
.rf-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.rf-split__text { padding: 88px 72px 88px 88px; max-width: 720px; }
.rf-split__text > .rf-statement, .rf-split__text > h2 { margin: 24px 0 26px; }
.rf-split__text > p + p { margin-top: 14px; }
.rf-split__text .wp-block-buttons { margin-top: 30px; }
.rf-split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.rf-split--rev .rf-split__text { padding: 112px 88px 112px var(--pad); max-width: 760px; margin-left: auto; }
.rf-split--rev .rf-split__text > .rf-statement { margin: 0 0 44px; }
.rf-split--rev figcaption { padding: 0 var(--pad) 0 80px; }

/* Systems */
.rf-system { display: flex; align-items: center; gap: 22px; background: #fff; border-radius: 999px; padding: 18px 30px 18px 18px; }
.rf-system::before { content: ''; flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--navy) center / 36px no-repeat; }
.rf-system--vent::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd0ee' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M12 10c0-4 1-7 4-7 1 4-1 6-4 7zM14 12c4 0 7 1 7 4-4 1-6-1-7-4zM12 14c0 4-1 7-4 7-1-4 1-6 4-7zM10 12c-4 0-7-1-7-4 4-1 6 1 7 4z'/%3E%3C/svg%3E"); }
.rf-system--cond::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd0ee' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='8' rx='1'/%3E%3Cpath d='M7 10h10M8 16v3M12 16v4M16 16v3'/%3E%3C/svg%3E"); }
.rf-system--cold::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd0ee' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M20.7 7L3.3 17M9 4l3 2 3-2M9 20l3-2 3 2'/%3E%3C/svg%3E"); }
.rf-system h3.wp-block-heading { font-size: 19px; line-height: 1.2; }
.rf-cta-row { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-top: 64px; padding-top: 44px; border-top: 2px solid var(--navy); }
.rf-cta-row .rf-statement { max-width: 800px; }

/* Boxes */
.rf-box { background: #fff; border-radius: 36px; padding: 36px 34px 38px; }
.rf-box--pale { background: var(--pale); }
.rf-box h3.wp-block-heading { margin: 24px 0 10px; font-size: 19px; line-height: 1.3; }
.rf-box > p:not([class]) { color: var(--mute); }
.rf-num-sm { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font: 700 18px var(--u); }
.rf-box .rf-eyebrow { font-size: 12px; color: var(--deep); margin-bottom: 18px; }
.rf-box .rf-eyebrow + * { margin-top: 0; }
.rf-detail { font: 500 17px/1.4 var(--u); letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; }
.rf-box .rf-detail { display: block; }
.rf-box .rf-detail + .rf-todo, .rf-box .rf-detail + .is-style-rf-todo { margin-top: 12px; }
.rf-darkcard { display: block; background: var(--navy); color: #fff; border-radius: 36px; padding: 40px 44px 44px; }
.rf-darkcard .rf-eyebrow { color: var(--sky); }
.rf-darkcard h3.wp-block-heading { margin: 16px 0 12px; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.rf-darkcard > p:last-child { color: #c8d6df; }

/* Stats */
.rf-stat { width: 100%; max-width: 250px; aspect-ratio: 1 / 1; justify-self: center; border-radius: 50%; background: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px; }
.rf-stat__v { font: 700 28px/1.1 var(--u); letter-spacing: -0.02em; white-space: nowrap; }
.rf-stat--big .rf-stat__v { font-size: 56px; }
.rf-stat__l { margin-top: 10px; font-size: 15px; line-height: 1.35; }
.rf-stat--navy { background: var(--navy); color: #c8d6df; }
.rf-stat--navy .rf-stat__v { color: var(--sky); }
.rf-stat--pale { background: var(--pale); }
.rf-stat--todo { background: #fff4c2; color: #4d3b00; border: 1px dashed #8a6d00; }

/* Partner names, intro counter */
.rf-pills { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 64px; }
.rf-pills > p { display: inline-flex; align-items: center; min-height: 84px; padding: 0 38px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.5); font: 700 30px var(--u); letter-spacing: -0.02em; white-space: nowrap; }
.rf-pills > p:nth-child(even) { background: var(--blue); border-color: var(--blue); color: var(--navy); }
.rf-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; margin-bottom: 88px; }
.rf-intro .rf-statement { font-size: 25px; margin-bottom: 24px; }
.rf-count { display: flex; align-items: center; gap: 28px; }
.rf-count__n { flex: none; width: 190px; height: 190px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font: 700 76px/1 var(--u); letter-spacing: -0.03em; }
.rf-count__l { font: 500 17px/1.4 var(--u); max-width: 180px; }
.rf-photo-todo { width: 100%; max-width: 440px; aspect-ratio: 1 / 1; border-radius: 50%; background: #dbe5ea; display: flex; align-items: center; justify-content: center; text-align: center; padding: 56px; font: 500 14px/1.5 var(--u); }
.rf-team { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-top: 40px; }
.rf-map { min-height: 420px; border-radius: 36px; background: #dbe5ea; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.rf-map::before { content: ''; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--blue); transform: rotate(-45deg); margin-bottom: 24px; }
.rf-map p:first-child { font: 500 15px/1.5 var(--u); margin-bottom: 8px; }
.rf-map p + p { font-size: 15px; color: var(--mute); max-width: 360px; }
.rf-formsec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.rf-formsec h2.wp-block-heading { font-size: 42px; margin: 22px 0 20px; }
.rf-formsec .rf-box { padding: 44px 48px 48px; }

/* ---------- Project cards ---------- */
.rf-cards { display: grid; gap: 80px 48px; }
.rf-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rf-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 36px; }
.rf-card { display: block; text-decoration: none; }
.rf-card[hidden], .rf-table__row[hidden] { display: none; }
.rf-card__media { display: block; position: relative; }
.rf-card__img { display: block; width: 100%; height: 360px; object-fit: cover; border-radius: 36px; background: #dbe5ea; }
.rf-card--sm .rf-card__img { height: 280px; }
.rf-cards--lead > .rf-card:first-child { grid-column: 1 / -1; }
.rf-cards--lead > .rf-card:first-child .rf-card__img { height: 480px; }
.rf-badge { position: absolute; right: 28px; bottom: -44px; width: 150px; height: 150px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.rf-badge__v { font: 700 21px/1.1 var(--u); color: var(--sky); }
.rf-badge__l { font-size: 13px; margin-top: 6px; color: #c8d6df; }
.rf-card__tag { display: block; margin: 28px 190px 8px 0; font: 500 12px var(--u); letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep); }
.rf-card__title { display: block; margin: 28px 190px 10px 0; font: 700 23px/1.25 var(--u); letter-spacing: -0.01em; }
.rf-card__tag + .rf-card__title { margin-top: 0; }
.rf-card--sm .rf-card__title { margin: 60px 0 10px; }
.rf-card__text { display: block; color: var(--mute); max-width: 460px; }
.rf-card:hover .rf-card__title { color: var(--deep); }

.rf-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 64px; }
.rf-filter__b { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--pale); color: var(--navy); font: 500 15px var(--g); cursor: pointer; }
.rf-filter__b span { font: 500 12px var(--u); color: var(--deep); }
.rf-filter__b[aria-pressed="true"] { background: var(--navy); color: #fff; }
.rf-filter__b[aria-pressed="true"] span { color: var(--sky); }
.rf-more { margin-top: 112px; padding: 112px var(--pad); background: var(--pale); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.rf-more > * { max-width: 1224px; margin-left: auto; margin-right: auto; }
.rf-more .rf-h2 { margin-bottom: 48px; }
.rf-table { background: #fff; border-radius: 36px; padding: 36px 44px 20px; }
.rf-table__head, .rf-table__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); gap: 6px 24px; }
.rf-table__head { padding-bottom: 18px; font: 500 12px var(--u); letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep); }
.rf-table__row { padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--mute); }
.rf-table__name { font-weight: 600; color: var(--navy); }
.rf-table__row:hover .rf-table__name { color: var(--deep); text-decoration: underline; }
.rf-table__par { font: 500 14px/1.6 var(--u); color: var(--navy); }
.rf-projects:last-child > .rf-more:last-child { margin-bottom: -112px; }

/* ---------- Single project ---------- */
.rf-proj { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.rf-prose > p { color: var(--mute); font-size: 18px; }
.rf-prose > p + p { margin-top: 14px; }
.rf-prose > p.rf-statement { color: var(--navy); font: 500 21px/1.5 var(--g); letter-spacing: 0; margin-bottom: 28px; }
.rf-prose > h2 { font: 700 20px/1.2 var(--u); color: var(--deep); margin: 40px 0 16px; }
.rf-prose > ul, .rf-prose > ol { color: var(--mute); padding-left: 22px; margin-top: 14px; }
.rf-prose .rf-todo, .rf-prose .is-style-rf-todo { margin-top: 20px; margin-right: 8px; font-size: 15px; color: #4d3b00; }
.rf-facts { margin-top: 40px; background: var(--pale); border-radius: 36px; padding: 30px 38px; display: grid; gap: 14px; }
.rf-facts div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
.rf-facts dt { font: 500 12px/1.9 var(--u); letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep); }
.rf-facts dd { margin: 0; font-weight: 500; }
.rf-gallery { display: grid; gap: 40px; }
.rf-gallery img { display: block; width: 100%; border-radius: 36px; object-fit: cover; max-height: 520px; }
.rf-gallery figure:first-child img { border-radius: 300px 300px 36px 36px; height: 520px; }
.rf-page { padding-top: 72px; padding-bottom: 112px; max-width: 860px; }
.rf-page h1 { font: 700 46px/1.1 var(--u); letter-spacing: -0.02em; margin-bottom: 40px; }

/* ---------- Contact band, footer ---------- */
.rf-contact { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.rf-contact__disc { position: absolute; right: -160px; top: -120px; width: 620px; height: 620px; border-radius: 50%; background: var(--blue); }
.rf-contact__in { position: relative; padding-top: 110px; padding-bottom: 104px; }
.rf-contact .rf-eyebrow { color: var(--sky); }
.rf-contact__tel { display: block; width: fit-content; margin: 24px 0 34px; font: 700 76px/1 var(--u); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.rf-contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 44px; font-size: 20px; }
.rf-contact__row > a:first-child { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.rf-footer { background: var(--navy); color: #a9bdca; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; }
.rf-footer__in { display: flex; align-items: center; gap: 32px; padding-top: 30px; padding-bottom: 30px; }
.rf-footer img { width: 130px; display: block; }
.rf-footer__copy { margin-left: auto; }
.rf-footer a { text-decoration: none; }
.rf-footer a:hover { color: #fff; }

/* ---------- Form and dialog ---------- */
.rf-form { display: grid; gap: 22px; }
.rf-form__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rf-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-field label { display: block; font: 500 12px var(--u); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.rf-field input, .rf-field textarea { display: block; width: 100%; min-height: 60px; padding: 0 26px; border: 2px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); font: 400 17px var(--g); }
.rf-field textarea { border-radius: 28px; padding: 18px 26px; min-height: 150px; resize: vertical; }
.rf-field__hint { display: block; margin-top: 10px; font-size: 14px; color: var(--mute); }
.rf-form__end { display: flex; align-items: center; gap: 20px 28px; }
.rf-form__note { font-size: 14px; color: var(--mute); }
.rf-form__status:empty { display: none; }
.rf-form__status { padding: 14px 22px; border-radius: 20px; background: var(--pale); font-weight: 500; }
.rf-form__status[data-state="error"] { background: #fde7e4; color: #8a1c10; }
.rf-form[data-busy] button { opacity: 0.6; pointer-events: none; }
.rf-dialog { width: calc(100% - 32px); max-width: 680px; max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 44px; padding: 52px 56px 56px; color: var(--navy); }
.rf-dialog::backdrop { background: rgba(11, 34, 51, 0.72); }
.rf-dialog__dot { display: block; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); margin-bottom: 24px; }
.rf-dialog h2 { font: 700 34px/1.15 var(--u); letter-spacing: -0.02em; margin-bottom: 12px; }
.rf-dialog > p { color: var(--mute); margin-bottom: 30px; }
.rf-dialog__close { position: absolute; top: 24px; right: 24px; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--pale); color: var(--navy); font: 500 20px var(--u); cursor: pointer; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
	:root { --pad: 20px; }
	.rf-header { position: relative; gap: 12px; min-height: 72px; }
	.rf-header__tel { margin-left: auto; font-size: 14px; }
	.rf-header__cta { display: none; }
	.rf-burger {
		order: 4; display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; flex: none;
		width: 48px; height: 48px; padding: 0 13px; border: 0; border-radius: 50%; background: var(--pale); cursor: pointer;
	}
	.rf-burger span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform 0.2s, opacity 0.2s; }
	.rf-header[data-open] .rf-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.rf-header[data-open] .rf-burger span:nth-child(2) { opacity: 0; }
	.rf-header[data-open] .rf-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.rf-nav {
		display: none; position: absolute; z-index: 50; top: 100%; left: 0; right: 0; margin: 0; padding: 8px var(--pad) 28px;
		background: #fff; border-radius: 0 0 36px 36px; box-shadow: 0 24px 40px rgba(11, 34, 51, 0.16);
	}
	.rf-header[data-open] .rf-nav { display: block; }
	.rf-menu { flex-direction: column; gap: 0; font-size: 19px; }
	.rf-menu a { padding: 15px 0; border-bottom: 1px solid var(--pale); }
	.rf-menu a:hover, .rf-menu .current-menu-item > a, .rf-menu .current-menu-ancestor > a, .rf-menu .current_page_parent > a, .rf-menu .current-page-ancestor > a { border-bottom-color: var(--pale); color: var(--blue); }
	.rf-nav__extra { display: grid; gap: 16px; margin-top: 22px; }
	.rf-nav__tel { font: 500 22px var(--u); text-decoration: none; }
	.rf-hero__grid, .rf-row, .rf-split, .rf-split--rev, .rf-intro, .rf-team, .rf-formsec, .rf-proj,
	.rf-grid-2, .rf-grid-3, .rf-cards--2, .rf-cards--3, .rf-todos, .rf-form__two { grid-template-columns: minmax(0, 1fr); }
	.rf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rf-hero__grid { padding-top: 48px; gap: 0; }
	.rf-hero__text, .rf-hero--home .rf-hero__text { padding-bottom: 48px; }
	.rf-hero h1, .rf-hero--home h1, .rf-hero h1.rf-h1--xl, .rf-hero h1.rf-h1--sm { font-size: 36px; }
	.rf-hero__media .is-style-rf-arch img, .rf-hero--home .rf-hero__media .is-style-rf-arch img, .rf-hero__arch { height: 320px; }
	.rf-hero__media .rf-hero__disc, .rf-contact__disc { display: none; }
	.rf-hero .rf-detail--big { font-size: 34px; }
	.rf-section, .rf-section--sm { padding-top: 64px; padding-bottom: 64px; }
	.rf-h2, .rf-main h2.wp-block-heading, .rf-head h2.wp-block-heading, .rf-row h2.wp-block-heading, .rf-formsec h2.wp-block-heading { font-size: 32px; }
	.rf-statement, .rf-intro .rf-statement { font-size: 21px; }
	.rf-head, .rf-cta-row, .rf-form__end, .rf-footer__in { flex-direction: column; align-items: flex-start; }
	.rf-head { margin-bottom: 40px; gap: 16px; }
	.rf-footer__copy { margin-left: 0; }
	.rf-footer__in { gap: 14px; }
	.rf-stagger > :nth-child(n) { margin-top: 0; }
	.rf-rows { gap: 64px; }
	.rf-row { gap: 32px; }
	.rf-row--flip > .rf-disc { order: 0; justify-self: start; }
	.rf-split__text, .rf-split--rev .rf-split__text { padding: 48px var(--pad); margin-left: 0; }
	.is-style-rf-pill-right img, .is-style-rf-pill-left img { height: 360px; border-radius: 36px; }
	.rf-split > figure { padding: 0 var(--pad); }
	.rf-split--rev figcaption { padding: 0; }
	.rf-split--rev > figure { padding-bottom: 48px; }
	.rf-strip__item { font-size: 17px; gap: 14px; }
	.rf-pills > p { min-height: 60px; padding: 0 24px; font-size: 20px; }
	.rf-stat__v, .rf-stat--big .rf-stat__v { font-size: 22px; }
	.rf-stat { padding: 14px; }
	.rf-stat__l { font-size: 13px; }
	.rf-count__n { width: 120px; height: 120px; font-size: 48px; }
	.rf-box, .rf-formsec .rf-box, .rf-darkcard { padding: 28px 22px; }
	.rf-cards { gap: 56px; }
	.rf-card__img, .rf-cards--lead > .rf-card:first-child .rf-card__img { height: 260px; }
	.rf-badge { width: 120px; height: 120px; right: 16px; bottom: -36px; }
	.rf-badge__v { font-size: 17px; }
	.rf-card__tag, .rf-card__title { margin-right: 140px; }
	.rf-card--sm .rf-card__title { margin-top: 48px; }
	.rf-more { margin-top: 64px; padding-top: 64px; padding-bottom: 64px; }
	.rf-projects:last-child > .rf-more:last-child { margin-bottom: -64px; }
	.rf-table { padding: 8px 22px; }
	.rf-table__head { display: none; }
	.rf-table__row { grid-template-columns: minmax(0, 1fr); }
	.rf-table__row:first-of-type { border-top: 0; }
	.rf-contact__in { padding-top: 64px; padding-bottom: 64px; }
	.rf-contact__tel { font-size: 36px; }
	.rf-contact__row { flex-direction: column; align-items: flex-start; }
	.rf-facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.rf-gallery figure:first-child img { height: 360px; }
	.rf-dialog { padding: 40px 22px 28px; border-radius: 32px; }
	.rf-dialog h2 { font-size: 24px; padding-right: 56px; }
	.rf-dialog__dot { display: none; }
	.rf-page h1 { font-size: 32px; }
}
.rf-cards--filtered > .rf-card:first-child { grid-column: auto; }
.rf-cards--filtered > .rf-card:first-child .rf-card__img { height: 360px; }

/* Header between tablet and full width: menu drops to its own row, logo keeps its size. */
@media (max-width: 1240px) and (min-width: 1001px) {
	.rf-header { flex-wrap: wrap; gap: 0 24px; padding-top: 12px; }
	.rf-header__tel { margin-left: auto; }
	.rf-nav { order: 4; width: 100%; margin-left: 0; }
}

@media (max-width: 480px) {
	.rf-header__tel { display: none; }
	.rf-burger { margin-left: auto; }
}

/* Partner strip below full width: label on its own row, names flow from the left. */
@media (max-width: 1240px) {
	.rf-strip__in { justify-content: flex-start; gap: 14px 36px; }
	.rf-strip__label { flex: 0 0 100%; }
}
