:root {
  --navy-950: #0d223b;
  --navy-900: #102a49;
  --navy-800: #183858;
  --gold-700: #a97b35;
  --gold-600: #b98a45;
  --gold-500: #c39a59;
  --gold-100: #f4ead8;
  --ink: #263444;
  --muted: #6e747b;
  --line: #e5e0d8;
  --warm-white: #fbfaf7;
  --warm-gray: #f5f3ef;
  --white: #fff;
  --shadow-card: 0 2px 4px rgba(17, 37, 58, .04), 0 10px 24px rgba(17, 37, 58, .055);
  --shell: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  padding-top: var(--header-height);
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "Assistant", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--navy-950);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 20;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid #ece8e2;
  box-shadow: 0 2px 10px rgba(25, 37, 50, .035);
}

.header-inner {
  direction: ltr;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 13px;
  color: var(--navy-900);
}

html[lang="he"] .brand {
  flex-direction: row-reverse;
}

.brand-mark {
  direction: ltr;
  color: var(--gold-600);
  font-family: Georgia, serif;
  font-size: 31px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -3px;
}

.brand-divider {
  width: 1px;
  height: 38px;
  background: var(--gold-500);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 24px;
  font-weight: 700;
}

.brand-copy small {
  margin-top: 5px;
  color: #74736f;
  font-size: 11px;
  font-weight: 500;
}

.primary-nav {
  direction: rtl;
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(24px, 2.6vw, 43px);
  height: 100%;
  color: #313b47;
  font-size: 14px;
  font-weight: 600;
}

.primary-nav a {
  position: relative;
  display: grid;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 50%;
  inset-block-end: 17px;
  height: 1px;
  background: var(--gold-600);
  transition: inset-inline .18s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  inset-inline: 0;
}

.language-switcher select {
  min-height: 32px;
  padding: 0 8px;
  color: var(--navy-900);
  background: #fff;
  border: 1px solid #d7c9b5;
  border-radius: 2px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher select:focus-visible {
  outline: 3px solid rgba(185, 138, 69, .55);
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy-900);
}

/* Hero */
.hero {
  background: var(--warm-white);
  border-bottom: 1px solid #ede9e3;
}

.hero-grid {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 510px;
}

.hero-content {
  direction: rtl;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px clamp(28px, 5vw, 86px) 54px;
  text-align: center;
}

.hero-image {
  grid-column: 2;
  grid-row: 1;
  min-height: 510px;
  overflow: hidden;
  background: #e9e5df;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold-700);
  font-size: clamp(36px, 3.3vw, 54px);
  font-weight: 700;
  letter-spacing: -.03em;
}

.hero h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(44px, 4.1vw, 67px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}

.hero-statement {
  margin: 24px 0 0;
  color: var(--navy-900);
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 700;
}

.legal-divider {
  direction: ltr;
  display: flex;
  align-items: center;
  width: min(290px, 78%);
  margin: 15px 0 13px;
  color: var(--gold-600);
  gap: 13px;
}

.legal-divider span {
  flex: 1;
  height: 1px;
  background: #d8c5a7;
}

.legal-divider i {
  font-size: 17px;
}

.hero-description {
  max-width: 510px;
  margin: 0;
  color: #58616b;
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  direction: rtl;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  height: 47px;
  padding-inline: 23px;
  gap: 11px;
  color: var(--white);
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(13, 34, 59, .09);
  font-size: 15px;
  font-weight: 700;
  transition: filter .15s ease, transform .15s ease;
}

.button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.button-whatsapp {
  background: var(--navy-900);
}

.button-phone {
  background: var(--gold-600);
}

.button i {
  font-size: 17px;
}

/* Shared section treatment */
.section {
  padding-block: 45px 49px;
}

.section-heading {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-bottom: 31px;
}

