/* =========================================================================
   VDG — main stylesheet
   Design source: Figma "VDG website" node 333:17 (1920px canvas)
   Fluid system: linear interpolation min @768px → max @1920px
   slope(vw) = (max-min)/11.52 ; intercept(px) = min - slope*7.68
   ========================================================================= */

:root {
	--c-navy: #0f2c4e;
	--c-gold: #a68b5a;
	--c-text: #3d3d3d;
	--c-white: #ffffff;

	--font-main: 'Google Sans', system-ui, sans-serif;

	/* Fluid sizes: min @768px viewport → max @1920px, linear (Libby system) */
--fs-hero: clamp(46px, calc(3.96vw + 3.4px), 67px);
--fs-h2: clamp(34px, calc(1.68vw + 15.1px), 43px);
--fs-card-title: clamp(28px, calc(1.32vw + 10.9px), 32px);
--fs-lg: clamp(20px, calc(0.72vw + 12.5px), 25px);
--fs-md: clamp(18px, calc(0.6vw + 11.4px), 21px);
--fs-body: clamp(16px, calc(0.24vw + 12.2px), 18px);

	--container: 1640px;
	--gutter: clamp(20px, calc(10.42vw - 60px), 125px);
	--section-gap: clamp(64px, calc(6.6vw + 13.3px), 140px);

	--header-h: 121px; /* 112px bar + top gold line, per Figma Group 41960 */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--font-main);
	font-weight: 300;
	color: var(--c-text);
	background: var(--c-white);
	direction: rtl;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
input { font: inherit; color: inherit; }

.container {
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.section { padding-block: calc(var(--section-gap) / 2); }

.section-title {
	font-size: var(--fs-h2);
	font-weight: 500;
	color: var(--c-navy);
	line-height: 1.1;
	margin-bottom: clamp(24px, calc(2.08vw + 8px), 48px);
}

.rule--gold {
	border: 0;
	margin: 0 0 clamp(32px, calc(1.13vw + 23.3px), 45px);
	background: linear-gradient(90deg, #A68B5A 0%, #FFF 50.59%, #A68B5A 100%);
	height: 8px;
}
.wpcf7-list-item {
	margin: 0 !important;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 76px;
	font-size: var(--fs-md);
	font-weight: 400;
	transition: background-color .3s ease, color .3s ease;
}
.single-ruling .btn {
	padding: 14px 0;
}
.btn--outline {
	border: 2px solid var(--c-gold);
	color: var(--c-navy);
	background: var(--c-white);
}
.btn--outline:hover { background: var(--c-gold); color: var(--c-white); }
.btn--solid { background: var(--c-gold); color: var(--c-white); }
.btn--solid:hover { background: var(--c-navy); }

/* Gold square arrow (cards) — sits at the "end" corner, arrow points inline-start */
.square-arrow {
	position: absolute;
	inset-inline-end: 0;
	bottom: 0;
	width: 89px;
	height: 89px;
	display: grid;
	place-items: center;
	color: var(--c-gold);
	transition: background-color .3s ease, color .3s ease;
}
.square-arrow svg { width: 38px; }
.square-arrow--solid { background: var(--c-gold); color: var(--c-white); }
.square-arrow--solid:hover { background: var(--c-navy); }

.link-more {
	display: inline-block;
	margin-top: clamp(24px, calc(0.87vw + 17.3px), 40px);
	font-size: var(--fs-body);
	color: var(--c-navy);
	border-bottom: 1px solid var(--c-gold);
	padding-bottom: 4px;
	transition: color .3s ease;
}
.link-more:hover { color: var(--c-gold); }

/* =========================================================================
   Header — white lockup header (all pages, incl. home)
   ========================================================================= */
.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
	background: var(--c-white);
	color: var(--c-navy);
	transition: box-shadow .35s ease;
}
.site-header::before,
footer::before {
	content: '';
	position: absolute;
	top: 0;
	inset-inline: 0;
	height: 8px;
	background: linear-gradient(90deg, #A68B5A 0%, rgba(255, 255, 255, 0.60) 50.59%, #A68B5A 100%);
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgb(15 44 78 / .12); }

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: calc(var(--header-h) - 4px);
	padding: 0 clamp(20px, 3.75vw, 60px);
}
/* Right block (inline-start): memorial on top, nav below */
.header__side { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.header__memorial {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	font-size: var(--fs-md);
	font-weight: 500;
	color: var(--c-navy);
	white-space: nowrap;
	line-height: 1.3;
}
.header__memorial-icon { width: 13px; height: 22px; color: var(--c-gold); flex: 0 0 auto; }

.header__menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	font-weight: 300;
}
.header__menu li {
	position: relative;
	padding-inline: 2rem;
	font-size: clamp(16px, calc(0.24vw + 14.2px), 18px);
}
.header__menu li:first-child { padding-inline-start: 0; }
.header__menu li + li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	translate: 0 -50%;
	height: 22px;
	width: 1px;
	background: var(--c-navy);
}
.header__menu a { transition: color .25s ease; }
.header__menu a:hover { color: var(--c-gold); }
.header__menu .current-menu-item a,
.header__menu .current_page_item a {
	color: var(--c-gold);
	font-weight: 700;
}

/* Logo lockup (inline-end, visually left in RTL) */
.header__logo { flex: 0 0 auto; }
.header__logo-img { max-height: 80px; width: auto; }
.header__logo-img--light { display: none; }

@media (max-width: 1440px) {
	.header__logo-img {
    max-height: 60px;
}
}
@media (max-width: 600px) {
	.header__logo-img {
    max-height: 50px;
}
}


/* ---- Transparent overlay header (front page, before scroll) ---- */
.site-header--overlay:not(.is-scrolled) {
	background: transparent;
	color: var(--c-white);
}
.site-header--overlay:not(.is-scrolled) .header__memorial { color: var(--c-white); }
.site-header--overlay:not(.is-scrolled) .header__menu li + li::before { background: rgb(255 255 255 / .5); }
.site-header--overlay:not(.is-scrolled) .header__burger { color: var(--c-white); }
.site-header--overlay:not(.is-scrolled) .header__logo-img--dark { display: none; }
.site-header--overlay:not(.is-scrolled) .header__logo-img--light { display: block; }

/* Scrolled: white background with a soft transition on the overlay variant */
.site-header--overlay { transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }

.header__burger { display: none; flex-direction: column; gap: 6px; color: var(--c-navy); }
.header__burger span { width: 28px; height: 2px; background: currentColor; transition: .3s; }

.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 99;
	background: var(--c-navy);
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .35s ease;
	max-width: 100vw; overflow-x: hidden;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav__menu { list-style: none; padding: 0; margin: 0; text-align: center; display: grid; gap: 1.5rem; }
.mobile-nav__menu a { color: var(--c-white); font-size: var(--fs-md); }

