.view-redesign {
  --ink: #1d1d24;
  --navy: #1a3757;
  --navy-deep: #10283f;
  --muted: rgba(29, 29, 36, 0.72);
  --paper: #f5f5f7;
  --line: rgba(26, 55, 87, 0.14);
  font-family: Poppins, sans-serif;
  color: var(--ink);
  background: #fff;
  padding-bottom: 88px;
}

.view-redesign * { box-sizing: border-box; }
.view-redesign a { color: inherit; text-decoration: none; }
.view-redesign img { max-width: 100%; display: block; }
.view-redesign h1, .view-redesign h2, .view-redesign h3, .view-redesign p { margin: 0; }
.view-redesign h1, .view-redesign h2 {
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.view-redesign p { text-wrap: pretty; }

.view-redesign .wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.r-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0 28px;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.86);
  border: 0;
  border-radius: 0;
  backdrop-filter: saturate(180%) blur(16px);
}

.r-logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.r-nav { display: flex; align-items: center; gap: 22px; }
.r-nav a { font-size: 14px; font-weight: 500; color: var(--navy); }
.r-nav a:hover { color: var(--navy-deep); }
.r-phone { font-weight: 600 !important; }

.view-redesign a.r-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 980px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: 0;
}
.view-redesign a.r-btn:hover { background: var(--navy-deep); }

.r-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.r-burger span,
.r-burger span:before,
.r-burger span:after {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
}
.r-burger span { top: 21px; }
.r-burger span:before { content: ""; top: -6px; }
.r-burger span:after { content: ""; top: 6px; }