.section-heading h2 {
  direction: rtl;
  margin: 0;
  color: var(--navy-900);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

html[dir="ltr"] .section-heading h2 {
  direction: ltr;
}

.heading-rule {
  width: 48px;
  height: 1px;
  background: var(--gold-600);
}

/* Practice cards */
.practice {
  background: #fff;
}

.practice-grid {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.practice-card {
  min-height: 220px;
  padding: 27px 20px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1px;
  box-shadow: var(--shadow-card);
}

.practice-card > i {
  min-height: 49px;
  color: var(--gold-600);
  font-size: 41px;
}

.practice-card h3 {
  min-height: 43px;
  margin: 13px 0 8px;
  color: var(--navy-900);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.practice-card p {
  margin: 0 auto;
  max-width: 185px;
  color: #72777d;
  font-size: 13px;
  line-height: 1.55;
}

/* Why choose me */
.why {
  padding-bottom: 0;
  background: var(--warm-gray);
  border-top: 1px solid #ece8e1;
}

.why .section-heading {
  margin-bottom: 37px;
}

.why-layout {
  direction: ltr;
  display: grid;
  min-height: 235px;
  border-top: 1px solid #e4dfd7;
}

.why-features {
  direction: rtl;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  padding: 37px clamp(24px, 4vw, 67px) 30px;
  background: #fff;
}

.feature {
  position: relative;
  padding: 0 17px;
  text-align: center;
}

.feature:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block: 7px 3px;
  inset-inline-end: 0;
  width: 1px;
  background: #e8e2d8;
}

.feature i {
  color: var(--gold-600);
  font-size: 29px;
}

.feature h3 {
  margin: 14px 0 7px;
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.feature p {
  margin: 0 auto;
  color: #777a7e;
  font-size: 12px;
  line-height: 1.55;
}

/* Recommendations and case law */
.recommendations {
  background: var(--warm-white);
  border-top: 1px solid #ece8e1;
}

.recommendations-header {
  position: relative;
  display: block;
  margin-bottom: 29px;
}

.recommendations-header > div:first-child {
  text-align: center;
}

.recommendations .section-heading {
  justify-content: center;
  margin-bottom: 8px;
}

.recommendations .section-subtitle {
  text-align: center;
}

.recommendations-header .carousel-controls {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
  color: var(--navy-900);
  background: #fff;
  border: 1px solid #d7c9b5;
  border-radius: 50%;
  box-shadow: 0 3px 9px rgba(17, 37, 58, .055);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.carousel-button:hover:not(:disabled),
.carousel-button:focus-visible:not(:disabled) {
  color: #fff;
  background: var(--gold-600);
  border-color: var(--gold-600);
  transform: translateY(-1px);
}

.carousel-button:disabled {
  color: #a8aaac;
  background: #f3f0eb;
  border-color: #e5e0d8;
  cursor: default;
  box-shadow: none;
}

.recommendations-carousel {
  min-width: 0;
}

.recommendations-track {
  direction: rtl;
  display: flex;
  gap: 18px;
  margin-inline: -2px;
  padding: 3px 2px 25px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.recommendations-track::-webkit-scrollbar {
  display: none;
}

.recommendation-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  min-height: 552px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.recommendation-card:hover {
  border-color: #d6cab9;
  box-shadow: 0 5px 10px rgba(17, 37, 58, .06), 0 18px 34px rgba(17, 37, 58, .085);
  transform: translateY(-3px);
}

.recommendation-media {
  position: relative;
  flex: 0 0 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #e9e5df;
  border-bottom: 1px solid var(--line);
}

.media-lightbox-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}

.image-lightbox {
  width: min(92vw, 920px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.image-lightbox::backdrop {
  background: rgba(13, 34, 59, .8);
}

.image-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  margin: auto;
  object-fit: contain;
  background: #fff;
}

.image-lightbox-close {
  position: absolute;
  z-index: 1;
  inset-block-start: -14px;
  inset-inline-end: -14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--navy-900);
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(13, 34, 59, .25);
  cursor: pointer;
}

.recommendation-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.recommendation-card:hover .recommendation-media img {
  transform: scale(1.018);
}

.recommendation-media-placeholder {
  gap: 11px;
  color: var(--gold-100);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .08), transparent 36%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
}

.recommendation-media-placeholder::before,
.recommendation-media-placeholder::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 1px;
  inset-block-start: 50%;
  background: rgba(195, 154, 89, .48);
}

.recommendation-media-placeholder::before {
  inset-inline-start: calc(50% + 48px);
}

.recommendation-media-placeholder::after {
  inset-inline-end: calc(50% + 48px);
}

.recommendation-media-placeholder i {
  color: var(--gold-500);
  font-size: 48px;
}

.recommendation-media-placeholder span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
}

.recommendation-media-document {
  padding: 10px;
  background: #efede8;
}

.recommendation-media-document img {
  object-fit: contain;
}

.recommendation-media-facebook img {
  object-position: center 46%;
}

.recommendation-media-facebook::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 34, 59, .18), transparent 42%);
  pointer-events: none;
}