/* =========================================================================
   Hero — video background below the solid header
   ========================================================================= */
.hero {
	position: relative;
	margin-top: 0; /* transparent header overlays the hero on the front page */
	min-height: 100vh;
	display: flex;
	align-items: flex-end;
	color: var(--c-white);
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__media { width: 100%; height: 100%; object-fit: cover; }
video.hero__media { position: absolute; inset: 0; }
.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 44, 78, 0.70) 0%, rgba(15, 44, 78, 0.00) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, calc(2.6vw + 28px), 60px); }
.hero__phrase {
	grid-area: 1 / 1; /* all phrases occupy the same grid cell */
	font-size: var(--fs-hero);
	font-weight: 400;
	line-height: 1.14;
	max-width: min(1170px, 90%);
	text-align: right;
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .7s ease, transform .7s ease;
	pointer-events: none;
}
.hero__phrase.is-active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.hero__title {
	display: grid;
	overflow: hidden;
	align-items: end; /* stack phrases from the bottom of the cell */
	font-size: var(--fs-hero);
	font-weight: 400;
	line-height: 1.14;
	max-width: min(1170px, 90%);
	text-align: right;
}
.hero__phrase {
	grid-area: 1 / 1;
	align-self: end; /* each phrase sits at the bottom */
}
/* Square scroll button inside the hero's bottom inline-end (visual left) corner */
.hero__scroll-square {
	position: absolute;
	bottom: 0;
	inset-inline-end: 0;
	z-index: 3;
	width: clamp(56px, 5.2vw, 100px);
	height: clamp(56px, 5.2vw, 100px);
	background: var(--c-gold);
	color: var(--c-white);
	display: grid;
	place-items: center;
	transition: background-color .3s ease;
}
.hero__scroll-square:hover { background: var(--c-gold); }
.hero__scroll-square svg { width: 14px; height: clamp(28px, 2.6vw, 46px); }

/* Gold full stop at the end of the hero headline */
.hero__dot { color: var(--c-gold); }

/* =========================================================================
   Intro
   ========================================================================= */
#about-intro .container {
	max-width: calc(1340px + var(--gutter) * 2);
}
.intro { padding-top: var(--section-gap); }
.intro__text {
	font-size: clamp(20px, calc(0.96vw + 12.6px), 28px);
	line-height: 1.55;
	color: var(--c-navy);
	margin-bottom: clamp(32px, calc(3.73vw + 3.3px), 75px);
	    max-width: 75%;
}

@media (max-width: 600px) {
.intro__text {
	    max-width: 75%;
}	
.home .intro__text {
	    max-width: 100%;
}
}

/* =========================================================================
   Practice areas
   ========================================================================= */
.practice__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.practice-card {
	position: relative;
	aspect-ratio: 533 / 465;
	overflow: hidden;
	color: var(--c-white);
	isolation: isolate;
}
.practice-card__media, .practice-card__media::after { position: absolute; inset: 0; }
.practice-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.practice-card:hover .practice-card__img { transform: scale(1.06); }
.practice-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgb(15 44 78 / 0), rgb(15 44 78 / .7));
	transition: background-color .4s ease;
}
.practice-card:hover .practice-card__shade { background-color: rgb(15 44 78 / .35); }
.practice-card__body {
	position: absolute;
	inset-inline: 40px;
	bottom: 40px;
	z-index: 2;
}
.practice-card__title { font-size: var(--fs-md); font-weight: 500; line-height: 1.2; }
.practice-card__desc {
	font-size: var(--fs-body);
	line-height: 1.44;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin-top: 0;
	transition: max-height .5s ease, opacity .4s ease .05s, margin-top .5s ease;
	max-width: 370px;
}
.practice-card:hover .practice-card__desc { max-height: 200px; opacity: 1; margin-top: 1rem; }
.practice-card .square-arrow {
	background: var(--c-gold);
	color: var(--c-white);
	translate: 0 100%;
	transition: translate .45s cubic-bezier(.22,.61,.36,1);
}
.practice-card:hover .square-arrow { translate: 0 0; }

@media (max-width: 600px) {
	.practice-card__body {
    top: 40px;
    bottom: auto;
}
}

/* =========================================================================
   Rulings
   ========================================================================= */
section#rulings {
	margin-top: 20px;
}
.ruling-card {
	position: relative;
	border: 1px solid var(--c-gold);
	padding: 56px 52px 56px;
	overflow: hidden;
}
.ruling-card__title {
	font-size: var(--fs-card-title);
	font-weight: 400;
	line-height: 1.35;
	color: var(--c-navy);
	letter-spacing: -0.03em;
}
.ruling-card__cite {
	margin-top: 1.5rem;
	font-size: var(--fs-body);
	line-height: 1.75;
	color: var(--c-navy);
	padding-left: 48px;
}

.cards-slider .swiper-slide { height: auto; display: flex; }
.cards-slider .ruling-card,
.cards-slider .article-card { width: 100%; }
.cards-slider { padding-bottom: 44px; } /* room for the dots */
.cards-slider__dots .swiper-pagination-bullet {
	width: 17px;
	height: 17px;
	margin: 0 6px !important;
	background: #e6ddc9; /* beige, per Group 41677 */
	opacity: 1;
	transition: background-color .3s ease;
}
.cards-slider__dots .swiper-pagination-bullet-active {
	background: var(--c-gold);
}

/* Animated border draw on hover (replaces the static gold border) */
.ruling-card,
.article-card { position: relative; transition: border-color .5s ease; }
.ruling-card:hover,
.article-card:hover { border-color: transparent; }

.card-border {
	position: absolute;
	display: block;
	background: var(--c-gold);
	pointer-events: none;
	transition: width .35s ease, height .35s ease;
}
/* horizontal lines draw from the corners */
.card-border--top    { top: -1px;    right: -1px; height: 2px; width: 0; }
.card-border--bottom { bottom: -1px; left: -1px;  height: 2px; width: 0; }
/* vertical lines */
.card-border--right  { top: -1px;    right: -1px; width: 2px; height: 0; }
.card-border--left   { bottom: -1px; left: -1px;  width: 2px; height: 0; }

.ruling-card:hover .card-border--top,
.ruling-card:hover .card-border--bottom,
.article-card:hover .card-border--top,
.article-card:hover .card-border--bottom,
.practice-row:hover .card-border--top,
.practice-row:hover .card-border--bottom { width: calc(100% + 2px); }

.ruling-card:hover .card-border--right,
.ruling-card:hover .card-border--left,
.article-card:hover .card-border--right,
.article-card:hover .card-border--left,
.practice-row:hover .card-border--right,
.practice-row:hover .card-border--left { height: calc(100% + 2px); }

.cards-slider__dots { bottom: 0 !important; }

/* =========================================================================
   Articles
   ========================================================================= */