.r-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100dvh - 64px);
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.r-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% 18%;
}
.r-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 28, 0.78) 0%, rgba(10, 18, 28, 0.42) 46%, rgba(10, 18, 28, 0.08) 72%),
    linear-gradient(to top, rgba(10, 18, 28, 0.35), transparent 32%);
}
.r-hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 12vw));
  margin: 0 0 8vh 7vw;
}
.r-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.r-hero h1 {
  margin-top: 14px;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.98;
  font-weight: 600;
}
.r-hero .lead,
.r-hero .sub {
  max-width: 40rem;
  margin-top: 18px;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.r-hero .sub { margin-top: 10px; color: rgba(255, 255, 255, 0.78); }
.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 28px; }
.r-hero a.r-btn { background: #fff; color: var(--navy); }
.r-hero a.r-btn:hover { background: #f2f4f7; }
.view-redesign a.r-btn-light {
  background: transparent;
  color: #fff;
  padding: 10px 4px;
  min-height: 44px;
}
.view-redesign a.r-btn-light:hover { background: transparent; color: #fff; opacity: 0.8; }

.r-section { padding: clamp(72px, 9vw, 128px) 0; }
.r-label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.r-head h2, .r-about h2, .r-contact-card h2, .r-referral h2, .r-why h2 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.06;
  color: var(--navy);
}
.r-head p { margin-top: 16px; max-width: 42rem; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.6; color: var(--muted); }
.r-head.center { text-align: left; }

.r-about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.r-about img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 0;
}
.r-about h2 { margin-top: 8px; }
.r-about .brand {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.r-prose p {
  margin-top: 18px;
  max-width: 62ch;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.7;
  color: #3a4150;
}
.r-about img { border-radius: 28px; outline: 1px solid var(--line); outline-offset: 8px; }
.r-quote {
  margin-top: 36px;
  max-width: 24ch;
  padding: 8px 0 8px 22px;
  border-left: 3px solid var(--navy);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
  background: none;
  border-radius: 0;
}

.r-services { background: var(--paper); }
.r-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 56px;
}
.r-card, .r-card.accent {
  padding: 28px 28px 32px;
  background: #fff;
  border: 1px solid rgba(26, 55, 87, 0.14);
  border-radius: 22px;
  color: var(--ink);
  min-height: 0;
  box-shadow: 0 12px 32px rgba(26, 55, 87, 0.05);
}
.r-card.accent {
  grid-column: 1 / -1;
  display: block;
  max-width: none;
  padding: 36px 40px 40px;
}
.r-card .ico-wrap {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 0 18px;
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(26, 55, 87, 0.18);
  border-radius: 14px;
}
.r-card .ico { width: 26px; height: 26px; }
.r-card h3 { font-size: clamp(22px, 1.5vw, 26px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--navy); }
.r-card p, .r-card.accent p { font-size: clamp(17px, 1.15vw, 19px); line-height: 1.6; color: var(--muted); }
.r-card.accent h3 { font-size: clamp(32px, 3vw, 44px); line-height: 1.12; }

.r-why { background: #fff; color: var(--ink); }
.r-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  margin-top: 56px;
}
.r-why article {
  padding: 28px 26px 30px;
  background: #fff;
  border: 1px solid rgba(26, 55, 87, 0.14);
  border-radius: 22px;
}
.r-why em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  margin-bottom: 16px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(26, 55, 87, 0.2);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.r-why h3 { font-size: clamp(22px, 1.5vw, 26px); font-weight: 600; margin-bottom: 10px; color: var(--navy); }
.r-why p { font-size: clamp(17px, 1.15vw, 19px); line-height: 1.6; color: var(--muted); }

.r-gallery { background: var(--navy-deep); color: #fff; }
.r-gallery .r-label { color: rgba(255, 255, 255, 0.7); }
.r-gallery .r-head h2 { color: #fff; }
.r-gallery .r-head p { color: rgba(255, 255, 255, 0.82); max-width: 46rem; font-size: clamp(18px, 1.4vw, 22px); }
.r-gallery .wrap { width: min(1360px, calc(100% - 48px)); }
.r-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 56px;
  padding: 0;
  background: none;
  border-radius: 0;
}
.r-pair::before {
  content: "→";
  position: absolute;
  left: 50%;
  top: 34%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 26px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.r-pair figure { margin: 0; }
.r-pair img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: #24384c;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}
.r-pair figcaption {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 4px 0;
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 500;
  color: #fff;
}
.r-pair figcaption span {
  flex: none;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.r-pair figure:last-child figcaption span {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.r-referral {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: end;
  width: 100%;
  margin: 0;
  padding: 88px 0;
  border-radius: 0;
  background: var(--navy);
  color: #fff;
}
.r-section:has(.r-referral) { padding: 0; background: var(--navy); }
.r-referral h2 { color: #fff; max-width: 16ch; }
.r-referral .r-label { color: rgba(255, 255, 255, 0.72); }
.r-referral p { margin-top: 16px; max-width: 42rem; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.r-referral a.r-btn { background: #fff; color: var(--navy); }
.r-referral a.r-btn:hover { background: #f2f4f7; color: var(--navy); }

.r-contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.r-contact-card, .r-photo-card {
  background: none;
  border-radius: 0;
  padding: 0;
}
.r-contact-card h2 { color: var(--navy); }
.r-contact-card .lead { margin-top: 14px; max-width: 38rem; color: var(--muted); font-size: 17px; line-height: 1.6; }
.r-team-label { margin-top: 28px; font-weight: 600; color: var(--navy); }
.r-people { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.r-person {
  display: grid;
  gap: 4px;
  padding: 18px 18px 20px;
  background: #fff;
  border: 1px solid rgba(26, 55, 87, 0.14);
  border-radius: 18px;
}
.r-person strong { font-size: clamp(20px, 1.4vw, 24px); color: var(--navy); }
.r-person span, .r-person a { font-size: clamp(15px, 1.1vw, 17px); color: var(--muted); }
.r-person a:hover { color: var(--navy); }
.r-contact-card .r-actions { margin-top: 28px; }
.r-photo-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 28px;
  border: 1px solid rgba(26, 55, 87, 0.12);
}

.r-footer {
  padding: 64px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  background: var(--navy);
}
.r-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.8fr;
  gap: 36px;
}
.r-footer-logo {
  font-size: clamp(28px, 2vw, 36px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
}
.r-footer a { color: #fff; }
.r-footer a:hover { opacity: 0.8; }
.r-footer-contacts, .r-footer-nav { display: grid; gap: 8px; align-content: start; }
.r-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}
.r-footer-bottom button {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  padding: 0;
}
.r-cookie {
  position: fixed;
  z-index: 75;
  left: 16px;
  right: 16px;
  bottom: 84px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 22px 18px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(26, 55, 87, 0.16);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(16, 28, 48, 0.18);
}
.r-cookie h2 { font-size: 22px; color: var(--navy); }
.r-cookie p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.r-cookie[hidden],
.r-cookie-panel[hidden],
.r-cookie-actions button[hidden] { display: none; }
.r-cookie-panel { display: grid; gap: 8px; margin-top: 14px; font-size: 15px; }
.r-cookie-panel label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.r-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.r-cookie-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.r-cookie-actions button[data-cookie-accept],
.r-cookie-actions button[data-cookie-save] { background: var(--navy); color: #fff; }

@media (max-width: 1200px) and (min-width: 981px) {
  .r-phone { display: none; }
}

@media (max-width: 980px) {
  .r-burger { display: block; }
  .r-header { padding: 0 12px 0 16px; }
  .r-phone { display: none; }
  .r-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    width: min(320px, 100%);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: max(18px, env(safe-area-inset-top)) 20px 28px;
    background: #fff;
    overflow-y: auto;
  }
  .r-header.nav-open .r-nav {
    display: flex;
    animation: hope-drawer 0.22s ease;
  }
  .r-nav a { min-height: 44px; display: flex; align-items: center; font-size: 17px; }
  .r-nav .r-phone { display: flex; }
  .r-nav .r-btn { margin-top: 12px; }
  .r-hero { align-items: flex-end; min-height: 92dvh; }
  .r-hero::after {
    background: linear-gradient(to top, rgba(10, 18, 28, 0.86) 0%, rgba(10, 18, 28, 0.35) 48%, rgba(10, 18, 28, 0.05) 100%);
  }
  .r-hero-copy { width: calc(100% - 32px); margin: 0 16px 96px; }
  .r-hero-photo { object-position: center 12%; }
  .r-about, .r-cards, .r-why-grid, .r-contact-grid, .r-referral, .r-people { grid-template-columns: 1fr; }
  .r-card.accent { display: block; }
  .r-section { padding: 72px 0; }
  .r-footer-grid, .r-pair { grid-template-columns: 1fr; }
  .r-pair::before { display: none; }
  .view-redesign .wrap { width: min(1120px, calc(100% - 32px)); }
  .r-gallery .wrap { width: min(1360px, calc(100% - 32px)); }
}

@media (max-width: 640px) {
  .r-hero h1 { font-size: 44px; }
  .r-card.accent { padding: 24px 20px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .r-card { transition: none; }
}