.recommendation-media-facebook > i {
  position: absolute;
  z-index: 1;
  inset-block-end: 15px;
  inset-inline-start: 17px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold-600);
  background: rgba(255, 255, 255, .95);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(13, 34, 59, .14);
  font-size: 18px;
}

.recommendation-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 21px 23px 23px;
}

.recommendation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  color: var(--gold-700);
  font-size: 12px;
  font-weight: 700;
}

.recommendation-type {
  padding-inline-start: 9px;
  border-inline-start: 2px solid var(--gold-600);
}

.recommendation-source {
  color: #808186;
  font-weight: 600;
}

.recommendation-source i {
  margin-inline-end: 4px;
  color: #4267b2;
}

.recommendation-body h3 {
  min-height: 55px;
  margin: 0 0 11px;
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.recommendation-body > p,
.success-summary {
  margin: 0 0 17px;
  color: #626970;
  font-size: 14px;
  line-height: 1.62;
}

.success-summary ul {
  margin: 8px 0 0;
  padding-inline-start: 19px;
}

.representation-label {
  align-self: flex-start;
  margin: -2px 0 15px;
  padding: 4px 9px;
  color: var(--navy-800);
  background: var(--gold-100);
  border: 1px solid #ead9bd;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
}

.recommendation-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--gold-700);
  font-size: 14px;
  font-weight: 700;
}

.recommendation-link i {
  font-size: 11px;
  transition: transform .15s ease;
}

.recommendation-link:hover,
.recommendation-link:focus-visible {
  color: var(--navy-900);
}

.recommendation-link:hover i {
  transform: translateX(-3px);
}

.outcome-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.outcome-summary span {
  padding: 8px 7px;
  color: var(--navy-800);
  background: var(--gold-100);
  border: 1px solid #eadbc2;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
}

.outcome-summary strong {
  display: block;
  color: var(--gold-700);
  font-size: 17px;
}

.carousel-swipe-hint {
  display: none;
  margin: -8px 0 0;
  color: #777a7e;
  font-size: 12px;
  text-align: center;
}

.carousel-swipe-hint i {
  margin-inline-end: 7px;
  color: var(--gold-600);
}

/* Contact */
.contact-layout {
  direction: ltr;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 395px;
}

.contact-form-panel {
  direction: rtl;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px clamp(45px, 7vw, 118px);
  background: #fff;
}