#articles {
	margin-top: 40px;
}
.article-card {
	border: 1px solid var(--c-gold);
	min-height: 534px;
	display: flex;
	flex-direction: column;
}
.article-card__media { position: relative; display: block; aspect-ratio: 533 / 350; overflow: hidden; }
.article-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.article-card:hover .article-card__img { transform: scale(1.05); }
.article-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgb(166 139 90 / 0), rgb(166 139 90 / .7));
}
.article-card__body { padding: 32px 44px 44px; }
.article-card__date { font-size: var(--fs-md); color: var(--c-gold); }
.article-card__title {
	margin-top: .5rem;
	font-size: clamp(20px, calc(0.96vw + 12.6px), 28px);
	font-weight: 500;
	line-height: 1.4;
	color: var(--c-navy);
}
.article-card__title a:hover { color: var(--c-gold); }

/* Blog index grid — taller vertical rhythm between rows */
.articles__grid--archive {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	row-gap: 35px;
	margin: 100px 0;
}
#articles .cards-slider {
	padding-bottom: 60px;
}

/* =========================================================================
   Projects slider
   ========================================================================= */
.projects { padding-top: var(--section-gap); }
.projects__slider { border-bottom: 1px solid var(--c-gold); }
.projects__slider .swiper-wrapper {
    margin-bottom: -1px;
}
.project-slide {
	display: grid;
	grid-template-columns: 1fr 1.35fr;
	gap: clamp(2rem, 3vw, 4rem);
	align-items: stretch; /* body matches media height */
}
.project-slide__media { order: 2; position: relative; } /* image on the visual left in RTL */
.project-slide__img { width: 100%; aspect-ratio: 811 / 542; object-fit: cover; }
.project-slide__video { width: 100%; aspect-ratio: 811 / 542; object-fit: cover; display: block; }

.project-slide__body {
	display: flex;
	flex-direction: column;
}
.project-slide__heading { margin-bottom: clamp(24px, calc(2.08vw + 8px), 40px); }
.project-slide__quote {
	font-size: clamp(25px, calc(1.32vw + 14.9px), 36px);
	font-weight: 400;
	color: var(--c-gold);
	line-height: 1.2;
}
.project-slide__text {
	font-size: var(--fs-lg);
	line-height: 1.5;
	color: var(--c-text);
	max-width: 585px;
}

/* Controls pinned to the bottom of the full-height body */
.projects__controls {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between; /* fraction one edge, arrows the other */
	margin-top: auto;
	position: static; /* override any earlier absolute rule */
	padding-bottom: 30px;
}
.projects__fraction {
	font-size: clamp(21px, calc(1.32vw + 10.9px), 32px);
	color: var(--c-gold);
	font-weight: 400;
}
.projects__arrows { display: flex; align-items: center; gap: 1rem; }
.projects__arrow {
    width: 56px;
    color: var(--c-navy);
    transition: background .25s;
    height: 56px;
}
.projects__arrow svg path  {
	stroke:var(--c-gold);
	transition: all .25s;
}
.projects__arrow:hover svg path  {
	stroke:var(--c-navy);
}
.projects__arrow svg { width: 100%; }
.projects__arrows span {
width: 2px;
    height: 35px;
    background: #DFDFDF;	
}



/* Divider before the second arrow */
.projects__arrows .projects__arrow--next {
	padding-inline-start: 1rem;
}

/* Play button */
.project-slide__play {
	position: absolute;
	bottom: 0;
	inset-inline-end: 0;
	width: clamp(48px, 5.6vw, 106px);
	height: clamp(48px, 5.6vw, 106px);
	background: var(--c-gold);
	color: var(--c-white);
	display: grid;
	place-items: center;
	transition: opacity .3s ease, background .3s ease;
}
.project-slide__play:hover {
	background: var(--c-navy);
}




.project-slide__play svg { width: 40%; }
/* Toggle between pause and play icons */
.project-slide__play .icon-play { display: none; }
.project-slide__play .icon-pause { display: block; }
.project-slide__play:not(.is-playing) .icon-play { display: block; }
.project-slide__play:not(.is-playing) .icon-pause { display: none; }
.project-slide__media:hover .project-slide__play.is-playing { opacity: 1; pointer-events: auto; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }

@media (max-width: 600px) {
	.projects__controls { display: none; }
}
/* =========================================================================
   Contact
   ========================================================================= */
.contact { padding-top: var(--section-gap); padding-bottom: 0; }
.contact__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 6rem);
	align-items: stretch;
}
.contact__lead { font-size: var(--fs-md); line-height: 1.3; max-width: 760px; margin-bottom: 1.25rem; }
.contact__media { position: relative; overflow: hidden; margin-bottom: -80px; z-index: 1; }
.contact__img { width: 100%; height: 100%; object-fit: cover; }

.contact-form__field label { font-size: var(--fs-md); font-weight: 300; color: var(--c-text); }
.contact-form__field:focus-within { border-color: var(--c-gold); }

.contact-form__consent {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	font-size: var(--fs-body);
	line-height: 1.4;
	margin-block: 2.5rem 2rem;
	cursor: pointer;
}
.contact-form__consent input {
	appearance: none;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	border: 2px solid var(--c-gold);
	display: grid;
	place-items: center;
	cursor: pointer;
}
.contact-form__consent input:checked::after { content: '✓'; color: var(--c-gold); font-size: 1rem; }
.contact-form__consent a { text-decoration: underline; }

.contact-form__status { margin-top: 1rem; font-size: var(--fs-body); min-height: 1.5em; }
.contact-form__status.is-error { color: #b3402a; }
.contact-form__status.is-success { color: var(--c-navy); }
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .contact-form__field input { width: 100%; }
.wpcf7-not-valid-tip {
    color: #A68B5A;
    font-size: .9rem;
    margin-top: .25rem;
    position: absolute;
}
.contact-form .wpcf7-response-output {
	margin: 1rem 0 0 !important;
	border: 0 !important;
	padding: 0 !important;
	font-size: var(--fs-body);
}
.contact-form__field .wpcf7-form-control-wrap { margin: 0; }

/* Consent + submit в одном ряду: чекбокс справа, кнопка слева (RTL) */
.contact-form .contact-form__consent-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	margin-top: 2rem;
}
.contact-form__consent .wpcf7-form-control-wrap,
.contact-form__consent .wpcf7-acceptance,
.contact-form__consent .wpcf7-list-item {
	display: inline; margin: 0;
}
.contact-form__consent .wpcf7-list-item-label { margin-inline-start: .5rem; }
.contact-form__consent .wpcf7-list-item > label {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	font-size: 14px;
	line-height: 1.4;
	flex: 1;
	margin: 0;
}
.contact-form__consent input[type="checkbox"] { flex: 0 0 auto; margin-top: .2rem; }
.contact-form__consent-row .wpcf7-submit,
.contact-form__consent-row .btn { flex: 0 0 auto; white-space: nowrap; border: none; margin-top: 20px; }

.contact-form__field {
	position: relative;
	border-bottom: 1px solid var(--c-gold);
	margin-bottom: 1.75rem;
}
.contact-form__field .wpcf7-form-control-wrap { display: block; }
.contact-form__field input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: var(--fs-md);
	padding: 1.6rem 0 .6rem; /* верхний padding = место для подскочившего label */
	direction: rtl !important;
}
.contact-form__field label {
	position: absolute;
	inset-inline-start: 0;
	top: 1.6rem;
	font-size: var(--fs-md);
	color: var(--c-text);
	pointer-events: none;
	transition: top .2s ease, font-size .2s ease, color .2s ease;
}
.contact-form__field:focus-within label,
.contact-form__field input.is-filled + label,
.contact-form__field.is-filled label,
.contact-form__field input:focus + label {
	top: 0;
	font-size: .8rem;
	color: var(--c-gold);
}
.contact-form__field:focus-within { border-color: var(--c-gold); }

.wpcf7-spinner {
    position: absolute;
    left: 0;
    bottom: 0;
}
.contact__form-wrap h2 { margin-bottom: 28px; }

@media (max-width: 680px) {
	.contact-form .contact-form__consent-row { flex-direction: column; align-items: stretch; gap: 1.25rem; }
	.contact-form__consent-row .btn { width: 100%; }

		.contact-form__consent-row .wpcf7-submit, .contact-form__consent-row .btn {
    gap: .75rem;
}
.contact-form__consent-row .wpcf7-submit svg, .contact-form__consent-row .btn svg {
	max-width: 38px;
}
.contact-form__consent {
    margin-block: 0rem 0rem;
}
}
/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
	background: var(--c-navy);
	color: var(--c-white);
	padding-top: 80px;
	font-weight: 300;
	position: relative;
}
.home .site-footer {
	padding-top: var(--section-gap);
}
.footer__top {
	display: grid;
	grid-template-columns: 2.75fr 1fr 1fr;
	gap: clamp(2rem, 4vw, 5rem);
	padding-bottom: 3.5rem;
}
.footer__logo { max-width: 220px; }
.footer__about {
    display: flex;
    align-items: end;
}
.footer__about-text { font-size: var(--fs-md); line-height: 1.41; max-width: 530px; }
.footer__col-title { font-size: var(--fs-md); font-weight: 500; color: var(--c-gold); margin-bottom: 1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; font-size: var(--fs-body); gap: 10px; }
.footer__list a:hover { color: var(--c-gold); }
.footer__contact p { font-size: var(--fs-body); line-height: 1.41; }
.footer__email { text-decoration: underline; font-size: var(--fs-body); }
.footer__logo img {
	width: auto;
}
.footer__menu-strip { border-top: 1px solid var(--c-gold); padding-block: 2rem; }
.footer__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--fs-md);
	margin-top: -10px;
	text-align: center;
	justify-content: center;
}
.footer__menu li { position: relative; padding-inline: 2.05rem; }
.footer__menu a:hover,
.footer__menu .current-menu-item a { color: var(--c-gold); }

.footer__bottom {
	border-top: 1px solid var(--c-gold);
	padding-block: 1.5rem;
	font-size: 1rem;
}
.footer__bottom-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}
.footer__copy a { text-decoration: underline; }
.footer__credit {
	display: flex;
	align-items: center;
	align-content: center;
	gap: 15px;
}
@media (max-width: 680px) {
    .footer__bottom-row {
        flex-direction: column;
        align-items: self-end;
        text-align: right;
        gap: .75rem;
    }

	.footer__menu {
    align-items: start;
    justify-content: flex-start;
    flex-direction: column;
    text-align: right;
}
.footer__menu li {
    padding-inline: 0;
    margin-bottom: 5px;
}
}
/* =========================================================================
   Animations (initial states; GSAP takes over)
   ========================================================================= */
.js [data-anim='fade-up'],
.js [data-anim='card'],
.js [data-anim='title'] { opacity: 0; }
.js [data-anim='rule'] { transform-origin: right center; transform: scaleX(0); }
.js [data-anim='media-reveal'] { clip-path: inset(0 0 100% 0); }

@media (prefers-reduced-motion: reduce) {
	.js [data-anim] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1280px) {
	.practice__grid, .rulings__grid, .articles__grid { grid-template-columns: repeat(2, 1fr); }
	.header__memorial { display: none; }
}