.contact-form-panel > h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-form-panel > p {
  margin: 3px 0 19px;
  color: #72767b;
  font-size: 14px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-form label {
  display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: #2e3944;
  background: #fff;
  border: 1px solid #d9d6d0;
  border-radius: 1px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form input,
.contact-form select {
  height: 42px;
  padding: 0 13px;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #848484 50%),
    linear-gradient(135deg, #848484 50%, transparent 50%);
  background-position:
    left 16px center,
    left 11px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.contact-form textarea {
  min-height: 72px;
  padding: 10px 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(185, 138, 69, .14);
}

.contact-form ::placeholder {
  color: #85888b;
  opacity: 1;
}

.submit-button {
  height: 43px;
  color: #fff;
  background: var(--gold-600);
  border: 0;
  border-radius: 1px;
  box-shadow: 0 3px 8px rgba(137, 99, 42, .13);
  font-weight: 700;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--gold-700);
}

.form-status {
  min-height: 0;
  margin: 0;
  color: var(--gold-700);
  font-size: 13px;
}

.form-status:not(:empty) {
  min-height: 20px;
}

.contact-info {
  direction: rtl;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  padding: 42px clamp(44px, 7vw, 110px);
  color: #fff;
  background: var(--navy-900);
}

.contact-info-inner {
  width: min(100%, 430px);
}

.contact-info h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.contact-lead {
  margin: 6px 0 22px;
  color: rgba(255, 255, 255, .79);
  font-size: 15px;
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .94);
  font-size: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 13px;
}

.contact-list i {
  width: 18px;
  color: var(--gold-500);
  font-size: 16px;
  text-align: center;
}

.contact-list .fa-whatsapp {
  color: #54c67a;
}

/* Footer and floating buttons */
.site-footer {
  min-height: 56px;
  color: #6d7278;
  background: #fff;
  border-top: 1px solid #e7e3dd;
  font-size: 12px;
}

.footer-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 21px;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--navy-900);
}

.floating-contact {
  position: fixed;
  z-index: 30;
  right: 20px;
  inset-block-end: 19px;
}

.floating-action,
.floating-contact-option {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(13, 34, 59, .22);
  font-size: 21px;
}

.floating-contact-trigger {
  padding: 0;
  background: var(--gold-600);
  cursor: pointer;
}

.floating-contact-options {
  position: absolute;
  right: 0;
  inset-block-end: 61px;
  display: grid;
  gap: 9px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
}