@media (max-width: 1024px) {
	.header__inner {
    flex-direction: row-reverse;
}
	.header__nav, .header__side { display: none; }
	.header__burger { display: flex; }
	.project-slide { grid-template-columns: 1fr; }
	.project-slide__media { order: 0; }
	    .contact__inner {
        grid-template-columns: 1fr;
        padding-bottom: 60px;
    }
	.contact__media { min-height: 380px; }
	.footer__top { grid-template-columns: 1fr 1fr; }
	.footer__about { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
	.practice__grid, .rulings__grid, .articles__grid { grid-template-columns: 1fr; }
	.ruling-card { padding: 40px 32px 120px; min-height: 0; }
	.article-card { min-height: 0; }
	.article-card__body { padding: 24px 28px 36px; }
	.contact-form__field { grid-template-columns: 1fr; gap: .25rem; }
	.footer__top { grid-template-columns: 1fr; }
	.footer__bottom { flex-direction: column; text-align: center; }
	.hero__scroll-square { font-size: 1.125rem; }
}

/* =========================================================================
   Inner pages (Figma 337:565, 337:1056, 337:2410, 338:155)
   ========================================================================= */
.page-inner {
	font-family: 'Ploni', var(--font-main);
	font-weight: 400;
	padding-top: calc(var(--header-h) + clamp(40px, calc(4.34vw + 6.7px), 90px));
	padding-bottom: var(--section-gap);
}
.page-inner.page-contact {
	padding-bottom: 0;
}
.page-inner.single-ruling {
	padding-top: calc(var(--header-h) + clamp(40px, calc(4.34vw + 6.7px), 90px));
}

/* Page hero */
.page-hero { margin-bottom: clamp(32px, calc(1.3vw + 22px), 56px); }
.page-hero__title {
	font-size: clamp(43px, calc(4.78vw + 6px), 98px);
	font-weight: 700;
	color: var(--c-navy);
	line-height: 0.98;
}
.single-ruling .page-hero__title {
	font-weight: 400;
}
.page-hero__title--md {
	font-size: clamp(32px, calc(2.63vw + 11.8px), 62px);
	line-height: 1.15;
	max-width: 1295px;
}
.page-hero__intro {
	margin-top: clamp(24px, calc(2.17vw + 7.3px), 64px);
	font-size: clamp(20px, calc(0.96vw + 12.6px), 28px);
	line-height: 1.45;
	color: var(--c-navy);
	max-width: 1460px;
}
.page-hero--single .page-hero__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.page-hero__eyebrow {
	font-size: clamp(21px, calc(1.32vw + 10.9px), 36px);
	font-weight: 500;
	color: var(--c-navy);
}
.page-hero--single .rule--gold { margin-top: 0; }

.btn--ghost {
	min-width: 327px;
	border: 1px solid var(--c-gold);
	background: var(--c-white);
	color: var(--c-text);
	font-weight: 500;
}
.btn--ghost:hover { background: var(--c-gold); color: var(--c-white); }

.gold-bar { display: block; width: 43px; height: 3px; background: var(--c-gold); }
.link-underline { font-size: var(--fs-body); color: var(--c-gold); text-decoration: underline; text-underline-position: from-font; }
.link-underline:hover { color: var(--c-navy); }

/* =========================================================================
   Rulings archive
   ========================================================================= */
.rulings-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 100px 20px;
}
.ruling-box {
	position: relative;
	border: 1px solid var(--c-gold);
	min-height: 552px;
	padding: 82px 36px 96px;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.ruling-box__badge {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	min-width: 199px;
	padding: 0 1.5rem;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--c-gold);
	color: var(--c-white);
	font-size: 1.111rem;
	font-weight: 500;
	white-space: nowrap;
}
.single-ruling .ruling-box__badge {
	min-width: 238px;
}
.ruling-box__badge--static { position: static; align-self: flex-start; }
.ruling-box__title {
	font-size: clamp(21px, calc(1.32vw + 10.9px), 32px);
	font-weight: 500;
	line-height: 1.28;
	color: var(--c-navy);
}
.ruling-box__title a:hover { color: var(--c-gold); }
.ruling-box__excerpt { font-size: var(--fs-body); line-height: 1.55; color: var(--c-text); }
.ruling-box__cite { font-size: var(--fs-body); font-weight: 500; line-height: 1.45; color: var(--c-navy); }
.ruling-box__links {
	position: absolute;
	inset-inline: 36px;
	bottom: 36px;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.load-more-wrap { text-align: center; margin-top: clamp(48px, calc(3.47vw + 21.3px), 64px); }
.load-more {
	position: relative;
	font-size: var(--fs-md);
	color: var(--c-navy);
	padding-bottom: 6px;
	transition: color .25s ease;
	pointer-events: auto;
}
.load-more:hover { color: var(--c-gold); }
.load-more.is-loading { pointer-events: none; }

.load-more__spinner { display: none; }
.load-more.is-loading .load-more__label { visibility: hidden; }
.load-more.is-loading .load-more__spinner {
	display: grid;
	position: absolute;
	inset: 0;
	place-items: center;
}
@keyframes vdg-dot-fill {
	0%, 60%, 100% { fill-opacity: .3; }
	30%           { fill-opacity: 1; }
}
.load-more__dot {
	fill-opacity: .3;
	animation: vdg-dot-fill 1.4s ease-in-out infinite;
}
.load-more__dot:nth-child(1) { animation-delay: 0s; }
.load-more__dot:nth-child(2) { animation-delay: .18s; }
.load-more__dot:nth-child(3) { animation-delay: .36s; }
.load-more__dot:nth-child(4) { animation-delay: .54s; }
@media (prefers-reduced-motion: reduce) {
	.load-more__dot { animation: none; fill-opacity: .6; }
}

/* =========================================================================
   Single layout (ruling / practice) — content + question box
   ========================================================================= */
.single-ruling__cite {
	font-size: clamp(21px, calc(1.8vw + 7.2px), 36px);
	font-weight: 500;
	color: var(--c-gold);
	line-height: 1.25;
	max-width: 1460px;
	margin-bottom: 3.5rem !important;
	margin-top: -1rem;
}
.single-layout {
	display: grid;
	grid-template-columns: 1fr clamp(360px, 38vw, 603px);
	gap: clamp(40px, calc(4.09vw + 8.6px), 136px);
	align-items: start;
	border-top: 1px solid var(--c-gold);
	padding-top: clamp(48px, calc(4.09vw + 16.6px), 90px);
	margin-top: 30px;
}
.page-default .single-layout {
	border: none;
	padding: 0;
	margin: 0;
}
.single-layout__content { order: -1; grid-column: 2; grid-row: 1; }
.single-layout .question-box { grid-column: 2; grid-row: 1; }

.entry-content { font-size: var(--fs-body); line-height: 1.75; color: var(--c-text); max-width: 902px; }
.entry-content p { margin-bottom: 1em; }
.entry-content h2, .entry-content h3 {
	font-weight: 700;
	color: var(--c-navy);
	font-size: 1.222rem;
	margin: 1em 0 0;
}
.single-practice .entry-content h3 {
	font-size: var(--fs-body);
}
.single-ruling__meta { margin-top: 2.5rem; color: var(--c-text); }
.single-ruling__meta strong { color: var(--c-text); font-weight: 700; }

/* Question box (sand) */
.question-box {
	background: #f8dfb1;
	padding: clamp(2rem, 6vw, 5rem) clamp(1.75rem, 3vw, 3.6rem);
	position: sticky;
	top: calc(var(--header-h) + 20px);
}
.question-box__title { font-size: clamp(25px, calc(1.32vw + 14.9px), 36px);font-weight: 400; color: var(--c-navy); margin-bottom: 2rem; }
.question-box__title strong { font-weight: 700; }
.question-form__field { border-bottom: 1px solid var(--c-text); margin-bottom: 2rem; }
.question-form__field input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 1.111rem;
	padding: .5rem 0;
	font-family: inherit;
}
.question-form__field input::placeholder { color: var(--c-text); }
.question-form__field:focus-within { border-color: var(--c-navy); }
.question-form__consent {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	font-size: 0.889rem;
	line-height: 1.4;
	color: var(--c-text);
	margin-block: 2rem;
	cursor: pointer;
}
.question-form__consent input {
	appearance: none;
	width: 28px;
	height: 30px;
	flex: 0 0 auto;
	border: 1px solid var(--c-text);
	display: grid;
	place-items: center;
	background: transparent;
	cursor: pointer;
}
.question-form__consent input:checked::after { content: '✓'; color: var(--c-navy); }
.question-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 1.75rem;
	font-size: 1.111rem;
	color: var(--c-navy);
	font-weight: 400;
}
.question-form__submit svg { width: 35px; transition: translate .3s ease; }
.question-form__submit:hover svg { translate: -6px 0; }
.question-form--cf7 .wpcf7-form { direction: rtl; }
.question-form--cf7 .wpcf7-form input { direction: rtl; }
.question-form--cf7 .wpcf7-form p:last-of-type {
	display: flex;
	justify-content: flex-end;
}
.question-form--cf7 .wpcf7-acceptance label {
	display: flex;
	gap: 24px;
}

/* =========================================================================
   Practice archive
   ========================================================================= */
.page-inner.archive-practice {
	margin-bottom: 200px;
}
.practice-archive__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(2rem, 6vw, 7.2rem) 20px;
	margin-top: clamp(40px, calc(4.78vw + 3.3px), 128px);
}
.practice-row {
	position: relative;
	display: grid;
	grid-template-columns: 305px 1fr;
	min-height: 314px;
	border: 1px solid var(--c-gold);
}
.practice-row__media { position: relative; overflow: hidden; }
.practice-row__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.practice-row:hover .practice-row__img { transform: scale(1.06); }
.practice-row__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(15 44 78 / 0), rgb(15 44 78 / .7)); }
.practice-row__body {
	padding: 60px 35px 60px;
}
.practice-row__title { font-size: clamp(21px, calc(1.32vw + 10.9px), 32px); font-weight: 700; color: var(--c-navy); margin-bottom: .75rem; line-height: 1; }
.practice-row__desc { font-size: var(--fs-body); line-height: 1.65; color: var(--c-navy); padding-left: 70px; }
.practice-row .square-arrow {
	width: 69px;
	height: 69px;
}
.circle-arrow svg { width: 32px; }
.practice-row:hover .circle-arrow { background: var(--c-gold); color: var(--c-white); }

@media (max-width: 600px) {
	.practice-row__desc {
    padding-left: 0;
}
}


/* =========================================================================
   Practice single — topics chips
   ========================================================================= */
.single-practice__topics-title { font-size: clamp(16px, calc(0.48vw + 12.3px), 20px); font-weight: 700; color: var(--c-navy); margin: 2.5em 0 1em; }
.topics-grid {
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 17px 24px;
	margin-top: 35px !important;
	padding-inline-start: 0 !important;
}
.topics-grid__item {
	border: 1px solid var(--c-gold);
	min-height: 72px;
	display: flex;
	align-items: center;
	padding: .75rem 2.25rem;
	font-size: var(--fs-body);
	font-weight: 500;
	color: var(--c-navy);
	line-height: 1.15;
	border-right: 8px solid var(--c-gold);
}
.single-practice__closing { margin-top: 2rem; }
.single-practice__closing strong { font-weight: 700; color: var(--c-text); }

/* =========================================================================
   Inner responsive
   ========================================================================= */
@media (max-width: 1280px) {
	.rulings-archive__grid { grid-template-columns: repeat(2, 1fr); gap: 80px 22px; }
	.single-layout { grid-template-columns: 1fr; }
	.single-layout__content { grid-column: 1; grid-row: 1; }
	.single-layout .question-box { grid-column: 1; grid-row: 2; position: static; max-width: 640px; }
	.practice-archive__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.page-inner { padding-top: calc(var(--header-h) + 2rem); }
	.rulings-archive__grid { grid-template-columns: 1fr; gap: 64px; }
	.ruling-box { min-height: 0; padding: 72px 28px 110px; }
	.ruling-box__links { flex-direction: column; align-items: flex-start; inset-inline: 28px; bottom: 28px; }
	.practice-row { grid-template-columns: 1fr; }
	.practice-row__media { min-height: 240px; }
	.practice-row__body { padding: 32px 28px 80px; }
	.btn--ghost { min-width: 0; width: 100%; }
	.page-hero--single .page-hero__meta { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   Single post (Figma 337:1954)
   ========================================================================= */
.single-post__section a { color: var(--c-navy); transition: color .25s ease; }
.single-post__section a:hover { color: var(--c-gold); }

.post-layout {
	display: grid;
	grid-template-columns: minmax(0, 902fr) minmax(0, 602fr); /* content right, image left (RTL) */
	gap: clamp(2rem, 4vw, 8.5rem);
	align-items: start;
}
.post-layout__media {
	margin: 0;
	position: sticky;
	top: calc(var(--header-h) + 20px);
	align-self: start;
}
.post-layout__img { width: 100%; aspect-ratio: 602 / 410; object-fit: cover; }

.single-post__title {
	font-size: clamp(25px, calc(1.32vw + 14.9px), 36px);
	font-weight: 500;
	line-height: 1.25;
	color: var(--c-navy);
	margin-bottom: 1.5rem;
}
.single-post__meta {
	font-size: clamp(16px, calc(0.24vw + 14.2px), 18px);
	font-weight: 500;
	color: var(--c-gold);
	margin-bottom: 1.25rem;
}
.single-post .gold-bar { margin-bottom: 3.25rem; margin-top: 1.75rem; }

/* Article body: enlarged lede, bold gray subheads (matches editor output) */
.entry-content--article { max-width: none; }
.entry-content--article > p:first-child {
	font-size: clamp(18px, calc(0.6vw + 13.4px), 23px);
	line-height: 1.4;
}
.entry-content--article h2,
.entry-content--article h3 {
	color: var(--c-text);
	font-size: clamp(16px, calc(0.48vw + 12.3px), 20px);
	margin: 1.1em 0 .1em;
}

.single-post__disclaimer {
	margin-top: clamp(40px, calc(2.6vw + 20px), 72px);
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-gold);
	font-size: var(--fs-body);
	font-weight: 500;
	color: var(--c-gold);
	line-height: 2;
}

@media (max-width: 1024px) {
	.post-layout { grid-template-columns: 1fr; }
	.post-layout__media { order: -1; position: static; }
}

/* =========================================================================
   About page (Figma 337:372)
   ========================================================================= */
.about-lede {
font-size: clamp(22px, calc(1.2vw + 12.8px), 32px);
	font-weight: 400;
	line-height: 1.18; /* 47px */
	color: var(--c-text);
	max-width: 1338px;
	margin: clamp(24px, calc(3.47vw - 2.7px), 64px) auto 0;
}

.about-media {
	position: relative;
	margin: clamp(32px, calc(5.9vw - 13.3px), 100px) 0 clamp(48px, calc(4.34vw + 14.7px), 104px);
}
.about-media__img { width: 100%; aspect-ratio: 1638 / 743; object-fit: cover; }
.about-media__arrow {
	position: absolute;
	inset-inline-end: clamp(1rem, 3vw, 4rem);
	bottom: clamp(1.5rem, 4vw, 5rem);
	color: var(--c-white);
	font-size: clamp(25px, calc(2.16vw + 8.4px), 43px);
	line-height: 1;
	animation: about-arrow-bob 2.2s ease-in-out infinite;
}
@keyframes about-arrow-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
	.about-media__arrow { animation: none; }
}