.floating-contact.is-open .floating-contact-options {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.floating-whatsapp { background: #28b864; }
.floating-phone { background: var(--navy-900); }

:focus-visible {
  outline: 3px solid rgba(185, 138, 69, .55);
  outline-offset: 3px;
}

html[dir="ltr"] .brand,
html[dir="ltr"] .primary-nav,
html[dir="ltr"] .hero-content,
html[dir="ltr"] .hero-actions,
html[dir="ltr"] .practice-grid,
html[dir="ltr"] .why-features,
html[dir="ltr"] .recommendations-track,
html[dir="ltr"] .contact-form-panel,
html[dir="ltr"] .contact-info {
  direction: ltr;
}

html[dir="ltr"] .recommendation-media-facebook > i {
  inset-inline-start: auto;
  inset-inline-end: 17px;
}

/* Responsive */
@media (max-width: 1100px) {
  :root {
    --header-height: 70px;
  }

  .header-inner {
    gap: 24px;
  }

  .primary-nav {
    gap: 21px;
    font-size: 13px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-divider {
    height: 30px;
  }

  .hero-grid,
  .hero-image {
    min-height: 470px;
  }

  .hero-content {
    padding-inline: 30px;
  }

  .practice-grid {
    gap: 11px;
  }

  .practice-card {
    padding-inline: 13px;
  }

  .why-features {
    padding-inline: 20px;
  }

  .feature {
    padding-inline: 10px;
  }

  .recommendation-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .contact-form-panel,
  .contact-info {
    padding-inline: 54px;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .language-switcher select {
    width: 66px;
    padding-inline: 3px;
    font-size: 12px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 10px;
    inset-block-start: 12px;
  }

  .language-switcher {
    position: absolute;
    right: 58px;
    inset-block-start: 16px;
  }

  .primary-nav {
    position: absolute;
    inset-block-start: var(--header-height);
    right: 0;
    left: auto;
    width: min(320px, 100vw);
    direction: ltr;
    display: none;
    height: auto;
    padding: 13px 18px 19px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(13, 34, 59, .09);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    height: auto;
    padding: 10px 8px;
    border-bottom: 1px solid #f0ede8;
  }

  html[dir="rtl"] .primary-nav a {
    direction: rtl;
    text-align: right;
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .primary-nav a::after {
    display: none;
  }

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

  .hero-content {
    grid-column: 1;
    grid-row: 2;
    min-height: 430px;
    padding: 55px 30px 58px;
  }

  .hero-image {
    grid-column: 1;
    grid-row: 1;
    min-height: 340px;
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .practice-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }

  .why-layout {
    grid-template-columns: 1fr;
  }

  .why-features {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 12px 30px 24px;
  }

  .feature {
    min-height: 166px;
    padding: 25px 18px;
    border-bottom: 1px solid #e8e2d8;
  }

  .feature:not(:last-child)::after {
    display: none;
  }

  .feature:nth-child(odd) {
    border-inline-end: 1px solid #e8e2d8;
  }

  .feature:last-child {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
    border-inline-end: 0;
    border-bottom: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    grid-column: 1;
    grid-row: 1;
    min-height: 420px;
    padding: 49px max(32px, 10vw);
  }

  .contact-info {
    grid-column: 1;
    grid-row: 2;
    min-height: 340px;
    padding: 48px max(32px, 10vw);
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding-block: 14px;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .recommendations-header {
    display: block;
    margin-bottom: 23px;
  }

  .recommendations .section-heading {
    justify-content: center;
  }

  .section-subtitle {
    text-align: center;
  }

  .carousel-controls {
    display: none;
  }

  .recommendations-carousel {
    margin-inline-end: calc((100vw - 100%) / -2);
  }

  .recommendations-track {
    gap: 14px;
    margin-inline: 0;
    padding-inline: 0 calc((100vw - 100%) / 2);
    scroll-padding-inline-start: calc((100vw - 100%) / 2);
  }

  .recommendation-card {
    flex-basis: 82vw;
    min-height: 555px;
  }

  .recommendation-media {
    flex-basis: 205px;
  }

  .recommendation-body {
    padding: 19px 20px 21px;
  }

  .recommendation-body h3 {
    min-height: auto;
    font-size: 19px;
  }

  .carousel-swipe-hint {
    display: block;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 65px;
  }

  .page-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    font-size: 26px;
  }

  .brand-divider {
    height: 27px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .hero-image {
    min-height: 285px;
  }

  .hero-content {
    min-height: 0;
    padding: 47px 18px 50px;
  }

  .eyebrow {
    font-size: clamp(32px, 10vw, 42px);
  }

  .hero h1 {
    font-size: clamp(40px, 12.5vw, 52px);
  }

  html[lang="ru"] .hero h1 {
    font-size: clamp(37px, 10.4vw, 44px);
  }

  .hero-statement {
    margin-top: 20px;
    font-size: 17px;
  }

  .hero-description br {
    display: none;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .button {
    width: min(100%, 330px);
  }

  .section {
    padding-block: 39px 42px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 25px;
  }

  .section-heading h2 {
    min-width: 0;
    font-size: 27px;
  }

  html[lang="ru"] .practice .section-heading h2,
  html[lang="ru"] .why .section-heading h2 {
    max-width: calc(100% - 80px);
  }

  .heading-rule {
    width: 28px;
  }

  .recommendations .section-heading {
    gap: 10px;
  }

  .recommendations .section-heading h2 {
    font-size: 25px;
  }

  .recommendations .heading-rule {
    width: 23px;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-card,
  .practice-card:last-child {
    grid-column: auto;
    width: 100%;
    min-height: 190px;
    padding-block: 24px 20px;
  }

  .practice-card h3 {
    min-height: auto;
  }

  .why .section-heading {
    margin-bottom: 31px;
  }

  .why-features {
    grid-template-columns: 1fr;
    padding: 4px 26px 18px;
  }

  .feature,
  .feature:last-child {
    grid-column: auto;
    width: 100%;
    min-height: 150px;
    border-inline-end: 0;
    border-bottom: 1px solid #e8e2d8;
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .contact-form-panel,
  .contact-info {
    padding-inline: 22px;
  }

  .contact-form-panel > h2,
  .contact-info h2 {
    font-size: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    min-height: 500px;
  }

  .contact-info {
    min-height: 330px;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .floating-contact {
    right: 12px;
    inset-block-end: 12px;
  }

  .floating-action,
  .floating-contact-option {
    width: 48px;
    height: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }

  .recommendations-track {
    scroll-behavior: auto;
  }
}