.about-layout {
	display: grid;
	grid-template-columns: minmax(0, 902fr) minmax(0, 605fr);
	gap: clamp(2.5rem, 4vw, 8rem);
	align-items: start;
	margin-bottom: 30px;
}
.about-layout__content { grid-column: 1; grid-row: 1; max-width: 902px; }
.about-quote {
	grid-column: 2;
	grid-row: 1;
	position: sticky;
	top: calc(var(--header-h) + 24px);
	padding-top: 2.875rem;
}
.about-quote svg {
	max-width: 100%;
}
.about-quote__text {
	margin: 0;
	font-size: clamp(25px, calc(1.32vw + 14.9px), 36px);
	font-weight: 500;
	line-height: 1.08; /* 43px */
	color: var(--c-gold);
	margin-top: 40px;
}

.entry-content ul { padding-inline-start: 1.25em; margin: 0 0 1em; }
.entry-content ul li { margin-bottom: .25em; }

@media (max-width: 1024px) {
	.about-layout { grid-template-columns: 1fr; }
	.about-layout__content { grid-column: 1; }
	.about-quote {
		grid-column: 1;   /* ← вот это добавь */
		grid-row: auto;
		position: static;
		max-width: 605px;
		padding-top: 0;
	}
}

/* =========================================================================
   Team listing (Figma 333:541)
   ========================================================================= */
.team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(3rem, 7.7vw, 8.25rem) 20px;
	margin-top: clamp(40px, calc(6.94vw - 13.3px), 144px);
	align-items: start;
}
.member-card { display: block; }
.member-card__media { position: relative; aspect-ratio: 533 / 515; overflow: hidden; }
.member-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.member-card:not(.member-card--static):hover .member-card__img { transform: scale(1.05); }
.member-card:not(.member-card--static):hover .square-arrow--solid { background: var(--c-navy); }
.member-card__name {
	margin-top: .5rem;
	font-size: clamp(21px, calc(1.32vw + 10.9px), 32px);
	font-weight: 700;
	line-height: 1.9;
	color: var(--c-navy);
}
.member-card__role {
	font-size: var(--fs-md);
	font-weight: 500;
	line-height: 1.42;
	color: var(--c-navy);
	margin-left: 20px;
}

/* Memorial box — sand cell with candle */
.memorial-box {
	order: 1;
	background: #F8DFB1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.5rem;
	padding: clamp(1.5rem, 4vw, 4.5rem);
	aspect-ratio: auto;
}
.memorial-box__candle { width: 22px; height: 38px; color: var(--c-gold); flex: 0 0 auto; }
.memorial-box__text {
	font-size: var(--fs-md);
	line-height: 1.42;
	color: var(--c-navy);
	max-width: 406px;
}
.memorial-box__text strong { font-weight: 700; }

/* Ячейка с memorial: фото + панель памяти рядом, без зазора, одной высоты */
.member-card__media--memorial {
	display: grid;
	grid-template-columns: 1fr 1fr;
	aspect-ratio: 1066 / 505;
}
.member-card__media--memorial .member-card__img {
	width: 100%; height: 100%; object-fit: cover;
	order: 1;
}
.member-card__media--memorial .member-card__img:hover {
	transform: none !important;
}
.member-card--memorial { grid-column: span 2; }

/* =========================================================================
   Single team member (Figma 333:691)
   ========================================================================= */
.page-inner.single-member {
	padding-bottom: clamp(120px, calc(21.63vw - 46.2px), 300px);
}
.single-member__suffix { font-weight: 400; }
.single-member__role {
	font-size: var(--fs-md);
	font-weight: 500;
	line-height: 1.44;
	color: var(--c-text);
	max-width: 564px;
	margin-bottom: 1rem;
}
.single-layout--member {
	grid-template-columns: 1fr 605px; /* контент | фото */
	margin-top: clamp(1.5rem, 2.5vw, 3rem);
	align-items: start;
}
.single-member__media {
	margin: 0;
	grid-column: 2;
	grid-row: 1;
	align-self: stretch;
}
.single-layout__content { grid-column: 1; grid-row: 1; }
.single-member__media-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.single-member__img { width: 100%; aspect-ratio: 605 / 606; object-fit: cover; }
.single-member__head { margin-bottom: clamp(32px, calc(2.6vw + 12px), 66px); }
.single-member__name {
	font-size: clamp(32px, calc(2.6vw + 12px), 62px);
	font-weight: 700;
	color: var(--c-navy);
	line-height: 1.05;
	margin-bottom: 25px;
}
.single-member__social {
	display: flex;
	gap: 1.75rem;
	margin-top: 1.75rem;
	align-items: baseline;
	flex-direction: row-reverse;
	justify-content: flex-end;
}
.single-member__social a { color: var(--c-navy); transition: all .25s ease; }
.single-member__social a:hover { color: var(--c-gold); transform: scale(1.1); }
.single-member__social svg { width: 100%; height: 100%; }

/* Accordion */
.accordion { border-bottom: 1px solid var(--c-gold); max-width: 902px; }
.accordion__item { border-top: 1px solid var(--c-gold); }
.accordion__heading { margin: 0; }
.accordion__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.5rem;
	padding: 3rem 0;
	flex-direction: row-reverse;
}
.accordion__title {
	font-size: clamp(21px, calc(1.8vw + 7.2px), 36px);
	font-weight: 500;
	color: var(--c-navy);
	line-height: 1.2;
	transition: color .3s ease;
}
.accordion__item.is-open .accordion__title { color: var(--c-gold); }

/* Plus/minus icon */
.accordion__icon { position: relative; width: 35px; height: 35px; flex: 0 0 auto; }
.accordion__icon::before,
.accordion__icon::after {
	content: '';
	position: absolute;
	inset: 50% auto auto 0;
	width: 100%;
	height: 2px;
	background: var(--c-navy);
	translate: 0 -50%;
	transition: rotate .35s ease, background-color .3s ease;
}
.accordion__icon::after { rotate: 90deg; }
.accordion__item.is-open .accordion__icon::after { rotate: 0deg; }
.accordion__item.is-open .accordion__icon::before,
.accordion__item.is-open .accordion__icon::after { background: var(--c-gold); }

.accordion__panel { overflow: hidden; }
.accordion__body { padding-bottom: 2.25rem; max-width: 902px; }

@media (max-width: 1280px) {
	.team-grid { grid-template-columns: repeat(2, 1fr); gap: 64px 22px; }
	.single-layout--member { grid-template-columns: 1fr; }
	.single-member__media {
		grid-column: 1;  /* add this */
		grid-row: auto;
	}
	.single-member__media-sticky { position: static; max-width: 605px; }
	.single-layout--member .single-layout__content { grid-column: 1; grid-row: 2; }
}
@media (max-width: 680px) {
	.team-grid { grid-template-columns: 1fr; gap: 56px; }
	.memorial-box { aspect-ratio: auto; }
	.member-card--memorial { grid-column: auto; }
	.member-card__media--memorial { grid-template-columns: 1fr; aspect-ratio: auto; }
.page-hero--single .page-hero__meta {
        flex-direction: column-reverse;
        margin-bottom: 20px;
    }
}

/* =========================================================================
   404 (Figma 337:2142)
   ========================================================================= */
.error-404 { padding-bottom: 0; margin-bottom: -30px; }
.error-404__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* text right, logo left (RTL) */
	gap: clamp(2rem, 5vw, 8rem);
	min-height: 420px;
}
.error-404__graphic {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	justify-content: center;
}
.error-404__logo { width: min(100%, 700px); height: auto; opacity: .95; }
.error-404__body {
	grid-column: 1;
	grid-row: 1;
	padding-right: 5vw;
}
.error-404__code {
	font-size: clamp(100px, calc(10.59vw + 18.7px), 222px);
	font-weight: 400;
	line-height: 1;
	color: var(--c-navy);
	margin-bottom: 1rem;
}
.error-404__text {
	font-size: 1.222rem;
	line-height: 1.45;
	letter-spacing: .01em;
	color: var(--c-text);
	margin-bottom: 2rem;
}
.btn--small {
	min-width: 157px;
	min-height: 40px;
	padding: .35em 1.5em;
	font-size: 1rem;
	font-weight: 700;
}

@media (max-width: 900px) {
	.error-404__inner { grid-template-columns: 1fr; }
	.error-404__graphic { display: none; }
	.error-404__body { grid-column: 1; }
}

/* =========================================================================
   Default page (Figma 348:4260 — דף טקסטואלי)
   ========================================================================= */
.page-default__title { margin-bottom: clamp(32px, calc(2.6vw + 12px), 72px); }
.single-layout--page .question-box { align-self: start; }
.question-form--cf7 .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}
.question-form--cf7 .wpcf7-spinner {
	position: absolute;
}
.entry-content--lg { font-size: clamp(16px, calc(0.84vw + 9.5px), 23px); line-height: 1.38; }
.entry-content--lg h2,
.entry-content--lg h3 {
	color: var(--c-text);
	font-size: 1em;
	font-weight: 700;
	margin: 1.4em 0 .55em;
}
.entry-content--lg ul { padding-inline-start: 1.5em; margin: 0 0 1em; }
.entry-content--lg ul li { margin-bottom: .15em; }

/* =========================================================================
   Contact page (Figma 349:980)
   ========================================================================= */
.contact-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 963fr) minmax(0, 680fr); /* info box left, form right (RTL) */
	gap: clamp(40px, calc(5.29vw - 0.6px), 128px);
	align-items: start;
}
.contact-page__form-wrap { grid-column: 1; grid-row: 1; max-width: 762px; }
.contact-info { grid-column: 2; grid-row: 1; }
.contact-page__form-wrap .contact-form__field input {
	padding: 1.6rem 0 1rem;
}
.contact-page__form-wrap .contact-form__consent {
	margin-block: 5rem 1rem;
}
.contact-page__form-wrap .contact-form__consent-row P:last-child {
	text-align: left;
}
.contact-info {
	background: #f8dfb1;
	padding: clamp(2.5rem, 6vw, 7.9rem) clamp(2rem, 3.4vw, 4.1rem);
	display: grid;
	gap: clamp(1.75rem, 2.4vw, 2.9rem);
	margin-top: 20px;
}
.contact-info__title {
	font-size: clamp(21px, calc(1.32vw + 10.9px), 32px);
	font-weight: 500;
	color: var(--c-navy);
	line-height: 1.28;
	margin-bottom: .75rem;
}
.contact-info__text {
	font-size: var(--fs-md);
	line-height: 1.42;
	color: var(--c-navy);
	margin-bottom: 1.1rem;
}
.contact-info__text a:hover { color: var(--c-gold); }

.contact-page__lead {
	font-size: var(--fs-md);
	line-height: 1.3;
	color: var(--c-text);
	margin-top: 1rem;
	margin-bottom: 1rem;
	max-width: 762px;
}

/* Stacked-label form variant: label above the underlined input */
.contact-form--stacked .contact-form__field {
	grid-template-columns: 1fr;
	gap: .25rem;
	padding-bottom: .6rem;
	margin-bottom: 2.6rem;
}
.contact-form--stacked .contact-form__field label { color: var(--c-text); }
.contact-form--stacked .contact-form__consent input { width: 23px; height: 24px; }

/* Full-bleed Google Map under the form section */
.contact-page__map {
	margin-top: clamp(48px, calc(6.08vw + 1.3px), 144px);
	width: 100%;
	height: clamp(320px, 31.25vw, 600px);
	filter: grayscale(.35) saturate(.85);
}
.contact-page__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.contact-page__form-wrap { max-width: min(762px, 100%); }
.contact-page__lead { max-width: min(762px, 100%); }
@media (max-width: 1024px) {
	.contact-page__layout { grid-template-columns: 1fr; }
	.contact-page__form-wrap { grid-column: 1; }
	.contact-info {
		grid-column: 1;  /* add this — was missing, kept implicit 2nd column */
		grid-row: 2;
		max-width: 603px;
	}
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}
/* section-title already has margin-bottom; keep it as the head's spacing */
.section-head .section-title { margin-bottom: 0; }
.section-head + .practice__grid { margin-top: clamp(24px, calc(3.57vw - 3.4px), 48px); }

.section-head__link {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	font-size: var(--fs-md);
	color: var(--c-navy);
	white-space: nowrap;
	transition: color .25s ease, gap .25s ease;
}
.section-head__link svg { width: 32px; transition: translate .25s ease; }
.section-head__link:hover { color: var(--c-gold); }
.section-head__link:hover svg { translate: -6px 0; } /* arrow nudges toward inline-start in RTL */

@media (max-width: 600px) {
	.section-head__link { font-size: var(--fs-body); }
	.section-head__link svg { width: 24px; }
}
.section-head + .cards-slider { margin-top: clamp(24px, calc(3.57vw - 3.4px), 48px); }


.wa-float {
	position: fixed;
	bottom: clamp(20px, calc(2.04vw + 4.3px), 37px);
	left: clamp(20px, calc(2.04vw + 4.3px), 37px);
	z-index: 200;
width: clamp(72px, calc(3.37vw + 46.1px), 100px);
	height: clamp(72px, calc(3.37vw + 46.1px), 100px);
	border-radius: 50%;
	background: #A68B5A;
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 20px rgb(15 44 78 / .25);
	transition: background-color .3s ease, transform .3s ease;
}
.wa-float:hover { background: #0F2C4E; transform: scale(1.08); }
.wa-float svg { width: 56%; height: 56%; }


.navigation-links {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 12px;
	margin-bottom: 20px;
}

.navigation-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.navigation-icon {
    display: block;
    width: 41px;
    height: 41px;
    fill: #fff;
    transition: opacity 0.2s ease;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navigation-links a:hover svg, .navigation-links a:hover img {
	transform: scale(1.1);
}

.contact-info .navigation-icon {
	fill: #0F2C4E;
}